/* =========================================================
   NV — Neurology, s40-style design system
   Палітра і структура — як на сторінці «Скринінг 40+».
   Префікс nv- щоб уникнути колізій з s40.
   ========================================================= */
.nv-root, .nv-root *, .nv-root *::before, .nv-root *::after { box-sizing: border-box; }
.nv-root {
  --nv-c:        #607cd0;
  --nv-c2:       #748cd5;
  --nv-pale:     rgba(96,124,208,0.09);
  --nv-pale-2:   linear-gradient(145deg, #617dd0 0%, #8288db 50%, #5d71af 100%);
  --nv-mid-2:    linear-gradient(145deg, #7894e4 0%, #656ee8 50%, #6282e4 100%);
  --nv-line:     rgba(96,124,208,0.14);
  --nv-bg:       rgba(255,255,255,0.72);
  --nv-surf:     rgba(240,242,250,0.8);
  --nv-border:   rgba(96,124,208,0.13);
  --nv-text:     #111114;
  --nv-text-w:   #ffffff;
  --nv-muted:    #313680;
  --nv-rad:      18px;
  --nv-warn:     #ea580c;
  color: var(--nv-text);
  font-family: inherit;
  display: block;
}
.nv-root { display: flex; flex-direction: column; gap: 20px; max-width: 1440px; margin: 0 auto; }

/* ── CARD BASE ── */
.nv-card {
  background: #ffffff;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-rad);
  box-shadow: 0 2px 12px rgba(96,124,208,0.08);
  padding: 28px 32px;
  transition: box-shadow .3s ease, border-color .3s ease;
  position: relative;
}
.nv-card:hover {
  box-shadow: 0 18px 44px rgba(96,124,208,0.20), 0 4px 14px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.85);
  border-color: rgba(96,124,208,0.32);
}

/* ── HERO (компактний, з фото справа) ── */
.nv-hero {
  background: #ffffff;
  border: 1px solid var(--nv-border);
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(96,124,208,0.10);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.nv-hero-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* ── HERO PHOTO ── основне зображення відділення */
.nv-hero-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  box-shadow:
    0 12px 32px rgba(29,58,138,0.20),
    0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow .3s ease;
}
.nv-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── HERO STATS — plate-картка під контактами ── */
.nv-hero-stats {
  display: grid;
  /* auto-fit щоб при тісноті cells природно переходили на 2/1 колонки
     замість виштовхування довгого тексту в багато рядків */
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.nv-stat-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--nv-line);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  /* без transform — щоб не блимало на краях */
  transition: background .3s, border-color .3s, box-shadow .3s;
  min-width: 0;
}
.nv-stat-cell:hover {
  background: #fff;
  border-color: rgba(96,124,208,0.4);
  box-shadow: 0 8px 22px rgba(96,124,208,0.20), inset 0 1px 0 rgba(255,255,255,0.85);
}
.nv-stat-cell-ic {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--nv-pale-2);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(96,124,208,0.28);
  transition: transform .4s cubic-bezier(.34,1.6,.64,1);
}
.nv-stat-cell:hover .nv-stat-cell-ic { transform: rotate(-6deg) scale(1.06); }
.nv-stat-cell-ic svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nv-stat-cell-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.15; }
.nv-stat-num {
  font-size: 18px;
  font-weight: 800;
  background: var(--nv-pale-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.nv-stat-label {
  font-size: 11.5px;
  color: var(--nv-muted);
  font-weight: 600;
  line-height: 1.3;
}

.nv-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 24px;
  background: var(--nv-pale-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}
.nv-badge svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.nv-badge-title-row { display: flex; flex-direction: column; gap: 10px; }

.nv-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--nv-text);
}
.nv-title span {
  background: var(--nv-pale-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nv-desc {
  font-size: 15px;
  line-height: 1.45;
  color: #2a2a3a;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, #607cd0, #8288db) 1;
  padding-left: 16px;
  margin: 0;
}
.nv-desc strong { color: var(--nv-text); }

/* ── HERO ACTIONS ── */
.nv-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.nv-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  /* без transform — щоб не блимало на краях */
  transition: background .25s, box-shadow .25s, color .25s, filter .25s, border-color .25s;
}
.nv-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nv-btn--primary {
  background: linear-gradient(135deg, #607cd0 0%, #7a84de 100%);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(96,124,208,0.36);
}
.nv-btn--primary:hover { box-shadow: 0 8px 28px rgba(96,124,208,0.5); color: #fff !important; filter: brightness(1.06); }
.nv-btn--ghost {
  background: var(--nv-pale);
  color: var(--nv-c);
  border: 1px solid rgba(96,124,208,0.22);
}
.nv-btn--ghost:hover { background: rgba(96,124,208,0.18); border-color: rgba(96,124,208,0.4); color: var(--nv-c); }
.nv-btn--phone {
  background: rgba(96,124,208,0.08);
  color: var(--nv-muted);
  border: 1px solid var(--nv-line);
}
.nv-btn--phone:hover { background: var(--nv-pale); color: var(--nv-c); border-color: rgba(96,124,208,0.32); }

/* ── HERO CONTACTS (телефони + графік бейджами) ── */
.nv-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.nv-cbadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 50px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--nv-line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nv-text);
  text-decoration: none;
  /* без transform — щоб не блимало на краях при hover-flicker */
  transition: background .25s, border-color .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.nv-cbadge:hover {
  background: #fff;
  border-color: rgba(96,124,208,0.4);
  box-shadow: 0 6px 16px rgba(96,124,208,0.22);
  color: var(--nv-c);
}
.nv-cbadge-ic {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--nv-pale-2);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nv-cbadge-ic svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nv-cbadge-txt { display: inline-flex; flex-direction: column; line-height: 1.15; }
.nv-cbadge-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--nv-muted);
}
.nv-cbadge-val { font-size: 14px; font-weight: 700; color: var(--nv-text); }
.nv-cbadge:hover .nv-cbadge-val { color: var(--nv-c); }

