/* =============================================================================
   WPIS.CSS — style stron artykułów / wpisów
   Breakpointy (używane TYLKO na dole pliku, każdy raz):
     - 900px = tablet / wąski desktop
     - 700px = telefon (zdjęcia bez przycinania)
   ============================================================================= */

/* --- Zmienne i baza --- */
.ngh-post {
  --ngh-bg: #0a0a0f;
  --ngh-text: #ffffff;
  --ngh-muted: #a1a1b5;
  --ngh-blue: #5b8cff;
  --ngh-blue-soft: #8ec5ff;
  --ngh-line: rgba(255, 255, 255, 0.1);
  font-family: 'Lato', 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--ngh-text);
  background: var(--ngh-bg);
  padding: 0 0 72px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
.ngh-post *,
.ngh-post *::before,
.ngh-post *::after { box-sizing: border-box; }
.ngh-post a { text-decoration: none; color: inherit; }

/* Przycisk marki FITCOMPONENT (fixed, poza overflow) */
.ngh-post__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-post__brand:hover {
  color: #9fd0ff !important;
  background: rgba(10, 10, 15, 0.88);
  text-decoration: none !important;
}

/* --- Klasyczny układ wpisu (hero + kolumna) --- */
.ngh-post__hero {
  position: relative;
  width: 100%;
  height: clamp(240px, 48vw, 420px);
  overflow: hidden;
  background: #0a0a0f;
}
.ngh-post__hero picture,
.ngh-post__hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.ngh-post__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.35) 0%, rgba(10, 10, 15, 0.15) 40%, rgba(10, 10, 15, 0.85) 100%);
  pointer-events: none;
}

.ngh-post__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 22px 0;
}
/* Klasyczne wpisy (Walczak, komin): treść w panelach, bez „dziur” */
.ngh-post:not([class*="ngh-post--"]) .ngh-post__inner {
  max-width: 1080px;
}
.ngh-post:not([class*="ngh-post--"]) .ngh-post__nav {
  justify-content: center;
}
.ngh-post:not([class*="ngh-post--"]) .ngh-post__inner > section {
  margin: 0 0 24px;
  padding: 26px 28px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 26, 0.72);
}
.ngh-post:not([class*="ngh-post--"]) .ngh-post__rule {
  display: none; /* panele zamiast linii */
}
.ngh-post:not([class*="ngh-post--"]) .ngh-post__meta,
.ngh-post:not([class*="ngh-post--"]) .ngh-post__title,
.ngh-post:not([class*="ngh-post--"]) .ngh-post__lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* Tytuł na pełną szerokość — na mobile łamie się normalnie */
.ngh-post:not([class*="ngh-post--"]) .ngh-post__title {
  max-width: none;
  width: 100%;
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  white-space: normal;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.ngh-post:not([class*="ngh-post--"]) .ngh-post__lead {
  max-width: 42em;
}
.ngh-post:not([class*="ngh-post--"]) .ngh-post__h2 {
  text-align: center;
}

.ngh-post__meta {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ngh-muted);
}
.ngh-post__cat {
  color: var(--ngh-blue);
  font-weight: 700;
  font-family: 'Lato', 'Segoe UI', Tahoma, Arial, sans-serif;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.ngh-post__cat:hover {
  color: var(--ngh-blue-soft);
  text-decoration: none !important;
}

.ngh-post__title {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ngh-blue);
}

.ngh-post__lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.ngh-post__rule {
  border: 0;
  border-top: 1px solid var(--ngh-line);
  margin: 8px 0 28px;
}

