/* Netty Help Module — Frontend Styles (isolated, does not affect chat) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --p:    #059669;
  --p-d:  #047857;
  --p-dd: #064e3b;
  --p-l:  #ecfdf5;
  --p-b:  #d1fae5;
  --p-3:  #34d399;
  --p-4:  #10b981;
  --bg:   #eef4f1;
  --surf: #ffffff;
  --bdr:  #dde8e3;
  --txt:  #0d1c15;
  --txt2: #344f44;
  --txt3: #6b9180;
  --sh1:  0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh2:  0 6px 24px rgba(5,150,105,.1), 0 2px 8px rgba(0,0,0,.05);
  --r:    12px;
  --r2:   18px;
  --sidebar-w: 270px;
  --max-w: 1440px;
}

html { height: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--txt);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ═══ HEADER ═══ */
.help-header {
  background: linear-gradient(135deg, var(--p-dd) 0%, #054f3a 55%, var(--p-d) 100%);
  padding: 0 32px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(2,44,34,.28);
}
.help-header-inner {
  max-width: var(--max-w); margin: 0 auto;
  height: 68px; display: flex; align-items: center; gap: 16px;
}
.help-logo { display: flex; align-items: center; gap: 10px; }
.help-logo-netty {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: -.2px;
}
.help-logo-dot {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.help-logo-sep { color: rgba(255,255,255,.3); font-weight: 300; margin: 0 2px; }
.help-logo-sub { color: rgba(255,255,255,.85); font-weight: 500; font-size: 15px; text-decoration: none; }
.help-header-space { flex: 1; }
.help-header-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 24px; padding: 8px 18px;
  transition: background .18s;
}
.help-header-search:focus-within { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.38); }
.help-header-search input {
  background: none; border: none; outline: none;
  color: #fff; font-size: 14px; font-family: inherit; width: 210px;
}
.help-header-search input::placeholder { color: rgba(255,255,255,.55); }
.help-header-search svg { width: 14px; height: 14px; color: rgba(255,255,255,.6); flex-shrink: 0; }
.hdr-chat-link {
  padding: 8px 16px; border-radius: 22px;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.92); font-size: 13.5px; font-weight: 500;
  text-decoration: none; white-space: nowrap; transition: background .16s;
}
.hdr-chat-link:hover { background: rgba(255,255,255,.24); }

/* ═══ BREADCRUMBS ═══ */
.breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
  padding: 10px 14px;
  margin: 20px 0;
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: 12px;
  font-size: .8rem;
  box-shadow: var(--sh1);
}
.breadcrumbs a {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--txt2); text-decoration: none; font-weight: 500;
  padding: 4px 9px; border-radius: 7px;
  transition: background .13s, color .13s;
  white-space: nowrap;
}
.breadcrumbs a:hover { background: var(--p-l); color: var(--p-d); }
.breadcrumbs a svg  { flex-shrink: 0; }
.breadcrumbs .sep {
  display: inline-flex; align-items: center;
  color: var(--bdr); padding: 0 1px; flex-shrink: 0;
}
.breadcrumbs .cur {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 7px;
  background: var(--p-l); color: var(--p-dd);
  font-weight: 600; font-size: .8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px;
}