/* акцентний бейдж — 24/7 */
.nv-cbadge--accent {
  background: var(--nv-pale-2);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(96,124,208,0.32);
}
.nv-cbadge--accent .nv-cbadge-ic { background: rgba(255,255,255,0.22); }
.nv-cbadge--accent .nv-cbadge-label { color: rgba(255,255,255,0.85); }
.nv-cbadge--accent .nv-cbadge-val { color: #fff; }
.nv-cbadge--accent:hover {
  color: #fff;
  box-shadow:
    0 0 0 4px rgba(96,124,208,0.18),
    0 10px 28px rgba(96,124,208,0.5);
  background: linear-gradient(145deg, #5872c8 0%, #7e83de 50%, #5566ad 100%);
}
.nv-cbadge--accent:hover .nv-cbadge-ic {
  background: rgba(255,255,255,0.32);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.nv-cbadge--accent:hover .nv-cbadge-val { color: #fff; }

/* ── SECTION TITLE ── */
.nv-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--nv-text);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--nv-line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nv-section-title-icon {
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--nv-pale-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nv-section-title-icon svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── GRIDS ── */
.nv-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nv-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* варіант, де картки не повинні розтягуватися до висоти найвищої
   (наприклад steps + короткий перелік "що взяти з собою") */
.nv-grid-2.nv-grid-top { align-items: start; }

/* ── IMAGE BLOCK (всередині картки) ── */
.nv-imgbox {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
  box-shadow: 0 8px 22px rgba(96,124,208,0.18);
  background: var(--nv-pale);
}
.nv-imgbox img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.nv-imgbox:hover img { transform: scale(1.04); }
.nv-imgbox::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,31,74,0) 55%, rgba(15,31,74,.45) 100%);
  pointer-events: none;
}
.nv-imgbox-caption {
  position: absolute;
  left: 14px; bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--nv-c);
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
  z-index: 1;
}
.nv-imgbox-caption svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* розгорнутий текст (для детальних описів) */
.nv-prose p { font-size: 15px; line-height: 1.4; color: #2a2a3a; margin: 0 0 12px; }
.nv-prose p:last-child { margin-bottom: 0; }
.nv-prose strong { color: var(--nv-text); }

/* ── INFO ITEM ── */
.nv-item { display: flex; align-items: flex-start; gap: 12px; }
.nv-item + .nv-item { margin-top: 14px; }
.nv-i-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50px;
  background: var(--nv-pale-2);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, transform .5s cubic-bezier(.34,1.8,.64,1), box-shadow .4s ease;
}
.nv-item:hover .nv-i-icon {
  background: var(--nv-mid-2);
  transform: translateY(-4px) scale(1.12) rotate(-5deg);
  box-shadow: 0 8px 18px rgba(96,124,208,0.28);
}
.nv-i-icon svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nv-i-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nv-i-label { font-size: 13px; color: var(--nv-muted); font-weight: 400; }
.nv-i-value { font-size: 15px; font-weight: 600; color: var(--nv-text); line-height: 1.4; }
.nv-i-value a { color: var(--nv-c); text-decoration: none; }
.nv-i-value a:hover { text-decoration: underline; }
.nv-hr { height: 1px; background: var(--nv-line); margin: 14px 0; }