.ngh-post__h2 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.ngh-post__text {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

/* Panel sekcji: tekst + mniejsze zdjęcie obok (desktop), bez crop */
.ngh-post__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 20px 24px;
  align-items: start;
  max-width: none;
  margin: 0 0 4px;
}
.ngh-post__split-text { min-width: 0; }
.ngh-post__split-media {
  margin: 0;
  width: 100%;
  max-width: 260px;
  justify-self: end;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c12;
  line-height: 0; /* bez pustej szczeliny pod img */
}
/* Tylko Walczak: jeszcze mniejsze zdjęcia w sekcjach */
.is-walczak .ngh-post__split {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 200px);
}
.is-walczak .ngh-post__split-media {
  max-width: 200px;
}
/* Przydatność: jeden duży baner — 3 zdjęcia z płynnym rozmyciem na styku */
.ngh-post__split--stack {
  grid-template-columns: 1fr;
  gap: 18px;
}
.ngh-post__split--center {
  margin-bottom: 18px;
}
.ngh-post__split--center .ngh-post__split-text {
  text-align: center;
  max-width: 40em;
  margin: 0 auto;
}
.ngh-post__split--center .ngh-post__quote {
  display: inline-block;
  text-align: left;
  margin: 18px auto 0;
  max-width: 28em;
}
.ngh-post__split--center .ngh-post__text {
  margin-bottom: 0;
}
.ngh-post__jobs {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.05fr;
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
  height: clamp(300px, 42vw, 480px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c12;
  isolation: isolate;
}
.ngh-post__jobs-item {
  position: relative;
  margin: 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 0;
}
.ngh-post__jobs-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: auto;
  filter: none;
}
/* Środkowe wystaje pod sąsiadów — miękkie przejście maską */
.ngh-post__jobs-item--2 {
  z-index: 2;
  margin: 0 -8%;
}
.ngh-post__jobs-item--1,
.ngh-post__jobs-item--3 {
  z-index: 3;
}
.ngh-post__jobs-item--1 {
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.55) 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.55) 78%,
    transparent 100%
  );
}
.ngh-post__jobs-item--2 {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 12%,
    #000 28%,
    #000 72%,
    rgba(0, 0, 0, 0.45) 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 12%,
    #000 28%,
    #000 72%,
    rgba(0, 0, 0, 0.45) 88%,
    transparent 100%
  );
  filter: blur(0.4px);
}
.ngh-post__jobs-item--2 img {
  filter: blur(0.6px);
  transform: scale(1.04);
}
.ngh-post__jobs-item--3 {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 22%,
    #000 38%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 22%,
    #000 38%,
    #000 100%
  );
}
/* Lekkie rozmycie na krawędziach styku (pseudo) */
.ngh-post__jobs::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 28%,
    rgba(10, 10, 15, 0.12) 33%,
    transparent 38%,
    transparent 62%,
    rgba(10, 10, 15, 0.12) 67%,
    transparent 72%
  );
}
.ngh-post__split-media picture { display: block; }
.ngh-post__split-media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  object-fit: contain;
  object-position: center top;
}

.ngh-post__quote {
  position: relative;
  margin: 18px 0 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--ngh-blue);
  color: var(--ngh-blue-soft);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  font-weight: 700;
}
.ngh-post__quote::before {
  content: '“';
  display: block;
  margin-bottom: 4px;
  font-size: 1.8rem;
  line-height: 1;
  font-style: normal;
  color: var(--ngh-blue);
}

/* Lista cech z ikonami — 2 kolumny na desktopie, wypełnia panel */
.ngh-post__features {
  list-style: none;
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  max-width: none;
}
.ngh-post__feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.ngh-post__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(91, 140, 255, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ngh-blue);
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(91, 140, 255, 0.2);
}
.ngh-post__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ngh-post__feature h3 {
  margin: 2px 0 6px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ngh-blue);
}
.ngh-post__feature p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.ngh-post__warn {
  margin: 8px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 120, 100, 0.3);
  background: rgba(120, 30, 24, 0.22);
  max-width: none;
}
.ngh-post__warn strong {
  display: block;
  margin-bottom: 6px;
  color: #ffb4a8;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ngh-post__warn p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.ngh-post__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  justify-content: center; /* wszędzie na środku */
}
.ngh-post__nav--center { justify-content: center; }
.ngh-post__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.ngh-post__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #4f7cff 0%, #2a5ca8 55%, #1e3f73 100%);
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(91, 140, 255, 0.35);
}
.ngh-post__btn:hover { transform: translateY(-1px); }

/* Embed aplikacji (np. StoveCalc) */
.ngh-post__embed-shell {
  max-width: 1200px;
  margin: 8px auto 28px;
  padding: 0 16px;
}
.ngh-post__embed {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0e1217;
}
.ngh-post__embed-frame {
  width: 100%;
  border: 0;
  display: block;
  background: #0e1217;
  min-height: 1200px;
}

/* --- Wariant: krótki editorial --- */
.ngh-post--editorial .ngh-post__hero {
  height: clamp(280px, 52vw, 480px);
}
.ngh-post--editorial .ngh-post__hero::after {
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.25) 0%, rgba(10, 10, 15, 0.1) 45%, #0a0a0f 100%);
}
.ngh-post--editorial .ngh-post__inner {
  max-width: 640px;
  padding-top: 20px;
  text-align: left;
}
.ngh-post--editorial .ngh-post__meta {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ngh-blue-soft);
  margin-bottom: 12px;
}
.ngh-post--editorial .ngh-post__meta-sep {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0.35em;
  font-weight: 400;
}
.ngh-post--editorial .ngh-post__meta-tag {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}
.ngh-post--editorial .ngh-post__title {
  margin-bottom: 20px;
  font-size: clamp(1.9rem, 5.5vw, 2.7rem);
}
.ngh-post--editorial .ngh-post__lead {
  margin-bottom: 28px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}