/* ═══ HERO ═══ */
.help-hero {
  background: linear-gradient(140deg, var(--p-dd) 0%, #054f3a 50%, #037a58 100%);
  padding: 16px 32px 14px;
  text-align: center; color: #fff; position: relative;
}
.help-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 22px 22px;
}
.help-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,.5), transparent);
}
.help-hero h1 {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -.7px;
  margin-bottom: 14px; position: relative;
  text-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.help-hero p {
  font-size: 1.1rem; color: rgba(255,255,255,.8);
  max-width: 680px; margin: 0 auto 32px; line-height: 1.65; position: relative;
}
.hero-search {
  max-width: 540px; margin: 0 auto; position: relative;
}
.hero-search input {
  width: 100%; padding: 16px 58px 16px 22px;
  border: none; border-radius: 16px;
  font-size: 16px; font-family: inherit; outline: none;
  background: rgba(255,255,255,.96); color: var(--txt);
  box-shadow: 0 6px 28px rgba(2,44,34,.28);
}
.hero-search input::placeholder { color: var(--txt3); }
.hero-search-btn {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 12px; border: none;
  background: linear-gradient(140deg, var(--p-dd), var(--p));
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(5,150,105,.4); transition: transform .2s;
}
.hero-search-btn:hover { transform: translateY(-50%) scale(1.06); }

/* ═══ PAGE WRAPPER ═══ */
.help-page { max-width: var(--max-w); margin: 0 auto; padding: 0 32px 80px; }

/* ═══ NETTY PROMO BOX ═══ */
.netty-promo {
  display: flex; align-items: center; gap: 20px;
  margin-top: 28px; padding: 20px 24px;
  background: linear-gradient(135deg, #f0fdf8 0%, #e6f9f2 100%);
  border: 1.5px solid rgba(5,150,105,.2); border-radius: var(--r2);
  text-decoration: none; color: var(--txt);
  box-shadow: 0 2px 12px rgba(5,150,105,.08);
  transition: box-shadow .2s, border-color .2s, transform .2s cubic-bezier(.26,1.4,.48,1);
  position: relative; overflow: hidden;
}
.netty-promo::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--p-dd), var(--p-4), var(--p-3));
}
.netty-promo:hover {
  box-shadow: 0 6px 24px rgba(5,150,105,.16);
  border-color: rgba(5,150,105,.35);
  transform: translateY(-2px);
}
.netty-promo-avatar {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--p-dd), var(--p));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 14px rgba(5,150,105,.3);
}
.netty-promo-body { flex: 1; min-width: 0; }
.netty-promo-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--p-d); margin-bottom: 3px;
}
.netty-promo-title {
  font-size: 1rem; font-weight: 700; color: var(--p-dd);
  letter-spacing: -.15px; margin-bottom: 3px;
}
.netty-promo-sub {
  font-size: .825rem; color: var(--txt2); line-height: 1.5;
}
.netty-promo-btn {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 10px 20px; border-radius: 12px;
  background: linear-gradient(140deg, var(--p-dd), var(--p));
  color: #fff; font-size: .875rem; font-weight: 700;
  box-shadow: 0 3px 12px rgba(5,150,105,.35);
  white-space: nowrap;
  transition: box-shadow .2s;
}
.netty-promo:hover .netty-promo-btn {
  box-shadow: 0 6px 20px rgba(5,150,105,.45);
}
.netty-promo-actions {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex-shrink: 0;
}
.netty-how-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 12px;
  background: transparent; border: 1.5px solid rgba(5,150,105,.35);
  color: var(--p-d); font-size: .825rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
  font-family: inherit;
}
.netty-how-btn:hover { background: rgba(5,150,105,.07); border-color: rgba(5,150,105,.55); }

/* ═══ NETTY INFO MODAL ═══ */
.nmodal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.45); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: nmodal-fade-in .18s ease;
}
.nmodal-overlay[hidden] { display: none; }
@keyframes nmodal-fade-in { from { opacity: 0; } to { opacity: 1; } }
.nmodal {
  background: #fff; border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  max-width: 520px; width: 100%; position: relative;
  animation: nmodal-slide-in .22s cubic-bezier(.26,1.4,.48,1);
}
@keyframes nmodal-slide-in { from { transform: translateY(18px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.nmodal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt3); transition: background .14s, color .14s;
}
.nmodal-close:hover { background: var(--bdr); color: var(--txt); }
.nmodal-head {
  display: flex; align-items: center; gap: 14px;
  padding: 28px 28px 0;
}
.nmodal-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--p-dd), var(--p));
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.nmodal-head h2 { font-size: 1.15rem; font-weight: 800; color: var(--txt); letter-spacing: -.2px; }
.nmodal-body { padding: 18px 28px 0; }
.nmodal-body > p { font-size: .9rem; color: var(--txt2); line-height: 1.6; margin-bottom: 18px; }
.nmodal-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.nmodal-step { display: flex; align-items: flex-start; gap: 12px; }
.nmodal-step-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, var(--p-dd), var(--p));
  color: #fff; font-size: .75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.nmodal-step-text { font-size: .875rem; color: var(--txt2); line-height: 1.55; }