/* ── NOTICE / WARNING ── */
.nv-notice {
  background: var(--nv-pale);
  border: 1px solid rgba(96,124,208,0.18);
  border-left: 3px solid var(--nv-c);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #2a2a3a;
  margin-bottom: 12px;
  transition: background .35s, border-color .35s, transform .45s cubic-bezier(.22,1,.36,1);
}
.nv-notice:last-child { margin-bottom: 0; }
.nv-notice:hover { background: rgba(96,124,208,0.13); border-left-color: var(--nv-c); transform: translateX(4px); }
.nv-notice strong { color: var(--nv-text); }

.nv-warning {
  background: rgba(234,88,12,0.07);
  border: 1px solid rgba(234,88,12,0.2);
  border-left: 3px solid var(--nv-warn);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #7c2d12;
  display: flex; gap: 12px; align-items: flex-start;
  transition: background .35s;
}
.nv-warning:hover { background: rgba(234,88,12,0.11); }

/* Повноширинна warning-картка (без обгортки nv-card) */
.nv-warning.nv-warning--full {
  padding: 20px 26px;
  border-radius: 18px;
  border-left-width: 4px;
  background:
    linear-gradient(135deg, rgba(234,88,12,0.10) 0%, rgba(234,88,12,0.04) 100%);
  box-shadow:
    0 2px 16px rgba(234,88,12,0.08),
    inset 0 1px 0 rgba(255,255,255,0.5);
  font-size: 15px;
}
.nv-warning.nv-warning--full svg { width: 22px; height: 22px; }
.nv-warning svg { flex-shrink: 0; width: 18px; height: 18px; stroke: var(--nv-warn); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.nv-warning a { color: var(--nv-warn); font-weight: 700; text-decoration: none; }
.nv-warning a:hover { text-decoration: underline; }

/* ── STEPS (Прийом) ── */
.nv-steps { display: flex; flex-direction: column; gap: 0; }
.nv-step { display: flex; gap: 16px; align-items: flex-start; position: relative; padding-bottom: 20px; }
.nv-step:last-child { padding-bottom: 0; }
.nv-step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.nv-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--nv-pale-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 12px rgba(96,124,208,0.28);
  transition: transform .5s cubic-bezier(.34,1.8,.64,1), box-shadow .4s ease;
}
.nv-step:hover .nv-step-num { transform: scale(1.15); box-shadow: 0 6px 18px rgba(96,124,208,0.38); }
.nv-step-line { width: 2px; flex: 1; background: var(--nv-line); margin-top: 6px; min-height: 24px; }
.nv-step:last-child .nv-step-line { display: none; }
.nv-step-body { padding-top: 6px; min-width: 0; }
.nv-step-title { font-size: 15px; font-weight: 700; color: var(--nv-text); margin: 0 0 4px; transition: color .35s ease; }
.nv-step:hover .nv-step-title { color: var(--nv-c); }
.nv-step-text { font-size: 15px; color: var(--nv-muted); line-height: 1.4; margin: 0; }
.nv-step-text + .nv-step-text { margin-top: 6px; }

/* На мобільному:
   - Рядок 1: НОМЕР + ЗАГОЛОВОК поруч
   - Рядок 2+: ТЕКСТ кроку на повну ширину
   Реалізовано через CSS Grid + display:contents для .nv-step-body */
@media (max-width: 640px) {
  .nv-step {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    column-gap: 12px !important;
    row-gap: 8px !important;
    padding-bottom: 18px;
    align-items: start;
  }
  .nv-step-left {
    grid-column: 1; grid-row: 1;
    flex-direction: row;
    align-self: center;
  }
  .nv-step-line { display: none; }
  .nv-step-num {
    width: 32px; height: 32px;
    font-size: 14px;
  }
  /* Розгортаємо вміст nv-step-body — title і text стають direct grid children */
  .nv-step-body {
    display: contents !important;
  }
  .nv-step-body .nv-step-title {
    grid-column: 2; grid-row: 1;
    margin: 0 !important;
    align-self: center;
  }
  .nv-step-body .nv-step-text {
    grid-column: 1 / -1;
    margin: 0 !important;
  }
  /* Лінія-розділювач між кроками */
  .nv-step + .nv-step {
    border-top: 1px solid var(--nv-line);
    padding-top: 18px;
  }
}
.nv-step-text a { color: var(--nv-c); text-decoration: none; font-weight: 600; }
.nv-step-text a:hover { text-decoration: underline; }
.nv-step-text strong { color: var(--nv-text); }