.ngh-post--editorial .ngh-post__shot {
  margin: 0 0 28px;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.ngh-post--editorial .ngh-post__shot img {
  display: block;
  width: 100%;
  height: auto;
}
.ngh-post--editorial .ngh-post__pros {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ngh-post--editorial .ngh-post__pros li {
  margin: 0;
  padding: 0 0 0 18px;
  position: relative;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}
.ngh-post--editorial .ngh-post__pros li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ngh-blue);
  box-shadow: 0 0 10px rgba(91, 140, 255, 0.45);
}
.ngh-post--editorial .ngh-post__pros strong {
  color: #fff;
  font-weight: 700;
}
.ngh-post--editorial .ngh-post__text { margin-bottom: 28px; }
.ngh-post--editorial .ngh-post__text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ngh-blue);
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.ngh-post--editorial .ngh-post__text-link:hover {
  color: var(--ngh-blue-soft);
  transform: translateX(2px);
}
.ngh-post--editorial .ngh-post__text-link span {
  font-size: 1.15rem;
  line-height: 1;
}

/* --- Wariant: szeroki (np. Flutter) — intro + banner + 3 kolumny --- */
.ngh-post--wide .ngh-post__hero {
  height: clamp(260px, 42vw, 460px);
}
.ngh-post--wide .ngh-post__hero::after {
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.2) 0%, rgba(10, 10, 15, 0.08) 50%, #0a0a0f 100%);
}
.ngh-post__inner--wide {
  max-width: 1200px;
  padding-top: 28px;
}
.ngh-post--wide .ngh-post__meta {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ngh-blue-soft);
  margin: 0 0 12px;
}
.ngh-post--wide .ngh-post__meta-sep {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0.35em;
  font-weight: 400;
}
.ngh-post--wide .ngh-post__meta-tag {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}
.ngh-post--wide .ngh-post__title {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
}
.ngh-post--wide .ngh-post__lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}
.ngh-post__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 28px 36px;
  align-items: center;
  margin-bottom: 28px;
}
.ngh-post__intro-media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.ngh-post__intro-media img {
  display: block;
  width: 100%;
  height: auto;
}
.ngh-post__banner {
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.ngh-post__banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  object-position: center;
}
.ngh-post__pros--cols {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
}
.ngh-post__pros--cols li {
  margin: 0;
  padding: 0 0 0 18px;
  position: relative;
}
.ngh-post__pros--cols li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ngh-blue);
  box-shadow: 0 0 12px rgba(91, 140, 255, 0.45);
}
.ngh-post__pros--cols strong {
  display: block;
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
}
.ngh-post__pros--cols span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