.nmodal-step-text strong { color: var(--txt); }
.nmodal-tip, .nmodal-fallback {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  font-size: .84rem; color: var(--txt2); line-height: 1.55;
  margin-bottom: 10px;
}
.nmodal-tip { background: var(--p-l); border: 1px solid var(--p-b); }
.nmodal-tip svg, .nmodal-fallback svg { flex-shrink: 0; margin-top: 2px; color: var(--p-d); }
.nmodal-fallback { background: #fff7ed; border: 1px solid #fed7aa; }
.nmodal-fallback svg { color: #c2410c; }
.nmodal-tip a, .nmodal-fallback a { color: var(--p-d); font-weight: 600; }
.nmodal-tip strong, .nmodal-fallback strong { color: var(--txt); }
.nmodal-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 28px 24px;
}
.nmodal-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 12px;
  background: linear-gradient(140deg, var(--p-dd), var(--p));
  color: #fff; font-size: .9rem; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(5,150,105,.35);
  transition: box-shadow .18s;
}
.nmodal-cta:hover { box-shadow: 0 6px 20px rgba(5,150,105,.45); }
.nmodal-cancel {
  padding: 11px 18px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--bdr);
  color: var(--txt2); font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: background .14s; font-family: inherit;
}
.nmodal-cancel:hover { background: var(--bdr); }

@media (max-width: 600px) {
  .netty-promo { flex-wrap: wrap; gap: 14px; }
  .netty-promo-actions { flex-direction: row; width: 100%; }
  .netty-promo-btn, .netty-how-btn { flex: 1; justify-content: center; }
  .nmodal-head { padding: 22px 20px 0; }
  .nmodal-body { padding: 16px 20px 0; }
  .nmodal-foot { padding: 16px 20px 20px; }
}

@media (max-width: 520px) {
  .help-header { padding: 0 14px; overflow: hidden; }
  .help-header-inner { gap: 8px; }
  .help-header-search { display: none; }
  .hdr-chat-link { font-size: 12.5px; padding: 7px 12px; white-space: normal; text-align: center; flex-shrink: 1; min-width: 0; }
}

.section-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 36px 0 20px;
}
.section-head h2 { font-size: 1.15rem; font-weight: 700; color: var(--txt); letter-spacing: -.15px; }
.section-head span { font-size: .875rem; color: var(--txt3); }