/* ── SERVICE / CATEGORY CARDS (для grid у послугах та "ми лікуємо") ── */
.nv-tile {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px;
  background: var(--nv-bg);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-rad);
  /* без transform — щоб не блимало на краях */
  transition: background .35s, box-shadow .4s, border-color .35s;
  position: relative;
  overflow: hidden;
}
.nv-tile:hover {
  background: rgba(255,255,255,0.92);
  border-color: rgba(96,124,208,0.36);
  box-shadow: 0 14px 32px rgba(96,124,208,0.18);
}
.nv-tile-head { display: flex; align-items: center; gap: 12px; }
.nv-tile-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--nv-pale-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .5s cubic-bezier(.34,1.6,.64,1);
}
.nv-tile:hover .nv-tile-icon { transform: rotate(-6deg) scale(1.06); }
.nv-tile-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nv-tile h4 { font-size: 16px; font-weight: 800; color: var(--nv-text); margin: 0; line-height: 1.3; letter-spacing: -.005em; }
.nv-tile p { font-size: 15px; line-height: 1.4; color: var(--nv-muted); margin: 0; }
.nv-tile ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.nv-tile ul li {
  position: relative; padding-left: 22px;
  font-size: 15px; line-height: 1.4; color: var(--nv-text);
}
.nv-tile ul li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--nv-pale);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23607cd0%27 stroke-width=%273.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27><polyline points=%2720 6 9 17 4 12%27/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 9px 9px;
}

/* ── TAGS (для "Ми лікуємо") ── */
.nv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.nv-tag {
  display: inline-flex; align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--nv-pale);
  color: var(--nv-c);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(96,124,208,0.15);
  transition: background .25s, color .25s, border-color .25s;
}
.nv-tag:hover { background: var(--nv-c); color: #fff; border-color: var(--nv-c); }

/* ── PHONE INLINE LINK ── */
.nv-phone-link { color: var(--nv-c); font-weight: 700; text-decoration: none; }
.nv-phone-link:hover { text-decoration: underline; }

/* ── FIX: artolio template inline opacity:0 на .spx-apple-premium ===== */
.spmedical-symptoms .tab-pane.spx-apple-premium,
.spmedical-symptoms .spx-apple-premium {
  opacity: 1 !important;
  transform: none !important;
}

/* ── SPECIALISTS & DEPARTMENT HEAD — узгодження зі стилем nv- ──
   Шаблон default.php виводить картки лікарів і завідувача у власних
   класах (.spec-card / .spec-photo / .specialist-* / .spec-arrow тощо).
   Підгонимо їх під glass + бузково-блакитну палітру. Скоупимо все
   під .spmedical-symptoms — не зачіпає інші сторінки. */
.spmedical-symptoms .spec-module-head { margin-bottom: 18px; }
.spmedical-symptoms .spec-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #111114 !important;
  letter-spacing: -.01em !important;
}
.spmedical-symptoms .spec-count {
  background: var(--nv-pale) !important;
  color: var(--nv-c) !important;
  font-weight: 700 !important;
}
.spmedical-symptoms .spec-arrow {
  background: rgba(255,255,255,0.7) !important;
  border: 1px solid var(--nv-line) !important;
  color: var(--nv-c) !important;
  box-shadow: 0 2px 8px rgba(96,124,208,0.10) !important;
  transition: background .25s, border-color .25s, color .25s !important;
}
.spmedical-symptoms .spec-arrow:hover {
  background: linear-gradient(145deg, #617dd0, #8288db) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Картка лікаря — radius=25 синхронізований з ElectricBorder JS (rx=25) */
.spmedical-symptoms .spec-card {
  position: relative !important;
  background: #ffffff !important;
  border: 1px solid rgba(96,124,208,0.13) !important;
  border-radius: 22px !important;
  padding: 0 !important;            /* контент отримує padding окремо */
  overflow: hidden !important;       /* фото обрізається по border-radius картки */
  box-shadow: 0 2px 12px rgba(96,124,208,0.10) !important;
  transition: box-shadow .4s, border-color .4s !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
}
.spmedical-symptoms .spec-card:hover {
  border-color: rgba(96,124,208,0.34) !important;
  box-shadow: 0 14px 32px rgba(96,124,208,0.20) !important;
  transform: none !important;
}

/* Завідувач — золота рамка як акцент */
.spmedical-symptoms .spec-card.is-head {
  border-color: #f5b842 !important;
  box-shadow: 0 2px 12px rgba(96,124,208,0.08) !important;
}
.spmedical-symptoms .spec-card.is-head:hover {
  border-color: #e8a014 !important;
  box-shadow: 0 14px 32px rgba(96,124,208,0.20) !important;
}

/* ── PERFORMANCE: вимикаємо ElectricBorder на всіх spec-card ── */
.spmedical-symptoms .spec-card > svg[aria-hidden="true"] {
  display: none !important;
}

/* Голова картки — фото на всю ширину зверху, по периметру */
.spmedical-symptoms .spec-head {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-direction: unset !important;
}

/* Фото лікаря — cover-top на всю ширину картки.
   Aspect 1:1 (квадрат) + object-position 25% — обличчя завжди в кадрі,
   незалежно від оригінальних пропорцій фото. */
.spmedical-symptoms .spec-photo {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.6), transparent 60%),
    linear-gradient(145deg, #e9eef9, #d6deef) !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden;
  position: relative;
  transition: none !important;
}
.spmedical-symptoms .spec-card:hover .spec-photo {
  box-shadow: none !important;
}
.spmedical-symptoms .spec-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  /* center 25% — обличчя приблизно в верхній чверті більшості портретів */
  object-position: center 25% !important;
  display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.spmedical-symptoms .spec-card:hover .spec-photo img {
  transform: scale(1.04);
}
/* Делікатний fade-overlay знизу фото — мʼякий перехід до тексту картки */
.spmedical-symptoms .spec-photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 100%);
  pointer-events: none;
}