/* --- Wariant: sport (tytuł na hero + mozaika) — dostępny, gdy użyty w HTML --- */
.ngh-post--sport .ngh-post__hero {
  height: clamp(320px, 56vw, 560px);
  display: flex;
  align-items: flex-end;
}
.ngh-post--sport .ngh-post__hero::after {
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.15) 0%, rgba(10, 10, 15, 0.35) 40%, rgba(10, 10, 15, 0.92) 78%, #0a0a0f 100%);
}
.ngh-post__hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px 36px;
}
.ngh-post--sport .ngh-post__hero-copy .ngh-post__meta {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.ngh-post--sport .ngh-post__meta-sep {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0.35em;
}
.ngh-post--sport .ngh-post__meta-tag {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}
.ngh-post--sport .ngh-post__hero-copy .ngh-post__title {
  margin: 0 0 12px;
  max-width: 18ch;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--ngh-blue);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.ngh-post--sport .ngh-post__hero-copy .ngh-post__lead {
  margin: 0;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.ngh-post__inner--sport {
  max-width: 1200px;
  padding-top: 8px;
}
.ngh-post__pullquote {
  margin: 8px 0 32px;
  padding: 8px 0 8px 18px;
  border-left: 3px solid var(--ngh-blue);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.45;
}
.ngh-post__mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 18px;
  margin: 0 0 28px;
  align-items: start;
}
.ngh-post__mosaic-main { margin: 0; }
.ngh-post__mosaic-main .ngh-post__mosaic-img {
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ngh-post__mosaic-main img,
.ngh-post__mosaic-side img {
  display: block;
  width: 100%;
  height: auto;
}
.ngh-post__mosaic-side {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-self: stretch;
}
.ngh-post__mosaic-side img {
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
.ngh-post--sport .ngh-post__h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ngh-blue);
}
.ngh-post--sport .ngh-post__text { margin: 0 0 12px; }
.ngh-post--sport .ngh-post__quote { margin: 0 0 18px; }
.ngh-post__sport-block { margin: 0 0 28px; }
.ngh-post__sport-banner {
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ngh-post__sport-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.35 / 1;
  object-fit: cover;
}
.ngh-post--sport .ngh-post__features {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* --- Wariant: długi artykuł (np. wpis o grach) --- */
.ngh-post--article .ngh-post__hero {
  height: clamp(260px, 44vw, 460px);
}
.ngh-post--article .ngh-post__hero::after {
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.2) 0%, rgba(10, 10, 15, 0.1) 45%, #0a0a0f 100%);
}
.ngh-post__inner--article {
  max-width: 1080px;
  padding-top: 24px;
}
.ngh-post__head {
  max-width: none;
  width: 100%;
  margin: 0 auto 36px;
  text-align: center;
}
.ngh-post--article .ngh-post__meta {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ngh-blue-soft);
  margin: 0 0 12px;
}
.ngh-post--article .ngh-post__meta-sep {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0.35em;
  font-weight: 400;
}
.ngh-post--article .ngh-post__meta-tag {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}
.ngh-post--article .ngh-post__title {
  margin: 0 0 16px;
  max-width: none;
  width: 100%;
  font-size: clamp(1.3rem, 2.2vw, 1.95rem);
  white-space: normal;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.ngh-post--article .ngh-post__lead {
  margin: 0 auto;
  max-width: 42em;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}
/* Rozdział = jeden spójny panel (tekst + mniejsze zdjęcie) */
.ngh-post__chapter {
  max-width: 1080px;
  margin: 0 auto 24px;
  padding: 26px 28px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 26, 0.72);
}
.ngh-post__chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 20px 28px;
  align-items: start;
  margin: 0 0 20px;
  max-width: none;
}
.ngh-post__chapter-grid--flip {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}
.ngh-post__chapter-grid--flip .ngh-post__chapter-text { order: 2; }
.ngh-post__chapter-grid--flip .ngh-post__chapter-media { order: 1; }
.ngh-post--article .ngh-post__h2 {
  margin: 0 0 14px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ngh-blue);
  font-weight: 900;
}
.ngh-post__chapter-media {
  margin: 0;
  width: 100%;
  max-width: 280px;
  justify-self: end;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c12;
  line-height: 0;
}
.ngh-post__chapter-grid--flip .ngh-post__chapter-media {
  justify-self: start;
}
.ngh-post__chapter-media picture { display: block; }
.ngh-post__chapter-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}
.ngh-post__chapter-media--wide {
  margin: 0 0 20px;
  max-width: 420px;
  justify-self: center;
}
.ngh-post__chapter-media--wide img {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
}
.ngh-post__points {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  max-width: none;
}
.ngh-post__points li {
  margin: 0;
  padding: 14px 14px 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}
.ngh-post__points strong {
  display: block;
  margin: 0 0 6px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
}
.ngh-post__points span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

/* =============================================================================
   RESPONSIVE — każdy breakpoint tylko raz
   ============================================================================= */

/* Tablet: siatki w jedną kolumnę */
@media (max-width: 900px) {
  .ngh-post__intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ngh-post__pros--cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ngh-post__mosaic { grid-template-columns: 1fr; }
  .ngh-post__mosaic-side img {
    min-height: 0;
    height: auto;
    object-fit: contain;
  }
  /* Panele wpisów: zdjęcie pod tekstem, nadal mniejsze */
  .ngh-post__split,
  .ngh-post__chapter-grid,
  .ngh-post__chapter-grid--flip {
    grid-template-columns: 1fr;
  }
  .ngh-post__chapter-grid--flip .ngh-post__chapter-text,
  .ngh-post__chapter-grid--flip .ngh-post__chapter-media {
    order: initial;
  }
  .ngh-post__split-media,
  .ngh-post__chapter-media,
  .ngh-post__chapter-media--wide {
    max-width: min(100%, 420px);
    justify-self: center;
    width: 100%;
  }
  .is-walczak .ngh-post__split {
    grid-template-columns: 1fr;
  }
  .is-walczak .ngh-post__split-media {
    max-width: min(100%, 320px);
    justify-self: center;
  }
  .ngh-post__features,
  .ngh-post__points {
    grid-template-columns: 1fr;
  }
  .ngh-post:not([class*="ngh-post--"]) .ngh-post__inner > section,
  .ngh-post__chapter {
    padding: 20px 18px 22px;
  }
  .ngh-post__jobs {
    grid-template-columns: 1fr 1fr 1fr;
    height: clamp(160px, 36vw, 220px);
    gap: 0;
  }
  .ngh-post__jobs-item--1,
  .ngh-post__jobs-item--2,
  .ngh-post__jobs-item--3 {
    margin: 0;
    height: 100%;
  }
  .ngh-post__jobs-item--2 {
    margin: 0 -6%;
    z-index: 2;
  }
  .ngh-post__jobs-item {
    height: 100%;
  }
  .ngh-post__jobs-item--2 img {
    filter: blur(0.5px);
    transform: scale(1.03);
  }
  .ngh-post__jobs::after { display: block; }
  .ngh-post__jobs-item + .ngh-post__jobs-item {
    border-top: 0;
  }
}