/* ═══ CATEGORY CARDS ═══ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.cat-card {
  background: var(--surf); border: 1px solid var(--bdr); border-radius: var(--r2);
  padding: 24px 24px 20px;
  text-decoration: none; color: var(--txt);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--sh1);
  transition: transform .22s cubic-bezier(.26,1.4,.48,1), box-shadow .22s, border-color .2s;
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3.5px;
  background: linear-gradient(90deg, var(--p-dd), var(--p-4), var(--p-3));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.26,1.4,.48,1);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(5,150,105,.14), 0 3px 10px rgba(0,0,0,.07);
  border-color: rgba(5,150,105,.22);
}

.cat-card-top { display: flex; align-items: flex-start; gap: 16px; }
.cat-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: var(--p-l); border: 1.5px solid rgba(5,150,105,.12);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.cat-name { font-size: 1.05rem; font-weight: 700; color: var(--txt); margin-bottom: 5px; line-height: 1.3; }
.cat-desc { font-size: .875rem; color: var(--txt2); line-height: 1.55; }

/* Article preview list inside category card */
.cat-articles {
  list-style: none; display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--bdr); margin-top: 2px; padding-top: 10px;
}
.cat-article-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 0; border-bottom: 1px solid rgba(5,150,105,.06);
  font-size: .825rem; color: var(--txt2); line-height: 1.35;
}
.cat-article-item:last-child { border-bottom: none; }
.cat-article-item svg { width: 11px; height: 11px; flex-shrink: 0; color: var(--p-3); }
.cat-article-item span { flex: 1; }
.cat-art-tag {
  display: inline-flex; align-items: center; padding: 0 5px; border-radius: 8px;
  font-size: .58rem; font-weight: 700; flex-shrink: 0; letter-spacing: .03em;
}
.cat-art-tag--laborator { background: #dbeafe; color: #1d4ed8; }
.cat-art-tag--klinika   { background: #fce7f3; color: #9d174d; }
.cat-article-more {
  font-size: .775rem; color: var(--txt3); padding: 5px 0;
  display: flex; align-items: center; gap: 6px;
}
.cat-article-more::before { content: ''; flex: 1; height: 1px; background: var(--bdr); }

.cat-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  padding-top: 12px; border-top: 1px solid var(--bdr);
  margin-top: auto;
}
.cat-count {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 600; color: var(--txt3);
}
.cat-count svg { width: 13px; height: 13px; }
.cat-tag-count {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px;
  font-size: .7rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.cat-tag-count--laborator { background: #dbeafe; color: #1d4ed8; }
.cat-tag-count--klinika   { background: #fce7f3; color: #9d174d; }

.cat-arrow {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--p-l); color: var(--p-d);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s, transform .2s;
}
.cat-card:hover .cat-arrow { background: var(--p); color: #fff; transform: translateX(2px); }
.cat-arrow svg { width: 14px; height: 14px; }

/* ═══ FAQ ACCORDION ═══ */
.faq-list {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--bdr); border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--sh1);
  margin-bottom: 4px;
}
.faq-item { border-bottom: 1px solid var(--bdr); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--surf); border: none; cursor: pointer;
  font-family: inherit; font-size: .975rem; font-weight: 600;
  color: var(--txt); text-align: left; line-height: 1.4;
  transition: background .15s;
}
.faq-q:hover { background: #f7fdf9; }
.faq-open .faq-q { background: var(--p-l); color: var(--p-dd); }
.faq-q span { flex: 1; }
.faq-chevron {
  flex-shrink: 0; color: var(--txt3);
  transition: transform .28s cubic-bezier(.26,1.4,.48,1), color .15s;
}
.faq-open .faq-chevron { transform: rotate(180deg); color: var(--p); }

.faq-a {
  overflow: hidden;
  transition: height .28s cubic-bezier(.4,0,.2,1), opacity .22s ease;
}
.faq-a-inner {
  padding: 18px 24px 22px 24px;
  font-size: .925rem; color: var(--txt2); line-height: 1.75;
  border-top: 1px solid var(--p-b);
  background: #fff;
}
.faq-a-inner p  { margin: 0 0 .85em; }
.faq-a-inner p:last-child { margin-bottom: 0; }
.faq-a-inner ul, .faq-a-inner ol { margin: 0 0 .85em 1.4em; }
.faq-a-inner h2, .faq-a-inner h3 { margin: .8em 0 .4em; color: var(--p-dd); font-size: 1em; }
.faq-a-inner blockquote { border-left: 4px solid var(--p); background: var(--p-l); padding: 10px 14px; border-radius: 0 8px 8px 0; color: var(--p-dd); margin: .8em 0; }
.faq-a-inner img { max-width: 100%; border-radius: 6px; margin: 6px 0; }
.faq-a-inner iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 8px; margin: 8px 0; }

/* ═══ SUPPORT CONTACT (homepage) ═══ */
.support-section { margin-top: 48px; }
.support-card {
  background: linear-gradient(135deg, var(--p-dd) 0%, #054f3a 100%);
  border-radius: var(--r2); padding: 28px 32px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(2,44,34,.22);
  position: relative; overflow: hidden;
}
.support-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 18px 18px;
}
.support-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.support-body { flex: 1; min-width: 160px; }
.support-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--p-3); margin-bottom: 4px; }
.support-name  { font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.support-links { display: flex; gap: 10px; flex-wrap: wrap; }
.support-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  text-decoration: none; font-size: .9rem; font-weight: 600;
  transition: transform .18s, box-shadow .18s;
}
.support-link:hover { transform: translateY(-2px); }
.support-link--email {
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.92);
}
.support-link--email:hover { background: rgba(255,255,255,.22); }
.support-link--phone {
  background: var(--p-4); border: 1.5px solid transparent;
  color: #fff; box-shadow: 0 3px 12px rgba(16,185,129,.4);
}
.support-link--phone:hover { box-shadow: 0 6px 20px rgba(16,185,129,.5); }