/* Імʼя лікаря — з власним padding бо картка тепер padding:0 */
.spmedical-symptoms .spec-name {
  text-align: center !important;
  margin: 0 !important;
  padding: 16px 18px 0 !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
.spmedical-symptoms .spec-name a {
  color: #111114 !important;
  text-decoration: none !important;
  transition: color .25s !important;
}
.spmedical-symptoms .spec-name a:hover { color: var(--nv-c) !important; }

/* Розділювач — контрастний градієнт, з відступом від країв картки */
.spmedical-symptoms .specialist-divider {
  height: 2px !important;
  background: linear-gradient(90deg,
    rgba(96,124,208,0) 0%,
    rgba(96,124,208,0.5) 25%,
    rgba(96,124,208,0.5) 75%,
    rgba(96,124,208,0) 100%) !important;
  margin: 14px 18px !important;
  border: none !important;
  border-radius: 2px;
}

/* Інфо-блок з мета-полями — компактний, з padding від країв картки */
.spmedical-symptoms .spec-info {
  display: flex; flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--nv-text);
  padding: 0 18px;
  margin-bottom: auto;
}
.spmedical-symptoms .spec-info .specialist-specialitist {
  padding: 0 !important;
  margin: 0 !important;
}
.spmedical-symptoms .spec-info .specialist-specialitist + .specialist-specialitist {
  margin-top: 0 !important;
}
.spmedical-symptoms .specialist-specialitist {
  display: flex; gap: 5px; flex-wrap: wrap;
  align-items: baseline;
}
.spmedical-symptoms .spec-des {
  font-size: 11.5px !important;
  color: var(--nv-muted) !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Кнопка "Переглянути профіль" */
.spmedical-symptoms .specialist-profile-btn,
.spmedical-symptoms .specialist-head-btn-m,
.spmedical-symptoms .specialist-head-btn-d {
  margin-top: 14px !important;
  padding: 0 18px 18px !important;     /* нижній і бічні відступи від країв картки */
  text-align: center !important;
}
.spmedical-symptoms .specialist-profile-btn a,
.spmedical-symptoms .specialist-head-btn-m a,
.spmedical-symptoms .specialist-head-btn-d a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  background: linear-gradient(135deg, #607cd0 0%, #7a84de 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(96,124,208,0.32) !important;
  border: none !important;
  transition: box-shadow .25s, filter .25s !important;
  box-sizing: border-box;
  white-space: nowrap;
}
/* На мобільних кнопка full-width — щоб не вилазила за межі картки */
@media (max-width: 640px) {
  .spmedical-symptoms .specialist-profile-btn a,
  .spmedical-symptoms .specialist-head-btn-m a,
  .spmedical-symptoms .specialist-head-btn-d a {
    display: flex !important;
    width: 100% !important;
  }
}
.spmedical-symptoms .specialist-profile-btn a:hover,
.spmedical-symptoms .specialist-head-btn-m a:hover,
.spmedical-symptoms .specialist-head-btn-d a:hover {
  box-shadow: 0 8px 22px rgba(96,124,208,0.46) !important;
  filter: brightness(1.06);
  color: #fff !important;
}

/* Бейдж "Завідувач" — золотистий, у нижньому лівому куті фото
   (щоб не закривав обличчя зверху-справа) */
.spmedical-symptoms .spec-head-badge {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  left: 10px !important;
  bottom: 10px !important;
  z-index: 3 !important;
  background: linear-gradient(135deg, #f5b842 0%, #e8a014 100%) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28) !important;
}

/* Велика картка завідувача — фото-карта + проза */
.spmedical-symptoms .spec-grid-head {
  display: grid !important;
  grid-template-columns: minmax(280px, 340px) 1fr !important;
  gap: 18px !important;
  align-items: start !important;     /* картки беруть свою природну висоту */
}
@media (max-width: 760px) {
  .spmedical-symptoms .spec-grid-head { grid-template-columns: 1fr !important; }
}
/* Фото великого завідувача — успадковує загальний aspect 1:1 і
   object-position 25% з .spec-photo. Жодних override aspect/position. */

/* Бейдж "Завідувач" у великій картці — успадковує позицію
   з .spec-head-badge (нижній лівий кут фото) */

/* У табі «Завідувач» ховаємо мета-поля (Посада/Спеціальність/Досвід/
   Кваліфікація) — повна інфа доступна у профілі за кнопкою. Дивідер
   і мобільну кнопку (-m) на desktop теж прибираємо. */
.spmedical-symptoms .spec-grid-head .spec-info .specialist-specialitist,
.spmedical-symptoms .spec-grid-head .specialist-divider,
.spmedical-symptoms .spec-grid-head .spec-info {
  display: none !important;
}
/* Додаємо нижній padding до картки, бо .spec-info видалено — інакше
   ім'я завідувача притиснуте до нижньої рамки */
.spmedical-symptoms .spec-grid-head .spec-card {
  padding-bottom: 20px !important;
}

/* Блок прози про завідувача */
.spmedical-symptoms .department-head-note {
  background: rgba(255,255,255,0.72);
  /* blur прибрано — економимо ресурси */
  border: 1px solid var(--nv-border);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 2px 16px rgba(96,124,208,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
}
.spmedical-symptoms .department-head-note .spec-title {
  font-size: 18px !important;
  margin: 0 0 14px !important;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--nv-line);
}
.spmedical-symptoms .department-head-note p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--nv-text);
}
.spmedical-symptoms .department-head-note p:last-of-type { margin-bottom: 16px; }
.spmedical-symptoms .department-head-note .specialist-head-btn-d {
  margin-top: auto !important;
}

