.ngh-cat {
  --ngh-bg: #0a0a0f;
  --ngh-card: rgba(18, 18, 26, 0.85);
  --ngh-border: rgba(255, 255, 255, 0.08);
  --ngh-text: #ffffff;
  --ngh-muted: #a1a1b5;
  --ngh-blue: #5b8cff;
  font-family: 'Lato', 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--ngh-text);
  background: var(--ngh-bg);
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 0 0 80px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.ngh-cat *,
.ngh-cat *::before,
.ngh-cat *::after { box-sizing: border-box; }

.ngh-cat a { text-decoration: none; color: inherit; }

.ngh-cat__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.ngh-cat__glow--1 {
  width: 480px; height: 480px; top: 120px; left: -80px;
  background: radial-gradient(circle, rgba(42, 92, 168, 0.45) 0%, transparent 70%);
  opacity: 0.8;
}
.ngh-cat__glow--2 {
  width: 420px; height: 420px; top: 80px; right: -60px;
  background: radial-gradient(circle, rgba(30, 63, 115, 0.5) 0%, transparent 70%);
  opacity: 0.75;
}


/* Brand → home (w HTML poza .ngh-cat, żeby overflow nie przycinał na mobile) */
.ngh-cat__brand {
  position: fixed !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 99999 !important;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(10, 10, 15, 0.72);
  color: #fff !important;
  font-family: 'Lato', 'Segoe UI', Tahoma, Arial, sans-serif !important;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none !important;
  text-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  transition: color 0.2s ease, background 0.2s ease;
  pointer-events: auto;
}
.ngh-cat__brand:hover {
  color: #9fd0ff !important;
  background: rgba(10, 10, 15, 0.88);
  text-decoration: none !important;
}

/* Hero */
.ngh-cat__hero {
  position: relative;
  z-index: 1;
  background-color: #0a0a0f;
  min-height: 300px;
  height: clamp(280px, 42vw, 420px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  margin-bottom: -72px;
}

.ngh-cat__hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% + 72px);
  display: block;
  /* soft bleed into next section */
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 48%,
    rgba(0, 0, 0, 0.75) 68%,
    rgba(0, 0, 0, 0.35) 84%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 48%,
    rgba(0, 0, 0, 0.75) 68%,
    rgba(0, 0, 0, 0.35) 84%,
    transparent 100%
  );
}
.ngh-cat__hero-picture .ngh-cat__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.ngh-cat__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% + 72px);
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.ngh-cat__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  height: calc(100% + 72px);
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.12) 0%,
    rgba(10, 10, 15, 0.28) 35%,
    rgba(10, 10, 15, 0.55) 62%,
    rgba(10, 10, 15, 0.82) 82%,
    #0a0a0f 100%
  );
  z-index: 1;
  pointer-events: none;
}

.ngh-cat__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 88px;
  max-width: 980px;
}

.ngh-cat__hero-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(90deg, #9fd0ff 0%, #6ea8ff 45%, #3d7adf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(10, 10, 15, 0.55));
}

.ngh-cat__hero-sub {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(0.9rem, 1.45vw, 1.05rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 2px 14px rgba(10, 10, 15, 0.65);
  white-space: nowrap;
}

.ngh-cat__inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tabs */
.ngh-cat__tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 36px;
  isolation: isolate;
}

.ngh-cat__tab {
  position: relative;
  z-index: 0;
  min-width: 120px;
  text-align: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  background: rgba(18, 18, 26, 0.88);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  overflow: hidden;
}

.ngh-cat__tab:hover {
  color: #fff;
  transform: translateY(-1px);
  z-index: 1;
  border-color: rgba(255,255,255,0.2);
}