/* ═══ TWO-COLUMN VIEW ═══ */
.view-layout {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px 80px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 28px; align-items: start;
}

/* ── SIDEBAR ── */
.help-sidebar {
  position: sticky; top: 88px;
  background: var(--surf); border: 1px solid var(--bdr); border-radius: var(--r2);
  box-shadow: var(--sh1); overflow: hidden;
}
.sidebar-head {
  padding: 14px 18px; border-bottom: 1px solid var(--bdr);
  font-size: .72rem; font-weight: 700; color: var(--txt3);
  text-transform: uppercase; letter-spacing: .09em;
  display: flex; align-items: center; gap: 7px;
}
.sidebar-nav { padding: 8px 0; }

.tree-item { display: block; }
.tree-cat-row {
  display: flex; align-items: center;
  cursor: pointer; user-select: none; transition: background .12s;
}
.tree-cat-row:hover { background: #f4faf7; }
.tree-cat-row.active { background: var(--p-l); }
.tree-cat-row.active .tree-cat-name { color: var(--p-d); font-weight: 700; }

.tree-toggle {
  width: 28px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt3); transition: transform .2s ease;
}
.tree-toggle.open { transform: rotate(90deg); }
.tree-toggle svg { width: 10px; height: 10px; }
.tree-cat-icon { font-size: 14px; margin-right: 7px; flex-shrink: 0; }
.tree-cat-name {
  flex: 1; padding: 8px 12px 8px 0;
  font-size: .875rem; color: var(--txt); line-height: 1.35;
}

.tree-children { display: none; }
.tree-children.open { display: block; }
.tree-children .tree-cat-row { padding-left: 16px; }
.tree-children .tree-children .tree-cat-row { padding-left: 28px; }

.tree-article {
  display: block; padding: 7px 14px 7px 44px;
  font-size: .85rem; color: var(--txt2); text-decoration: none;
  border-left: 2px solid transparent; line-height: 1.45;
  transition: background .12s, border-color .12s, color .12s;
}
.tree-article:hover { background: #f4faf7; color: var(--p-d); }
.tree-article.active {
  background: var(--p-l); color: var(--p-d); font-weight: 600;
  border-left-color: var(--p);
}
.tree-children .tree-article { padding-left: 56px; }
.tree-children .tree-children .tree-article { padding-left: 68px; }
/* Articles directly under root category (no sub-cats) */
.sidebar-cat-articles .tree-article { padding-left: 44px; }

/* ── Sidebar support block ── */
.sidebar-support {
  margin: 8px; border-radius: var(--r);
  background: var(--p-l); border: 1px solid var(--p-b);
  padding: 14px 16px;
}
.sidebar-support-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--p-d); margin-bottom: 6px; }
.sidebar-support-name  { font-size: .9rem; font-weight: 700; color: var(--p-dd); margin-bottom: 10px; }
.sidebar-support-links { display: flex; flex-direction: column; gap: 6px; }
.sidebar-support-link {
  display: flex; align-items: center; gap: 7px;
  font-size: .825rem; font-weight: 500; text-decoration: none;
  color: var(--p-d); transition: color .14s;
}
.sidebar-support-link:hover { color: var(--p-dd); }

/* ── MAIN CONTENT ── */
.help-content { min-width: 0; }

.content-card {
  background: var(--surf); border: 1px solid var(--bdr); border-radius: var(--r2);
  box-shadow: var(--sh1); overflow: hidden;
}
.content-card-head {
  padding: 28px 36px 22px;
  border-bottom: 1px solid var(--bdr);
  background: linear-gradient(135deg, #f8fcfa, #f2f9f5);
}
.content-card-head h1 {
  font-size: 1.7rem; font-weight: 800; letter-spacing: -.5px;
  color: var(--p-dd); margin-bottom: 8px; line-height: 1.25;
}
.content-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: .8rem; color: var(--txt3);
}
.content-meta svg { width: 13px; height: 13px; }
.content-body { padding: 32px 36px 36px; }

