/* Меню Б, „Преди → Проект → Готово“, портфолио, /projects, проект и блокове „Проекти“ (nx-projects.js).
   Цветове и шрифтове на сайта: #FFC400, #111, #F5F4EF; Montserrat за заглавия, Inter за текст. */
:root { --nx-y: #FFC400; --nx-k: #111; --nx-cream: #F5F4EF; --nx-line: #E2E0D8; --nx-text: #334155; --nx-muted: #64748B; }

/* ── Меню Б ── */
.nx-slot-nav { position: relative; z-index: 1000; }
.nxh { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--nx-y); box-shadow: 0 2px 0 var(--nx-k); font-family: Inter, sans-serif; }
.nxh.scrolled { box-shadow: 0 2px 0 var(--nx-k), 0 6px 20px rgba(17,17,17,.12); }
.nxh-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 72px; }
.nxh-logo { display: flex; align-items: center; flex-shrink: 0; }
.nxh-logo img { height: 40px; width: auto; display: block; }
.nxh-links { display: flex; align-items: center; gap: 2px; }
.nxh-btn { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--nx-k); font: 600 15px Inter, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.nxh-btn span { font-size: 10px; }
.nxh-btn:hover { background: rgba(0,0,0,.08); color: var(--nx-k); }
.nxh-btn.on { background: var(--nx-k); color: var(--nx-y); }
.nxh-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nxh-phone { font-weight: 700; font-size: 15px; color: var(--nx-k); text-decoration: none; white-space: nowrap; }
.nxh-viz { background: var(--nx-k); color: var(--nx-y) !important; font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 4px; text-decoration: none; white-space: nowrap; }
.nxh-viz:hover { box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.nxh a:focus-visible, .nxh button:focus-visible { outline: 2px solid var(--nx-k); outline-offset: 2px; }

.nxh-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 3px solid var(--nx-k); box-shadow: 0 24px 50px rgba(17,17,17,.15); max-height: calc(100vh - 80px); overflow: auto; }
.nxm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; padding: 28px 0; }
.nxm-col { display: flex; flex-direction: column; gap: 8px; }
.nxm-head { font: 800 14px Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .03em; color: var(--nx-k); text-decoration: none; border-bottom: 2px solid var(--nx-y); padding-bottom: 6px; align-self: flex-start; }
.nxm-item { font-size: 15px; color: var(--nx-text); text-decoration: none; display: flex; align-items: center; }
.nxm-item:hover, .nxm-head:hover { color: #000; text-decoration: underline; text-decoration-color: var(--nx-y); text-underline-offset: 3px; }
.nxh-who { position: absolute; top: 100%; width: 300px; background: #fff; border-top: 3px solid var(--nx-k); box-shadow: 0 24px 50px rgba(17,17,17,.15); padding: 16px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.nxh-who[hidden], .nxh-mega[hidden], .nxh-mob[hidden], .nxo-svc[hidden] { display: none; }
.nxw-item { font-size: 15px; color: var(--nx-text); text-decoration: none; }
.nxw-item:hover { color: #000; text-decoration: underline; text-decoration-color: var(--nx-y); text-underline-offset: 3px; }
.nxw-all { font-weight: 700; color: var(--nx-k); text-decoration: none; border-bottom: 1px solid var(--nx-line); padding-bottom: 8px; }


@media (max-width: 1180px) { .nxh-phone { display: none; } }
@media (max-width: 900px) {
  .nxh-in { height: 64px; }
  .nxh-logo img { height: 30px; }
  .nxh-links, .nxh-cta, .nxh-mega, .nxh-who { display: none !important; }
  .nxh-in .nxh-burger, .nxh-in .nxh-mcall { display: inline-flex; }
  .nxh-in .nxh-mcall { margin-left: auto; margin-right: 8px; }
}

/* ── Общи ── */
.nx-wrap { display: flex; flex-direction: column; gap: 32px; }
.nx-head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.nx-head h2, .nx-archive h2, .nx-more-sec h2, .nx-related h2 { margin: 0; font: 800 clamp(26px, 3.4vw, 44px)/1.15 Montserrat, sans-serif; color: var(--nx-k); text-wrap: balance; }
.nx-archive h2, .nx-more-sec h2, .nx-related h2 { font-size: clamp(22px, 2.4vw, 28px); }
.nx-head p { margin: 0; font-size: 17px; line-height: 1.6; max-width: 640px; color: var(--nx-text); }
.nx-badge { align-self: center; background: var(--nx-y); color: var(--nx-k); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; }
.nx-center { display: flex; justify-content: center; }
.nx-empty { color: var(--nx-muted); text-align: center; padding: 24px 0; }
.nx-btn-y, .nx-btn-k, .nx-btn-o { display: inline-block; font-weight: 700; padding: 14px 22px; border-radius: 4px; text-align: center; text-decoration: none; }
.nx-btn-y { background: var(--nx-y); color: var(--nx-k) !important; }
.nx-btn-k { background: var(--nx-k); color: var(--nx-y) !important; }
.nx-btn-o { border: 1px solid var(--nx-k); background: #fff; color: var(--nx-k) !important; padding: 13px 20px; }
.nx-seg { display: inline-flex; gap: 4px; background: var(--nx-cream); padding: 4px; border-radius: 8px; flex-wrap: wrap; }
.nx-seg button { border: 0; border-radius: 6px; padding: 9px 14px; font: 600 14px Inter, sans-serif; background: transparent; color: var(--nx-text); cursor: pointer; }
.nx-seg button.on { background: var(--nx-k); color: var(--nx-y); }
.nx-tod button.on { background: var(--nx-y); color: var(--nx-k); }
.nx-seg button:focus-visible, .nx-pills button:focus-visible, .nx-filters button:focus-visible, .nx-thumbs button:focus-visible { outline: 2px solid var(--nx-k); outline-offset: 2px; }

/* карти */
.nx-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.nx-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nx-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 18px rgba(17,17,17,.07); display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.nx-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(17,17,17,.12); }
.nx-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--nx-k); display: block; overflow: hidden; }
.nx-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-tag { position: absolute; left: 10px; top: 10px; background: var(--nx-y); color: var(--nx-k); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.nx-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.nx-card-body b { font: 700 15px Montserrat, sans-serif; color: var(--nx-k); }
.nx-card-body small { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nx-muted); }

/* етапи */
.nx-stage { position: relative; border-radius: 12px; overflow: hidden; background: var(--nx-k); aspect-ratio: 4 / 3; box-shadow: 0 10px 30px rgba(17,17,17,.12); }
.nx-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-stage-bg { position: absolute; inset: -24px; background: center / cover no-repeat; filter: blur(20px) brightness(.6); display: none; }
.nx-stage.tall .nx-stage-bg { display: block; }
.nx-stage.tall img { position: relative; object-fit: contain; }
.nx-stage-lbl { position: absolute; top: 14px; left: 14px; background: var(--nx-y); color: var(--nx-k); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; }
.nx-stage-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 12px; }
/* лупички и „Отблизо“ */
.nx-stage-img { transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .5s; }
.nx-stage.zoom-in .nx-stage-img { transform: scale(1.8); filter: blur(3px) brightness(.7); }
.nx-hs { position: absolute; z-index: 2; width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0; border: 0; background: none; cursor: zoom-in; display: flex; align-items: center; justify-content: center; color: var(--nx-k); -webkit-tap-highlight-color: transparent; transition: opacity .25s; }
.nx-hs[hidden] { display: none; }
.nx-hs { --hs: 26px; }
.nx-hs-s { --hs: 20px; }
.nx-hs-l { --hs: 34px; }
.nx-hs svg { position: relative; z-index: 1; width: var(--hs); height: var(--hs); padding: calc(var(--hs) * .2); box-sizing: border-box; border-radius: 50%; background: var(--nx-y); box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 0 0 2px rgba(255,255,255,.9); transition: transform .2s; }
.nx-hs::before { content: ""; position: absolute; width: var(--hs); height: var(--hs); border-radius: 50%; background: var(--nx-y); animation: nx-pulse 2.4s ease-out infinite; }
@keyframes nx-pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
.nx-hs:hover svg, .nx-hs:focus-visible svg { transform: scale(1.12); }
.nx-hs:focus-visible { outline: none; }
.nx-hs:focus-visible svg { box-shadow: 0 0 0 3px var(--nx-k), 0 0 0 6px var(--nx-y); }
.nx-hs-tip { position: absolute; left: 30px; top: 50%; transform: translate(0, -50%); white-space: nowrap; background: rgba(17,17,17,.88); color: #fff; font: 600 13px Inter, sans-serif; padding: 6px 10px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.nx-hs.left .nx-hs-tip { left: auto; right: 30px; }
.nx-hs:hover .nx-hs-tip, .nx-hs:focus-visible .nx-hs-tip { opacity: 1; }
.nx-stage.zoomed .nx-hs, .nx-stage.zoomed > .nx-stage-lbl { opacity: 0; pointer-events: none; }
.nx-zoom { position: absolute; inset: 0; z-index: 3; overflow: hidden; background: var(--nx-k); opacity: 0; transform: scale(.18); transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .35s ease; }
.nx-stage.zoom-in .nx-zoom { opacity: 1; transform: none; }
.nx-zoom img { position: relative; }
.nx-zoom.tall .nx-stage-bg { display: block; }
.nx-zoom.tall img { object-fit: contain; }
.nx-zoom:not(.tall) img { object-fit: cover; }
/* под снимката, на мястото на „Преди / Проект / Готово“ */
.nx-zooming > .nx-stage-bar { display: none; }
.nx-zoom-ctl { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 44px; }
.nx-zoom-lbl { flex: 1; min-width: 0; font: 500 14px Inter, sans-serif; color: var(--nx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-zoom-lbl b { color: var(--nx-k); font-weight: 700; }
.nx-zoom-back, .nx-zoom-nav { flex: none; background: var(--nx-k); color: #fff; border: 0; border-radius: 999px; font: 700 14px Inter, sans-serif; min-height: 44px; }
.nx-zoom-back { padding: 0 18px 0 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.nx-zoom-back:hover, .nx-zoom-back:focus-visible { background: var(--nx-y); color: var(--nx-k); outline: none; }
.nx-zoom-nav { display: inline-flex; align-items: center; padding: 0 4px; }
.nx-zoom-nav span { min-width: 44px; text-align: center; font-size: 13px; }
.nx-zoom-nav button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.nx-zoom-nav button:hover, .nx-zoom-nav button:focus-visible { background: var(--nx-y); color: var(--nx-k); outline: none; }
@media (prefers-reduced-motion: reduce) {
  .nx-hs::before { animation: none; display: none; }
  .nx-stage-img, .nx-zoom { transition: opacity .2s; }
  .nx-stage.zoom-in .nx-stage-img { transform: none; }
  .nx-zoom { transform: none; }
}
@media (hover: none) { .nx-hs-tip { display: none; } }
.nx-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; }
.nx-thumbs button { flex: none; width: 108px; height: 80px; padding: 0; border-radius: 6px; overflow: hidden; background: var(--nx-k); border: 3px solid transparent; cursor: pointer; }
.nx-thumbs button.on { border-color: var(--nx-y); }
.nx-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 15px; border-top: 1px solid var(--nx-line); padding-top: 16px; }
.nx-facts dt { color: var(--nx-muted); }
.nx-facts dd { margin: 0; color: var(--nx-k); }
.nx-ctas { display: flex; flex-direction: column; gap: 10px; }

/* ── Начална: „Преди → Проект → Готово“ ── */
.nx-ba { background: #fff; padding: 32px 0 96px; border-top: 1px solid #F1EFE8; }
.nx-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nx-pills button { border: 1px solid var(--nx-line); background: #fff; color: var(--nx-k); border-radius: 999px; padding: 9px 18px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.nx-pills button.on { border-color: var(--nx-y); background: var(--nx-y); }
.nx-ba-stage { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.nx-ba-card { background: var(--nx-cream); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.nx-ba-card h3 { margin: 0; font: 800 26px Montserrat, sans-serif; color: var(--nx-k); }
.nx-ba-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--nx-text); }
.nx-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-muted); }
.nx-ba-card .nx-ctas { margin-top: auto; }
.nx-more { font-weight: 700; color: var(--nx-k); text-align: center; text-decoration: none; }

/* ── Начална: портфолио ── */
.nx-slot-home-portfolio { position: relative; z-index: 1; }

/* ── Блок „Проекти“ ── */
.nx-block { background: #fff; padding: 72px 0; }

/* ── /projects ── */
.nx-hero { position: relative; overflow: hidden; background: var(--nx-k); color: #fff; }
.nx-stripes { position: absolute; right: -120px; top: 0; bottom: 0; width: 620px; background: repeating-linear-gradient(-55deg, transparent 0 70px, var(--nx-y) 70px 110px); opacity: .95; clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%); }
.nx-hero-in { position: relative; display: flex; flex-direction: column; gap: 16px; padding-top: 64px; padding-bottom: 72px; }
.nx-hero .nx-badge { align-self: flex-start; }
.nx-hero h1 { margin: 0; font: 800 clamp(34px, 5vw, 64px)/1.05 Montserrat, sans-serif; letter-spacing: -0.01em; max-width: 760px; color: #fff; }
.nx-hero p { margin: 0; font-size: 18px; line-height: 1.6; color: #E2E8F0; max-width: 620px; }
.nx-crumbs { font-size: 13px; color: #CBD5E1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nx-crumbs a { color: #CBD5E1; text-decoration: none; }
.nx-crumbs span { color: #fff; }
.nx-list { padding: 40px 0 72px; }
.nx-toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.nx-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-filters button { border: 1px solid var(--nx-line); background: #fff; color: var(--nx-k); border-radius: 999px; padding: 8px 16px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.nx-filters button.on { border-color: var(--nx-y); background: var(--nx-y); }
.nx-archive { background: var(--nx-cream); padding: 64px 0 72px; }
.nx-archive h2 { margin-bottom: 24px; }
.nx-cta { background: var(--nx-y); padding: 56px 0; }
.nx-cta-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.nx-cta h2 { margin: 0 0 8px; font: 800 30px Montserrat, sans-serif; color: var(--nx-k); }
.nx-cta p { margin: 0; color: var(--nx-k); font-size: 17px; }

/* ── Страница на проект ── */
.nx-detail { padding: 48px 0 64px; }
.nx-det { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.nx-aside { background: var(--nx-cream); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.nx-aside p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--nx-text); }
.nx-call { font-size: 14px; text-align: center; }
.nx-call a { font-weight: 700; color: var(--nx-k); }
.nx-more-sec { padding: 0 0 64px; }
.nx-more-sec h2 { margin-bottom: 20px; }
.nx-gal { border-radius: 10px; overflow: hidden; background: var(--nx-k); aspect-ratio: 4 / 3; display: block; }
.nx-gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-video { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }
.nx-related { background: var(--nx-cream); padding: 56px 0 72px; }
.nx-rel-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.nx-prevnext { display: flex; gap: 8px; }

@media (max-width: 900px) {
  .nx-grid4, .nx-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nx-ba-stage, .nx-det { grid-template-columns: minmax(0, 1fr); }
  .nx-stripes { width: 260px; opacity: .6; }
  .nx-ba { padding-bottom: 64px; }
  .nx-ba-card, .nx-aside { padding: 22px; }
  .nx-card-body { padding: 10px 12px 12px; }
  .nx-card-body b { font-size: 14px; }
}

/* „Нашите Услуги“ на началната: 6 карти в 3 колони (по дизайна) */
@media (min-width: 769px) { .services-grid-new { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Меню на телефон (както старото, с новата подредба) ── */
.nxh-burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--nx-k); align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nxh-mcall { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--nx-k); color: var(--nx-y); align-items: center; justify-content: center; }
.nxh-mob { background: #fff; box-shadow: 0 24px 50px rgba(17,17,17,.15); max-height: calc(100vh - 64px); overflow: auto; }
.nxh-mob .container { display: flex; flex-direction: column; padding-top: 18px; padding-bottom: 28px; }
.nxo-btns { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 14px; }
.nxo-contact, .nxo-price { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; border-radius: 4px; font: 800 17px Montserrat, Inter, sans-serif; text-decoration: none; }
.nxo-contact { background: var(--nx-y); color: var(--nx-k); box-shadow: 0 3px 0 #d9a600; }
.nxo-price { border: 1.5px solid var(--nx-k); color: var(--nx-k); }
.nxo-home { display: flex; align-items: center; gap: 8px; padding: 12px 12px 18px; color: #44403c; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--nx-line); }
.nxo-sec { font: 800 13px Montserrat, Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #44403c; padding: 24px 0 8px; }
.nxo-acc { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; padding: 11px 8px; font: 700 15px Inter, sans-serif; text-transform: uppercase; color: var(--nx-k); cursor: pointer; text-align: left; text-decoration: none; }
.nxo-acc i { flex-shrink: 0; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.nxo-acc[aria-expanded="true"] i { transform: rotate(-135deg); margin-top: 4px; }
.nxo-svc { display: flex; flex-direction: column; gap: 4px; padding: 2px 8px 12px 20px; }
.nxo-item { font-size: 15px; color: var(--nx-text); text-decoration: none; padding: 6px 0; }
.nxo-all { font-weight: 700; color: var(--nx-k); }
.nxo-links { display: flex; flex-direction: column; border-top: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); margin: 22px 0 18px; padding: 10px 0; }
.nxo-link { padding: 12px; font-size: 16px; color: #292524; text-decoration: none; }

/* Блокът „Готови ли сте да започнете?“: текстът и бутоните над жълто-черните ивици (телефон и таблет) */
.cta-section > .container { position: relative; z-index: 2; }
.cta-section .btn-outline, .cta-section [class*=btn-outline] { background: var(--yellow, #FFC400) !important; }
@media (max-width: 1024px) {
  .cta-section:before { width: 170px !important; left: auto !important; right: -70px !important; }
}
@media (max-width: 600px) {
  .cta-section:before { width: 90px !important; right: -50px !important; }
}
/* линк под галериите на услугите */
.nx-all-link { display: inline-block; padding: 10px 6px; font-size: 14px; font-weight: 500; color: var(--gray-500, #78716c); text-decoration: none; transition: color .2s; }
.nx-all-link:hover, .nx-all-link:focus-visible { color: var(--nx-k, #111); text-decoration: underline; text-underline-offset: 3px; }

/* ── Телефон: по-малко сбито ── */
@media (max-width: 600px) {
  /* бутоните за проект/филтър — в един ред, плъзгат се настрани */
  .nx-pills, .nx-filters { position: relative; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 0 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); }
  .nx-pills::-webkit-scrollbar, .nx-filters::-webkit-scrollbar { display: none; }
  .nx-pills button, .nx-filters button { flex: none; white-space: nowrap; min-height: 40px; }
  /* етапи и Ден/Нощ на един ред */
  .nx-stage-bar { flex-wrap: nowrap; gap: 6px; }
  .nx-seg { flex-wrap: nowrap; padding: 3px; }
  .nx-seg button { padding: 9px 7px; font-size: 12.5px; white-space: nowrap; }
  .nx-stage-lbl { top: 10px; left: 10px; font-size: 11px; padding: 5px 8px; }
  .nx-zoom-ctl { gap: 8px; }
  .nx-zoom-lbl { font-size: 13px; }
  .nx-zoom-back { font-size: 13px; padding: 0 14px 0 12px; }
  .nx-card-body small { font-size: 12px; letter-spacing: .03em; }
  .nx-tag { font-size: 12px; }
}
@media (max-width: 352px) {
  .nx-stage-bar { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
  /* „Защо NeoNix“: една колона, думите не се цепят */
  .why-us-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .why-us-card { padding: 16px 18px !important; }
  .why-us-card h4 { font-size: 16px !important; }
  .why-us-card p { font-size: 14px !important; }
  /* формата за контакт: повече място за полетата */
  .contact-grid > .scroll-reveal:has(form) { padding: 22px 18px !important; }
}

/* Слайдер на началната страница: тъмен слой ~60% отляво зад текста, почти прозрачен вдясно */
.hero .hero-bg { opacity: 1; }
.hero .hero-overlay { background: linear-gradient(90deg, rgba(10,10,10,.6) 0%, rgba(10,10,10,.5) 45%, rgba(10,10,10,.08) 100%) !important; }
@media (max-width: 768px) {
  /* на телефон текстът е през целия екран — слоят е равномерен */
  .hero .hero-overlay { background: linear-gradient(180deg, rgba(10,10,10,.6), rgba(10,10,10,.5)) !important; }
}
/* етикетът над заглавието: дискретен — жълт текст и тънка рамка, без плътен фон */
.hero .hero-content .badge { background: rgba(10,10,10,.35) !important; color: var(--yellow) !important; border: 1px solid rgba(255,196,0,.5) !important; border-radius: 999px; text-transform: none; letter-spacing: .01em; font-size: 13px; font-weight: 600; padding: 5px 12px; }
@media (max-width: 768px) {
  .hero .hero-content .badge { font-size: 12px; padding: 4px 10px; }
}
@media (max-width: 400px) {
  /* на един ред и на тесни телефони: шрифтът намалява с ширината */
  .hero .hero-content .badge { font-size: min(11px, 3vw); padding: 4px 8px; letter-spacing: 0; white-space: nowrap; }
}