/* Desktop: tytuły w 1 linii gdy jest miejsce */
@media (min-width: 901px) {
  .ngh-post:not([class*="ngh-post--"]) .ngh-post__title {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

/* Telefon: pełne zdjęcia (contain), bez crop */
@media (max-width: 700px) {
  .ngh-post__inner {
    padding: 22px 16px 0;
    max-width: 100%;
  }
  .ngh-post:not([class*="ngh-post--"]) .ngh-post__inner > section,
  .ngh-post__chapter {
    padding: 18px 14px 20px;
    margin-left: 0;
    margin-right: 0;
  }
  .ngh-post__jobs {
    height: clamp(140px, 42vw, 200px);
  }
  .ngh-post__embed-shell {
    padding: 0 12px;
  }
  .ngh-post__embed-frame {
    min-height: 70vh;
  }
  .ngh-post__btn {
    width: 100%;
    max-width: 320px;
  }
  .ngh-post__nav {
    flex-direction: column;
    align-items: center;
  }
  .ngh-post__hero {
    height: auto;
    aspect-ratio: auto;
    max-height: none;
    overflow: visible;
  }
  .ngh-post__hero picture {
    display: block;
    width: 100%;
    height: auto;
  }
  .ngh-post__hero img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
  .ngh-post__hero::after {
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.2) 0%, rgba(10, 10, 15, 0.05) 45%, rgba(10, 10, 15, 0.75) 100%);
  }
  .ngh-post__split-media {
    overflow: hidden;
    max-width: 100%;
    justify-self: stretch;
  }
  .ngh-post__split-media picture {
    display: block;
    width: 100%;
    height: auto;
  }
  .ngh-post__split-media img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 14px;
  }
  .ngh-post__title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    white-space: normal; /* na telefonie wolno łamać */
  }
  .ngh-post:not([class*="ngh-post--"]) .ngh-post__title,
  .ngh-post--article .ngh-post__title {
    white-space: normal;
  }

  .ngh-post--editorial .ngh-post__hero { height: auto; }
  .ngh-post--editorial .ngh-post__shot {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .ngh-post--editorial .ngh-post__shot img {
    border-radius: 14px;
    object-fit: contain !important;
  }

  .ngh-post--wide .ngh-post__hero { height: auto; }
  .ngh-post__intro-media,
  .ngh-post__banner {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .ngh-post__intro-media img,
  .ngh-post__banner img {
    border-radius: 14px;
    aspect-ratio: auto;
    object-fit: contain !important;
    height: auto !important;
  }
  .ngh-post__nav,
  .ngh-post__nav--center { justify-content: center; }

  .ngh-post--sport .ngh-post__hero {
    height: auto;
    display: block;
  }
  .ngh-post__hero-copy { padding: 18px 16px 8px; }
  .ngh-post--sport .ngh-post__hero-copy .ngh-post__title { max-width: none; }
  .ngh-post__mosaic-main .ngh-post__mosaic-img,
  .ngh-post__mosaic-side,
  .ngh-post__sport-banner {
    overflow: visible;
    border: 0;
  }
  .ngh-post__mosaic-main img,
  .ngh-post__mosaic-side img,
  .ngh-post__sport-banner img {
    border-radius: 14px;
    aspect-ratio: auto;
    object-fit: contain !important;
    height: auto !important;
  }

  .ngh-post--article .ngh-post__hero { height: auto; }
  .ngh-post__chapter-media,
  .ngh-post__chapter-media--wide {
    overflow: hidden;
    max-width: 100%;
    justify-self: stretch;
  }
  .ngh-post__chapter-media img,
  .ngh-post__chapter-media--wide img {
    border-radius: 0;
    aspect-ratio: auto;
    object-fit: contain !important;
  }
}