/* ── Article Typography ── */
.article-content { line-height: 1.78; font-size: 1rem; color: var(--txt); }
.article-content h2 {
  font-size: 1.35rem; font-weight: 800; color: var(--p-dd);
  margin: 32px 0 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--p-b); letter-spacing: -.25px;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--txt);
  margin: 26px 0 11px;
}
.article-content h4 {
  font-size: .975rem; font-weight: 700; color: var(--txt2);
  margin: 20px 0 9px;
}
.article-content p { margin-bottom: 16px; }
.article-content p:last-child { margin-bottom: 0; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { margin-bottom: 7px; line-height: 1.7; }
.article-content strong { font-weight: 700; color: var(--p-dd); }
.article-content em { font-style: italic; color: var(--txt2); }
.article-content a {
  color: var(--p-d); text-decoration: none;
  border-bottom: 1.5px solid rgba(5,150,105,.3);
  transition: border-color .15s;
}
.article-content a:hover { border-bottom-color: var(--p); }
.article-content code {
  background: var(--p-l); color: var(--p-dd);
  padding: 2px 7px; border-radius: 6px;
  font-size: .875em; font-family: 'SF Mono','Fira Code','Cascadia Code',monospace;
}
.article-content pre {
  background: #f2f8f4; border: 1px solid var(--p-b); border-radius: var(--r);
  padding: 18px 20px; margin: 18px 0; overflow-x: auto;
}
.article-content pre code { background: none; padding: 0; color: var(--p-dd); }
.article-content blockquote {
  border-left: 4px solid var(--p-4); background: var(--p-l);
  padding: 16px 20px; margin: 20px 0; border-radius: 0 var(--r) var(--r) 0;
  color: var(--p-dd); font-style: normal;
}
.article-content blockquote p { margin: 0; }
.article-content hr { border: none; border-top: 2px solid var(--bdr); margin: 28px 0; }
.article-content img {
  max-width: 100%; height: auto; border-radius: var(--r);
  border: 1px solid var(--bdr); margin: 16px 0; box-shadow: var(--sh1);
}
.article-content table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem;
}
.article-content th {
  background: #f2f8f5; padding: 11px 15px; text-align: left;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--txt3); border-bottom: 2px solid var(--bdr);
}
.article-content td {
  padding: 11px 15px; border-bottom: 1px solid var(--bdr); color: var(--txt2);
}
.article-content tr:last-child td { border-bottom: none; }
.article-content tr:hover td { background: #f7fcf9; }

/* ── Sub-category grid ── */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.sub-card {
  background: #f6fbf8; border: 1px solid var(--bdr); border-radius: var(--r);
  padding: 16px 18px; text-decoration: none; color: var(--txt);
  display: flex; align-items: center; gap: 13px;
  transition: background .14s, border-color .14s, transform .2s cubic-bezier(.26,1.4,.48,1);
}
.sub-card:hover { background: var(--p-l); border-color: rgba(5,150,105,.22); transform: translateY(-2px); }
.sub-card-icon { font-size: 20px; flex-shrink: 0; }
.sub-card-name  { font-size: .925rem; font-weight: 700; color: var(--txt); }
.sub-card-count { font-size: .78rem; color: var(--txt3); margin-top: 2px; }

/* ── Article list ── */
.articles-list { display: flex; flex-direction: column; }
.article-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--bdr);
  text-decoration: none; color: var(--txt);
  transition: color .14s;
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item:hover { color: var(--p-d); }
.ali-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--p-l); border: 1px solid rgba(5,150,105,.12);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.ali-title   { font-size: 1rem; font-weight: 600; flex: 1; line-height: 1.4; }
.ali-excerpt { font-size: .85rem; color: var(--txt3); margin-top: 3px; line-height: 1.5; }
.ali-arrow   { color: var(--txt3); flex-shrink: 0; }
.ali-arrow svg { width: 15px; height: 15px; }
.ali-tags    { display:flex; gap:5px; margin-top:5px; flex-wrap:wrap; }