/* Лікарі — сітка 4 cols замість горизонтальної каруселі */
.spmedical-symptoms .spec-grid.spec-carousel {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  padding: 4px !important;
  margin: 0 !important;
}
.spmedical-symptoms .spec-grid.spec-carousel .spec-card {
  flex: none !important;
  scroll-snap-align: none !important;
}
/* Ховаємо кнопки prev/next — гортання не потрібне */
.spmedical-symptoms .spec-carousel-controls {
  display: none !important;
}
@media (max-width: 1180px) {
  .spmedical-symptoms .spec-grid.spec-carousel {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 880px) {
  .spmedical-symptoms .spec-grid.spec-carousel {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* трохи менше фото в 2-col, щоб імʼя влізало в один рядок */
  .spmedical-symptoms .spec-grid.spec-carousel .spec-photo {
    width: 150px !important;
    height: 150px !important;
  }
}
@media (max-width: 640px) {
  /* Лікарі — 2 col максимально компактно */
  .spmedical-symptoms .spec-grid.spec-carousel {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .spmedical-symptoms .spec-grid.spec-carousel .spec-card {
    padding: 0 !important;        /* зберігаємо cover-top: фото у краях */
    border-radius: 16px !important;
  }
  /* Фото cover-top на всю ширину — як на десктоп, квадратне */
  .spmedical-symptoms .spec-grid.spec-carousel .spec-photo {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .spmedical-symptoms .spec-grid.spec-carousel .spec-name {
    font-size: 12.5px !important;
    padding: 12px 12px 0 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }
  .spmedical-symptoms .spec-grid.spec-carousel .specialist-divider {
    margin: 10px 12px !important;
  }
  .spmedical-symptoms .spec-grid.spec-carousel .spec-info {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    gap: 3px !important;
    padding: 0 12px !important;
  }
  /* Ховаємо labels ("Посада:", "Спеціальність:" …) — лишаємо лише значення */
  .spmedical-symptoms .spec-grid.spec-carousel .spec-des {
    display: none !important;
  }
  /* Показуємо тільки перші 2 поля (Посада + Спеціальність), решту ховаємо */
  .spmedical-symptoms .spec-grid.spec-carousel .specialist-specialitist:nth-child(n+3) {
    display: none !important;
  }
  /* Кнопка ультра-компактна, full-width у нижньому padding */
  .spmedical-symptoms .spec-grid.spec-carousel .specialist-profile-btn {
    margin-top: 10px !important;
    padding: 0 12px 12px !important;
  }
  .spmedical-symptoms .spec-grid.spec-carousel .specialist-profile-btn a {
    width: 100% !important;
    display: flex !important;
    font-size: 11.5px !important;
    padding: 7px 8px !important;
    gap: 4px !important;
    box-sizing: border-box !important;
  }
  .spmedical-symptoms .spec-grid.spec-carousel .spec-head-badge {
    font-size: 9.5px !important;
    padding: 3px 7px !important;
    height: auto !important;
    left: 6px !important;
    bottom: 6px !important;
    top: auto !important;
    right: auto !important;
    z-index: 3;
  }
}
@media (max-width: 380px) {
  /* На дуже маленьких — 1 col */
  .spmedical-symptoms .spec-grid.spec-carousel {
    grid-template-columns: 1fr !important;
  }
}

/* ── TABS — крутіший стиль, узгоджений з рештою UI ──
   Скасовуємо шаблонні transform (щоб не блимало), додаємо glass
   для inactive і градієнтний glow для active. */
.spmedical-symptoms .nav-tabs {
  border: none !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
  padding-bottom: 4px;
}
.spmedical-symptoms .nav-tabs .nav-item { margin: 0 !important; }
.spmedical-symptoms .nav-tabs .nav-link,
.spmedical-symptoms .nav-tabs .nav-link:hover,
.spmedical-symptoms .nav-tabs .nav-link:focus {
  transform: none !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  border: 1px solid rgba(96,124,208,0.18) !important;
  border-radius: 50px !important;
  background: rgba(255,255,255,0.7) !important;
  color: #313680 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: .005em;
  box-shadow: 0 2px 8px rgba(96,124,208,0.06), inset 0 1px 0 rgba(255,255,255,0.7) !important;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s !important;
  overflow: hidden;
}
.spmedical-symptoms .nav-tabs .nav-link:hover {
  background: #fff !important;
  border-color: rgba(96,124,208,0.4) !important;
  color: #1d3a8a !important;
  box-shadow: 0 6px 18px rgba(96,124,208,0.16), inset 0 1px 0 rgba(255,255,255,0.9) !important;
}
/* активний таб — градієнтний з glow */
.spmedical-symptoms .nav-tabs .nav-link.active,
.spmedical-symptoms .nav-tabs .nav-link.active:hover,
.spmedical-symptoms .nav-tabs .nav-link.active:focus {
  background: linear-gradient(145deg, #617dd0 0%, #8288db 50%, #5d71af 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow:
    0 0 0 4px rgba(96,124,208,0.18),
    0 10px 26px rgba(96,124,208,0.4),
    inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nv-grid-3 { grid-template-columns: 1fr 1fr; }
  /* на середніх екранах фото переходить НАД інфою */
  .nv-hero { grid-template-columns: 1fr; gap: 20px; }
  .nv-hero-photo { order: -1; min-height: 260px; }
  .nv-photo-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nv-grid-2, .nv-grid-3 { grid-template-columns: 1fr; }
  /* На мобільному hero без бічного padding — фото впритул до країв */
  .nv-hero {
    padding: 0 !important;
    margin-top: 8px;
    overflow: hidden;     /* щоб фото обрізалось по border-radius hero */
  }
  .nv-hero-info {
    padding: 0px 18px 24px;
    gap: 12px;
  }
  .nv-hero-photo {
    min-height: 220px;
    border-radius: 22px 22px 0 0 !important;   /* округлені лише верхні кути */
    margin: 0;
  }
  .nv-title { font-size: 23px; }
  .nv-card { padding: 22px 20px; }
  .nv-hero-stats { grid-template-columns: 1fr; }
  .nv-stat-num { font-size: 16px; }
}
@media (max-width: 540px) {
  .nv-hero-photo { min-height: 200px; }
}

/* На мобільному обгортка-картка (Види послуг / Ми лікуємо / Діагностика)
   стає прозорою, щоб не було "блок в блоці" і не з’їдало бічні відступи */
@media (max-width: 640px) {
  .nv-card.nv-card--wrap {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .nv-card.nv-card--wrap .nv-section-title {
    margin-bottom: 14px;
  }
}

/* На смартфонах ховаємо телефонні бейджі у hero (a.nv-cbadge з href="tel:")
   Лишаються тільки графік (Пн–Пт) і Стаціонар 24/7 — як короткий саммарі */
@media (max-width: 640px) {
  .nv-contacts a.nv-cbadge[href^="tel:"] {
    display: none !important;
  }
}

/* ── GALLERY — адаптивна сітка зображень відділення ──
   Перший елемент займає 2 cells (виглядає як хіро-фото галереї),
   решта — рівна grid з auto-fit. На мобільних усе вирівнюється в 1-2 cols. */
.nv-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  grid-auto-flow: dense;
  grid-auto-rows: 200px;
}
.nv-gallery-item {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--nv-pale);
  box-shadow: 0 2px 12px rgba(96,124,208,0.10);
  transition: box-shadow .3s ease;
  cursor: zoom-in;
  text-decoration: none;
}
.nv-gallery-item:hover {
  box-shadow: 0 10px 28px rgba(96,124,208,0.22);
}
.nv-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.nv-gallery-item:hover img {
  transform: scale(1.06);
}
.nv-gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,31,74,0) 60%, rgba(15,31,74,0.45) 100%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.nv-gallery-item:hover::after { opacity: 1; }
.nv-gallery-caption {
  position: absolute;
  left: 12px; bottom: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,.55);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
  z-index: 1;
}
.nv-gallery-item:hover .nv-gallery-caption {
  opacity: 1;
  transform: none;
}
/* Перший елемент — широкий і високий (двопанельний хіро) */
.nv-gallery-item--wide {
  grid-column: span 2;
  grid-row: span 2;
}
.nv-gallery-item--tall {
  grid-row: span 2;
}
@media (max-width: 640px) {
  .nv-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
    gap: 8px;
  }
  .nv-gallery-item--wide {
    grid-column: span 2;
    grid-row: span 2;
  }
  .nv-gallery-item--tall {
    grid-row: auto;
  }
  .nv-gallery-caption { font-size: 11.5px; left: 10px; bottom: 8px; }
}
@media (max-width: 380px) {
  .nv-gallery { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .nv-gallery-item--wide { grid-column: auto; grid-row: span 1; }
}

/* Велика картка ЗАВІДУВАЧА на мобільному — лишається cover-top,
   просто менший aspect-ratio і компактніший бейдж */
@media (max-width: 640px) {
  .spmedical-symptoms .spec-grid-head .spec-head-badge {
    left: 8px !important;
    bottom: 8px !important;
    top: auto !important;
    right: auto !important;
    font-size: 10.5px !important;
    padding: 4px 9px !important;
  }
  .spmedical-symptoms .spec-grid-head .spec-info {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nv-card, .nv-tile, .nv-step-num, .nv-i-icon, .nv-tile-icon, .nv-hero-photo, .nv-hero-photo img { transition: none !important; }
  .nv-badge::after, .nv-hero-photo::before { animation: none; }
}

/* =========================================================
   LIGHTBOX — модальне вікно для галереї відділення
   (переноситься в <body> через JS, !important проти шаблонних стилів)
   ========================================================= */
.nv-lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nv-lightbox[hidden] { display: none !important; }
.nv-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nv-lb-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 31, 74, 0.55) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.nv-lb-stage {
  position: relative !important;
  z-index: 1 !important;
  max-width: 92vw;
  max-height: 88vh;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px;
}
.nv-lb-img {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  background: #0f1f4a;
  display: block;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .25s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.nv-lightbox.is-open .nv-lb-img {
  opacity: 1;
  transform: none;
}
.nv-lb-meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.nv-lb-caption {
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
}
.nv-lb-counter {
  color: rgba(255,255,255,0.75) !important;
  font-size: 12.5px;
  font-weight: 500;
}
.nv-lb-btn {
  position: absolute !important;
  z-index: 2 !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  font: inherit !important;
  line-height: 1 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
.nv-lb-btn:hover {
  background: rgba(255,255,255,0.25) !important;
  border-color: rgba(255,255,255,0.4) !important;
  color: #fff !important;
}
.nv-lb-btn svg {
  width: 22px !important;
  height: 22px !important;
  stroke: currentColor !important;
  fill: none !important;
}
.nv-lb-close { top: 18px !important; right: 18px !important; }
.nv-lb-prev  { left: 18px !important;  top: 50% !important; transform: translateY(-50%) !important; }
.nv-lb-next  { right: 18px !important; top: 50% !important; transform: translateY(-50%) !important; }
@media (max-width: 640px) {
  .nv-lb-btn { width: 40px !important; height: 40px !important; min-width: 40px !important; }
  .nv-lb-btn svg { width: 18px !important; height: 18px !important; }
  .nv-lb-close { top: 12px !important; right: 12px !important; }
  .nv-lb-prev  { left: 8px !important; }
  .nv-lb-next  { right: 8px !important; }
  .nv-lb-caption { font-size: 13.5px; }
  .nv-lb-img { max-height: 70vh; }
}
.nv-gallery-item { cursor: zoom-in; }