.ngh-cat__tab.is-active {
  color: #fff;
  z-index: 2;
  background: linear-gradient(135deg, #4f7cff 0%, #2a5ca8 55%, #1e3f73 100%);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(91, 140, 255, 0.32);
}

/* Layout */
.ngh-cat__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.ngh-cat__panel {
  background: var(--ngh-card);
  border: 1px solid var(--ngh-border);
  border-radius: 20px;
  padding: 26px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ngh-cat__heading {
  margin: 0 0 22px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Posts */
.ngh-cat__posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ngh-cat__post {
  display: grid;
  cursor: pointer;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.ngh-cat__posts:hover .ngh-cat__post {
  opacity: 0.72;
  transform: scale(0.985);
}

.ngh-cat__posts:hover .ngh-cat__post:hover {
  opacity: 1;
  transform: scale(1.02);
  border-color: rgba(91, 140, 255, 0.35);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 28px rgba(42, 92, 168, 0.15);
  z-index: 2;
}

.ngh-cat__thumb {
  width: 148px;
  height: 108px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #12121a;
}

.ngh-cat__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ngh-cat__post-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.ngh-cat__meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ngh-muted);
}

.ngh-cat__excerpt {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
}

.ngh-cat__more {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ngh-blue);
}

.ngh-cat__more:hover { color: #7eb6ff; }

/* Sidebar */
.ngh-cat__about-text {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
}

.ngh-cat__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ngh-cat__features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.ngh-cat__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 92, 168, 0.25);
  border: 1px solid rgba(91, 140, 255, 0.3);
  box-shadow: 0 0 18px rgba(42, 92, 168, 0.25);
  flex-shrink: 0;
}

.ngh-cat__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #8ec5ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ngh-cat__panel--offer,
.ngh-cat__panel--gallery { display: none; }

.ngh-cat.is-offer .ngh-cat__panel--posts,
.ngh-cat.is-offer .ngh-cat__panel--gallery,
.ngh-cat.is-offer .ngh-cat__aside { display: none; }
.ngh-cat.is-offer .ngh-cat__panel--offer { display: block; }
.ngh-cat.is-offer .ngh-cat__grid { grid-template-columns: 1fr; }

.ngh-cat.is-gallery .ngh-cat__panel--posts,
.ngh-cat.is-gallery .ngh-cat__panel--offer,
.ngh-cat.is-gallery .ngh-cat__aside { display: none; }
.ngh-cat.is-gallery .ngh-cat__panel--gallery { display: block; }
.ngh-cat.is-gallery .ngh-cat__grid { grid-template-columns: 1fr; }

.ngh-cat__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ngh-cat__gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ngh-border);
  background: rgba(255,255,255,0.03);
  aspect-ratio: 1 / 1;
}

.ngh-cat__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ngh-cat__gallery-item:hover img {
  transform: scale(1.05);
}

.ngh-cat__offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ngh-cat__offer-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--ngh-border);
  background: rgba(255,255,255,0.03);
}

.ngh-cat__offer-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.ngh-cat__offer-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ngh-muted);
}

@media (max-width: 900px) {
  .ngh-cat__grid { grid-template-columns: 1fr; }
  .ngh-cat__offer-grid { grid-template-columns: 1fr; }
  .ngh-cat__gallery { grid-template-columns: repeat(2, 1fr); }
  .ngh-cat__hero-sub { white-space: normal; }
}

@media (max-width: 560px) {
  .ngh-cat__gallery { grid-template-columns: 1fr; }
  .ngh-cat__tabs { flex-wrap: wrap; }
  .ngh-cat__tab { min-width: 100px; padding: 11px 18px; }
  .ngh-cat__post { grid-template-columns: 1fr; }
  .ngh-cat__thumb { width: 100%; height: 160px; }
  .ngh-cat__posts:hover .ngh-cat__post,
  .ngh-cat__posts:hover .ngh-cat__post:hover {
    transform: none;
    opacity: 1;
  }
}

@media (hover: none) {
  .ngh-cat__posts:hover .ngh-cat__post,
  .ngh-cat__posts:hover .ngh-cat__post:hover {
    transform: none;
    opacity: 1;
  }
}

a.ngh-cat__post:focus-visible {
  outline: 2px solid rgba(91, 140, 255, 0.8);
  outline-offset: 2px;
}

/* Mobile: mniej kadrowania hero */
@media (max-width: 700px) {
  .ngh-cat__hero {
    min-height: 200px;
    height: auto;
    aspect-ratio: 16 / 11;
    max-height: 260px;
    margin-bottom: -40px;
  }
  .ngh-cat__hero-picture {
    height: 100%;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,0.55) 80%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,0.55) 80%, transparent 100%);
  }
  .ngh-cat__hero-picture .ngh-cat__hero-img,
  .ngh-cat__hero-img {
    object-fit: contain;
    object-position: center center;
    background: #0a0a0f;
  }
  .ngh-cat__hero-content {
    padding: 0 16px 56px;
  }
  .ngh-cat__hero-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
}