/* ── Tag badges ── */
.tag-badge {
  display: inline-flex; align-items: center;
  padding: 1px 7px; border-radius: 20px;
  font-size: .65rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.tag-badge--laborator { background: #dbeafe; color: #1d4ed8; }
.tag-badge--klinika   { background: #fce7f3; color: #9d174d; }

/* ── Empty state ── */
.empty-state { padding: 52px 24px; text-align: center; color: var(--txt3); }
.empty-state p { font-size: .95rem; margin-top: 8px; }

/* ═══ LIVE SEARCH DROPDOWN ═══ */
.search-wrap { position: relative; }

.live-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1000;
  text-align: left;
  background: #fff; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(2,44,34,.22), 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden; max-height: 480px; overflow-y: auto;
}
.live-dropdown.open { display: block; }
.live-dropdown::-webkit-scrollbar { width: 4px; }
.live-dropdown::-webkit-scrollbar-thumb { background: var(--p-b); border-radius: 4px; }

.ldr-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 18px; text-decoration: none; color: var(--txt);
  border-bottom: 1px solid var(--bdr); cursor: pointer;
  transition: background .1s;
}
.ldr-item:last-child { border-bottom: none; }
.ldr-item:hover, .ldr-item.focused { background: var(--p-l); }

.ldr-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; margin-top: 1px;
  background: var(--p-l); border: 1px solid rgba(5,150,105,.12);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.ldr-body { flex: 1; min-width: 0; }
.ldr-type  { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--p-d); margin-bottom: 2px; }
.ldr-title { font-size: .9rem; font-weight: 700; color: var(--txt); line-height: 1.3; }
.ldr-title mark { background: var(--p-b); color: var(--p-dd); border-radius: 2px; padding: 0 1px; }
.ldr-sub   { font-size: .775rem; color: var(--txt3); margin-top: 3px; line-height: 1.4; }

.ldr-empty {
  padding: 20px 18px; text-align: center;
  font-size: .875rem; color: var(--txt3);
}
.ldr-footer {
  padding: 10px 18px; background: #f8fbf9; border-top: 1px solid var(--bdr);
  font-size: .775rem; color: var(--txt3); text-align: center;
}

/* Header search dropdown (smaller) */
.help-header-search { position: relative; }
.help-header-search .live-dropdown {
  top: calc(100% + 10px); right: 0; left: auto; min-width: 340px;
  border-radius: 14px; max-height: 380px;
}

/* ═══ SEARCH RESULTS ═══ */
.search-results { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.search-result-item {
  padding: 18px 22px; border-radius: var(--r);
  background: var(--surf); border: 1px solid var(--bdr);
  text-decoration: none; color: var(--txt); display: block;
  text-align: left;
  transition: border-color .14s, box-shadow .14s;
}
.search-result-item:hover { border-color: rgba(5,150,105,.28); box-shadow: 0 3px 12px rgba(5,150,105,.1); }
.sr-type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--p-d); margin-bottom: 5px; }
.sr-title { font-size: 1rem; font-weight: 700; color: var(--txt); }
.sr-excerpt { font-size: .875rem; color: var(--txt2); margin-top: 5px; line-height: 1.55; }
.sr-breadcrumb { font-size: .775rem; color: var(--txt3); margin-top: 7px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  :root { --sidebar-w: 250px; }
}
@media (max-width: 800px) {
  body { font-size: 15px; }
  .view-layout { grid-template-columns: 1fr; gap: 20px; }
  .help-sidebar { position: static; order: 2; }
  .help-content { order: 1; }
  .help-hero { padding: 44px 20px 40px; }
  .help-hero h1 { font-size: 1.9rem; }
  .help-hero p { font-size: 1rem; }
  .help-header { padding: 0 16px; }
  .help-header-search { display: none; }
  .help-page, .view-layout { padding-left: 18px; padding-right: 18px; }
  .content-card-head { padding: 20px 24px 16px; }
  .content-card-head h1 { font-size: 1.4rem; }
  .content-body { padding: 24px; }
  .article-content h2 { font-size: 1.2rem; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .support-card { padding: 22px 20px; gap: 18px; }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
  .help-hero h1 { font-size: 1.6rem; }
  .support-links { flex-direction: column; }
  .help-page, .view-layout { padding-left: 14px; padding-right: 14px; }
}
