/* NEW-HOUSE V4 — /budowa-domu/katowice | 2026-09-28
 * Wszystkie klasy są prefiksowane .nhk-, żeby nie rozjechać reszty motywu.
 */

.nhk-page {
  --nhk-red: #d12e36;
  --nhk-dark-red: #850b00;
  --nhk-ink: #171717;
  --nhk-muted: #676767;
  --nhk-line: #e7e7e7;
  --nhk-soft: #f6f6f6;
  --nhk-white: #fff;
  --nhk-radius-lg: 20px;
  --nhk-radius-md: 14px;
  --nhk-radius-sm: 10px;
  --nhk-anchor-offset: 144px;
  --nhk-mobile-bar-height: calc(64px + env(safe-area-inset-bottom, 0px));
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--nhk-ink);
  background: #fff;
  isolation: isolate;
}

.nhk-page *,
.nhk-page *::before,
.nhk-page *::after { box-sizing: border-box; }

.nhk-container {
  width: 100%;
  max-width: 1432px;
  min-width: 0;
  margin: 0 auto;
  padding-inline: clamp(20px, 3vw, 36px);
}

.nhk-page h1,
.nhk-page h2,
.nhk-page h3,
.nhk-page p { margin-top: 0; }

.nhk-page h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 4.45vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 980px;
}

.nhk-page h2 {
  margin-bottom: 24px;
  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.nhk-page h3 {
  font-size: 21px;
  line-height: 1.2;
}

.nhk-page p,
.nhk-page li {
  font-size: 17px;
  line-height: 1.65;
}

.nhk-section {
  padding: clamp(72px, 8vw, 118px) 0;
}

.nhk-section--light { background: var(--nhk-soft); }
.nhk-section--dark { background: #141414; color: #fff; }

.nhk-section-kicker,
.nhk-eyebrow {
  margin-bottom: 14px;
  color: var(--nhk-red);
  font-size: 13px !important;
  font-weight: 900;
  line-height: 1.3 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nhk-section-intro {
  max-width: 930px;
  margin-bottom: 42px;
  color: var(--nhk-muted);
  font-size: 19px !important;
}

.nhk-copy-lg { font-size: 21px !important; line-height: 1.55 !important; }

/* HERO */
.nhk-hero {
  position: relative;
  padding: clamp(38px, 4.8vw, 70px) 0 clamp(48px, 5vw, 78px);
  background: #fff;
}

.nhk-hero::before,
.nhk-hero::after { content: none; display: none; }

.nhk-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(32px, 4.2vw, 64px);
  align-items: start;
}

.nhk-hero__aside {
  display: grid;
  gap: 14px;
}

.nhk-hero-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--nhk-radius-lg);
  background: #ddd;
  box-shadow: 0 16px 46px rgba(0,0,0,.08);
}
.nhk-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.nhk-hero-photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 45px 18px 15px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
}

.nhk-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: #666;
  font-size: 13px;
}
.nhk-breadcrumbs a { color: inherit; text-decoration: none; }
.nhk-breadcrumbs a:hover { color: var(--nhk-red); }

.nhk-lead {
  max-width: 900px;
  margin-bottom: 32px;
  color: #414141;
  font-size: clamp(19px, 1.5vw, 24px) !important;
  line-height: 1.55 !important;
}

.nhk-hero__actions,
.nhk-inline-actions,
.nhk-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nhk-page .nhk-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--nhk-radius-sm);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.nhk-btn:hover { transform: translateY(-2px); }
.nhk-page .nhk-btn--primary { background: var(--nhk-red); color: #fff; }
.nhk-page .nhk-btn--primary:hover { background: var(--nhk-dark-red); color: #fff; }
.nhk-page .nhk-btn--ghost { background: rgba(255,255,255,.85); border-color: #bdbdbd; color: #202020; }
.nhk-page .nhk-btn--ghost:hover { border-color: #222; color: #222; }
.nhk-page .nhk-btn--ghost-dark { background: transparent; border-color: #333; color: #171717; }
.nhk-page .nhk-btn--white { background: #fff; color: #171717; }
.nhk-page .nhk-btn--outline-white { border-color: rgba(255,255,255,.65); color: #fff; }
.nhk-page .nhk-btn--outline-white:hover { background: #fff; color: #171717; }

.nhk-page .nhk-microcopy {
  margin: 14px 0 0;
  color: #656565;
  font-size: 13px !important;
}

.nhk-proof {
  padding: 24px;
  border-radius: var(--nhk-radius-lg);
  background: #171717;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 22px 70px rgba(0,0,0,.14);
}
.nhk-proof__headline { margin-bottom: 22px; font-size: 15px; font-weight: 900; }
.nhk-proof__grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #333; border-left: 1px solid #333; }
.nhk-proof__item { min-height: 106px; padding: 16px; border-right: 1px solid #333; border-bottom: 1px solid #333; }
.nhk-proof__item strong { display: block; margin-bottom: 7px; color: #fff; font-size: 25px; line-height: 1; }
.nhk-proof__item span { display: block; color: #bdbdbd; font-size: 13px; line-height: 1.4; }
.nhk-proof__footer { display: flex; gap: 10px; align-items: center; margin-top: 20px; color: #ddd; font-size: 13px; }
.nhk-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--nhk-red); box-shadow: 0 0 0 5px rgba(209,46,54,.15); }

/* INTENT NAV */
.nhk-intent-nav { padding: 34px 0; border-top: 1px solid var(--nhk-line); border-bottom: 1px solid var(--nhk-line); }
.nhk-intent-nav .nhk-section-kicker { margin-bottom: 16px; }
.nhk-intent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nhk-intent-card { position: relative; min-height: 126px; padding: 20px; border: 1px solid var(--nhk-line); border-radius: var(--nhk-radius-md); color: #1b1b1b; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.nhk-intent-card:hover { border-color: var(--nhk-red); transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,.06); }
.nhk-intent-card > span { display: block; margin-bottom: 16px; color: var(--nhk-red); font-size: 12px; font-weight: 900; }
.nhk-intent-card strong { display: block; margin-bottom: 7px; font-size: 18px; }
.nhk-intent-card small { display: block; color: #626262; font-size: 13px; line-height: 1.45; }

/* TWO COL */
.nhk-two-col { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: clamp(44px, 7vw, 110px); align-items: start; }
.nhk-two-col--reverse { grid-template-columns: minmax(390px, .8fr) minmax(0, 1.2fr); align-items: center; }
.nhk-text-link { display: inline-flex; color: var(--nhk-dark-red); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(133,11,0,.25); }
.nhk-text-link:hover { color: var(--nhk-red); border-color: var(--nhk-red); }
.nhk-inline-actions { margin-top: 24px; gap: 22px; }

.nhk-cost-card,
.nhk-vat-card {
  padding: 34px;
  background: #fff;
  border-top: 5px solid var(--nhk-red);
  border-radius: var(--nhk-radius-lg);
  box-shadow: 0 18px 55px rgba(0,0,0,.07);
}
.nhk-cost-card h3 { margin-bottom: 22px; font-size: 26px; }
.nhk-check-list { list-style: none; margin: 0; padding: 0; }
.nhk-check-list li { display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 13px 0; border-bottom: 1px solid #ececec; font-size: 15px; }
.nhk-check-list li:last-child { border-bottom: 0; }
.nhk-check-list span { color: var(--nhk-red); font-size: 11px; font-weight: 900; }

/* PROBLEMS */
.nhk-problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nhk-problem-card { min-height: 248px; padding: 28px; border: 1px solid var(--nhk-line); border-radius: var(--nhk-radius-md); background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.025); }
.nhk-problem-card__no { margin-bottom: 26px; color: var(--nhk-red); font-size: 13px; font-weight: 900; }
.nhk-problem-card h3 { margin-bottom: 16px; }
.nhk-problem-card p { margin-bottom: 0; color: var(--nhk-muted); font-size: 15px; }
.nhk-local-sources { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--nhk-line); color: #6a6a6a; font-size: 13px; }
.nhk-local-sources a { color: #444; font-weight: 700; }

/* DARK COMPARISON */
.nhk-section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 44px; }
.nhk-section-head--dark p { color: #bdbdbd; }
.nhk-section--dark .nhk-section-kicker { color: #ff8289; }
.nhk-comparison { overflow: hidden; border: 1px solid #343434; border-radius: var(--nhk-radius-lg); }
.nhk-comparison__row { display: grid; grid-template-columns: .7fr 1fr 1.3fr; border-bottom: 1px solid #343434; }
.nhk-comparison__row:last-child { border-bottom: 0; }
.nhk-comparison__row > div { padding: 18px 20px; border-right: 1px solid #343434; color: #bcbcbc; font-size: 15px; line-height: 1.5; }
.nhk-comparison__row > div:last-child { border-right: 0; }
.nhk-comparison__row > div:first-child { color: #fff; font-weight: 700; }
.nhk-comparison__row strong { color: #fff; }
.nhk-comparison__row--head > div { color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

/* STEPS */
.nhk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 42px; }
.nhk-steps article { min-height: 230px; padding: 30px; border: 1px solid var(--nhk-line); border-radius: var(--nhk-radius-md); background: #fff; }
.nhk-steps span { display: block; margin-bottom: 46px; color: var(--nhk-red); font-size: 13px; font-weight: 900; }
.nhk-steps p { margin: 0; color: var(--nhk-muted); font-size: 15px; }

/* SERVICES */
.nhk-service-card { padding: 34px; border-radius: var(--nhk-radius-lg); background: #171717; color: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.08); }
.nhk-service-card__eyebrow { color: #8f8f8f; font-size: 12px !important; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.nhk-service-card h3 { margin-bottom: 22px; font-size: 31px; }
.nhk-service-card__links { display: grid; }
.nhk-service-card__links a { padding: 14px 0; border-top: 1px solid #343434; color: #fff; text-decoration: none; font-weight: 700; }
.nhk-service-card__links a::after { content: "→"; float: right; color: var(--nhk-red); }

/* LOCATIONS */
.nhk-location-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.nhk-location-cloud span { padding: 11px 14px; border: 1px solid #dadada; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.nhk-local-proof { display: flex; gap: 30px; justify-content: space-between; align-items: center; margin-top: 34px; padding: 28px 30px; border-radius: var(--nhk-radius-md); background: #f6f6f6; border-left: 4px solid var(--nhk-red); }
.nhk-local-proof p { margin: 7px 0 0; color: #686868; font-size: 14px; }


/* REALIZATION PHOTO MOSAIC */
.nhk-photo-section { background: #fff; }
.nhk-photo-section__head {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  margin-bottom: 34px;
}
.nhk-photo-section__head h2 { margin-bottom: 0; }
.nhk-photo-section__head > p { margin-bottom: 4px; color: var(--nhk-muted); font-size: 16px; }
.nhk-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.nhk-photo-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--nhk-radius-lg);
  background: #e8e8e8;
  aspect-ratio: 5 / 3;
}
.nhk-photo-card--large { grid-row: auto; }
.nhk-photo-card--wide { grid-column: auto; }
.nhk-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.nhk-photo-card:hover img { transform: scale(1.025); }
.nhk-photo-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 52px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
  font-size: 13px;
}
.nhk-photo-section__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--nhk-line);
  color: #646464;
  font-size: 14px;
}

/* VAT — photo fills the former empty grey area */
.nhk-vat-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 540px;
  padding: 220px 20px 20px;
  overflow: hidden;
  border-radius: var(--nhk-radius-lg);
  background: #e9e9e9;
  box-shadow: 0 22px 70px rgba(0,0,0,.08);
}
.nhk-vat-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.03) 20%, rgba(0,0,0,.36) 100%);
  pointer-events: none;
}
.nhk-vat-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ARCHITECT */
.nhk-architect-section { padding-top: 0; }
.nhk-architect { display: grid; grid-template-columns: 270px 1fr; min-height: 310px; overflow: hidden; border: 1px solid var(--nhk-line); border-radius: var(--nhk-radius-lg); }
.nhk-architect__logo { display: flex; align-items: center; justify-content: center; min-height: 310px; border-right: 1px solid var(--nhk-line); background: #fff; padding: 30px; }
.nhk-architect__logo img { max-width: 190px; max-height: 150px; object-fit: contain; }
.nhk-architect__logo.is-placeholder { background: #f5f5f5; }
.nhk-architect__logo.is-placeholder span { color: #4d4d4d; font-size: 28px; font-weight: 400; line-height: 1.25; text-align: center; letter-spacing: .08em; }
.nhk-architect__content { padding: 46px; align-self: center; }
.nhk-architect__content h2 { font-size: clamp(30px, 3vw, 46px); }
.nhk-placeholder-note { display: inline-block; margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: #f6f6f6; color: #767676; font-size: 11px; font-weight: 900; letter-spacing: .05em; }

/* VAT */
.nhk-vat-section { background: #fff; }
.nhk-vat-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(44px, 6vw, 82px); align-items: center; }
.nhk-vat-card { position: relative; width: 100%; z-index: 2; padding: 26px 28px; border-top: 0; border-radius: var(--nhk-radius-md); background: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.16); }
.nhk-vat-card > strong { font-size: 21px; }
.nhk-vat-card ul { padding-left: 20px; }
.nhk-vat-card li { margin: 9px 0; font-size: 15px; }

/* AUTHOR */
.nhk-author-section { padding-top: 30px; }
.nhk-author { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; padding: 34px; border-radius: var(--nhk-radius-lg); background: #f6f6f6; overflow: hidden; }
.nhk-author img { width: 220px; height: 220px; border-radius: var(--nhk-radius-md); object-fit: cover; filter: grayscale(10%); }
.nhk-author h2 { margin-bottom: 16px; font-size: clamp(28px, 3vw, 44px); }
.nhk-author p:not(.nhk-section-kicker) { color: #565656; }

/* PROJECTS */
.nhk-projects-section .latest-ai-projects-section { margin-top: 35px !important; }
.nhk-center { margin-top: 28px; text-align: center; }

/* FAQ */
.nhk-faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(42px, 7vw, 100px); align-items: start; }
.nhk-faq-intro { position: sticky; top: 145px; }
.nhk-faq-item { border-top: 1px solid var(--nhk-line); }
.nhk-faq-item:last-child { border-bottom: 1px solid var(--nhk-line); }
.nhk-faq-item summary { position: relative; display: flex; gap: 20px; justify-content: space-between; align-items: center; padding: 22px 6px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 900; line-height: 1.35; }
.nhk-faq-item summary::-webkit-details-marker { display: none; }
.nhk-faq-item summary span { flex: 0 0 auto; color: var(--nhk-red); font-size: 25px; font-weight: 400; transition: transform .2s ease; }
.nhk-faq-item[open] summary span { transform: rotate(45deg); }
.nhk-faq-answer { padding: 0 44px 22px 6px; }
.nhk-faq-answer p { margin: 0; color: var(--nhk-muted); font-size: 15px; }
.nhk-faq-intro .nhk-btn { margin-top: 12px; }

/* FINAL CTA */
.nhk-final-cta { padding: clamp(62px, 7vw, 96px) 0; background: var(--nhk-red); color: #fff; }
.nhk-final-cta__inner { display: grid; grid-template-columns: 1.35fr .65fr; gap: 60px; align-items: center; }
.nhk-final-cta .nhk-section-kicker { color: #fff; }
.nhk-final-cta h2 { margin-bottom: 12px; }
.nhk-final-cta p { margin-bottom: 0; color: #fff; }
.nhk-final-cta__actions { justify-content: flex-end; }

/* MOBILE CTA */
.nhk-mobile-cta { display: none; }


/* V3 — integration and keyboard access. No global reset or negative full-bleed margins. */
.nhk-page [class^="nhk-"] { min-width: 0; }
.nhk-page img { max-width: 100%; }
.nhk-page h1, .nhk-page h2, .nhk-page h3 { overflow-wrap: anywhere; text-wrap: balance; }
.nhk-page p, .nhk-page a, .nhk-page li { overflow-wrap: anywhere; }
.nhk-page [id], .nhk-page[id] { scroll-margin-top: var(--nhk-anchor-offset); }
.nhk-page .nhk-btn { max-width: 100%; white-space: normal; flex-shrink: 0; }
.nhk-page .nhk-btn :is(span, strong, b) { font-weight: inherit; }
.nhk-dot { flex: 0 0 9px; }
.nhk-cell-label { display: none; }
.nhk-hero__copy { min-width: 0; }
.nhk-steps span { margin-bottom: 24px; }
.nhk-faq-item summary { font-weight: 700; }
.nhk-breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.nhk-breadcrumbs { align-items: center; }
.nhk-skip-link { position: fixed; top: 12px; left: 16px; z-index: 100001; padding: 14px 20px; transform: translateY(-200%); border-radius: 10px; background: #171717; color: #fff; }
.nhk-skip-link:focus { transform: none; }
.nhk-page :is(a, summary, button):focus-visible, .nhk-skip-link:focus-visible { outline: 3px solid #2259b5; outline-offset: 4px; }
.nhk-section--dark :is(a, summary):focus-visible, .nhk-final-cta a:focus-visible, .nhk-mobile-cta a:focus-visible { outline-color: #fff; outline-offset: -5px; }
body.nhk-katowice-page .calendar { margin-top: clamp(32px, 5vw, 64px) !important; }
body.nhk-katowice-page .header-cta { font-weight: 400; }
/* Mobile chat/cookie widgets belong to their plugins; keep their z-index above 900. */

@media (max-width: 1100px) {
  .nhk-hero__grid,
  .nhk-two-col,
  .nhk-two-col--reverse,
  .nhk-vat-grid,
  .nhk-faq-layout { grid-template-columns: 1fr; }
  .nhk-proof { max-width: 720px; }
  .nhk-intent-grid { grid-template-columns: repeat(2, 1fr); }
  .nhk-problem-grid { grid-template-columns: repeat(2, 1fr); }
  .nhk-section-head { grid-template-columns: 1fr; gap: 10px; }
  .nhk-faq-intro { position: static; }
  .nhk-final-cta__inner { grid-template-columns: 1fr; gap: 28px; }
  .nhk-final-cta__actions { justify-content: flex-start; }
  .nhk-vat-section { background: #fff; }
  .nhk-photo-section__head { grid-template-columns: 1fr; gap: 10px; }
  .nhk-photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .nhk-photo-card--large { grid-column: auto; grid-row: auto; }
  .nhk-photo-card--wide { grid-column: auto; }
  .nhk-vat-visual { min-height: 500px; }
  .nhk-hero__aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .nhk-hero-photo { aspect-ratio: auto; }
  .nhk-hero-photo img { height: 100%; aspect-ratio: auto; }
}

@media (max-width: 760px) {
  .nhk-page { --nhk-anchor-offset: 88px; }
  body.nhk-katowice-page { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body.nhk-katowice-page .footer-mobile-cta { display: none; }
  .nhk-container { width: 100%; padding-inline: 20px; }
  .nhk-page h1 { font-size: clamp(32px, 8.5vw, 52px); }
  .nhk-page h2 { font-size: clamp(28px, 7vw, 36px); }
  .nhk-hero { padding-top: 38px; }
  .nhk-breadcrumbs { margin-bottom: 30px; }
  .nhk-hero__actions .nhk-btn { width: 100%; }
  .nhk-proof { padding: 20px; }
  .nhk-proof__item { min-height: 112px; padding: 15px; }
  .nhk-proof__item strong { font-size: 23px; }
  .nhk-intent-grid,
  .nhk-problem-grid,
  .nhk-steps { grid-template-columns: 1fr; }
  .nhk-intent-card { min-height: 110px; }
  .nhk-problem-card { min-height: auto; }
  .nhk-problem-card__no { margin-bottom: 25px; }
  .nhk-comparison { overflow: visible; border: 0; }
  .nhk-comparison__row { grid-template-columns: minmax(0, 1fr); margin-bottom: 14px; border: 1px solid #424242; border-radius: 14px; overflow: hidden; }
  .nhk-comparison__row--head { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nhk-comparison__row > div { border-right: 0; padding: 14px 18px; }
  .nhk-comparison__row > div:first-child { background: #232323; }
  .nhk-comparison__row > div + div { border-top: 1px solid #343434; }
  .nhk-cell-label { display: block; margin-bottom: 6px; color: #d7d7d7; font-size: 12px; font-weight: 400; }
  .nhk-local-proof { align-items: flex-start; flex-direction: column; }
  .nhk-architect { grid-template-columns: 1fr; }
  .nhk-architect__logo { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--nhk-line); }
  .nhk-architect__content { padding: 28px; }
  .nhk-author { grid-template-columns: 1fr; padding: 24px; }
  .nhk-author img { width: 140px; height: 140px; }
  .nhk-photo-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .nhk-photo-card,
  .nhk-photo-card--large,
  .nhk-photo-card--wide { grid-column: auto; grid-row: auto; min-height: 0; aspect-ratio: 5 / 3; }
  .nhk-photo-section__footer { align-items: flex-start; flex-direction: column; }
  .nhk-vat-visual { display: block; min-height: 0; padding: 245px 0 0; overflow: visible; box-shadow: none; background: transparent; }
  .nhk-vat-visual > img { height: 270px; border-radius: var(--nhk-radius-lg); }
  .nhk-vat-visual::after { display: none; }
  .nhk-vat-card { width: auto; margin: -22px 10px 0; padding: 24px 22px; }
  .nhk-final-cta__actions .nhk-btn { width: 100%; }
  .nhk-mobile-cta {
    position: fixed;
    z-index: 900;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #171717;
    box-shadow: 0 -8px 28px rgba(0,0,0,.12);
  }
  .nhk-mobile-cta a { display: flex; min-height: 58px; align-items: center; justify-content: center; padding: 12px; background: #171717; color: #fff; font-size: 14px; font-weight: 400; text-decoration: none; }
  .nhk-mobile-cta a:last-child { background: var(--nhk-red); }
}

@media (max-width: 600px) {
  .nhk-hero__aside { grid-template-columns: minmax(0, 1fr); }
  .nhk-hero-photo { aspect-ratio: 4 / 3; }
  .nhk-hero-photo img { aspect-ratio: 4 / 3; }
  .nhk-proof__item { min-height: 110px; padding: 14px 12px; }
  .nhk-proof__item strong { font-size: 24px; }
  .nhk-hero__grid { gap: 32px; }
  .nhk-cost-card, .nhk-service-card { padding: 24px; }
  .nhk-problem-card { padding: 24px; }
  .nhk-section { padding-block: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .nhk-page *, .nhk-page *::before, .nhk-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* V3 audit: fixed-height, wrapped footer columns overflowed at 1024–1100px. */
body.nhk-katowice-page .footer-regions__inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 90px);
}
body.nhk-katowice-page .footer-regions__left,
body.nhk-katowice-page .footer-regions__right { min-width: 0; max-width: 100%; }
body.nhk-katowice-page .footer-regions__right .footer-voivodeships {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: auto;
  gap: 10px 18px;
}
body.nhk-katowice-page .footer-voivodeships li { width: auto; min-width: 0; max-width: none; }
body.nhk-katowice-page .footer-voivodeships a { overflow-wrap: anywhere; }
@media (max-width: 950px) {
  body.nhk-katowice-page .footer-regions__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body.nhk-katowice-page .footer-regions__right .footer-voivodeships { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  body.nhk-katowice-page .footer-regions__right .footer-voivodeships { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.nhk-katowice-page) { scroll-behavior: auto !important; }
}

/* V4: stres-test 320 px + 200% tekstu, fokus i przyjazny druk. */
.nhk-faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow-wrap: anywhere;
}
/* Podpis jest elementem siatki, więc może powiększyć zdjęcie zamiast zostać przycięty. */
.nhk-hero-photo, .nhk-photo-card { display: grid; grid-template-columns: minmax(0, 1fr); }
.nhk-hero-photo > img, .nhk-photo-card > img { position: absolute; inset: 0; }
.nhk-hero-photo figcaption, .nhk-photo-card figcaption {
  position: relative;
  align-self: end;
  grid-area: 1 / 1;
  overflow-wrap: anywhere;
}
.nhk-proof__item strong, .nhk-proof__item span { overflow-wrap: anywhere; }
.nhk-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.nhk-page :is(a, button, summary, input, select, textarea) {
  scroll-margin-bottom: calc(var(--nhk-measured-cta-height, 64px) + 16px);
}
body.nhk-katowice-page .nhk-architect__logo img { width: 100%; height: auto; object-fit: contain; }
@media (max-width: 760px) {
  body.nhk-katowice-page { padding-bottom: var(--nhk-measured-cta-height, calc(64px + env(safe-area-inset-bottom, 0px))); }
}
@media (max-height: 600px) {
  .nhk-faq-intro { position: static; }
}
@media print {
  body.nhk-katowice-page { padding-bottom: 0 !important; color: #171717; background: white; }
  body.nhk-katowice-page .site-header,
  body.nhk-katowice-page .site-footer,
  body.nhk-katowice-page .calendar,
  .nhk-skip-link, .nhk-mobile-cta, .nhk-intent-nav { display: none !important; }
  .nhk-page { --nhk-anchor-offset: 0px; }
  .nhk-section, .nhk-hero, .nhk-final-cta { padding-block: 24px; }
  .nhk-page h1 { font-size: 28pt; }
  .nhk-page h2 { font-size: 20pt; }
  .nhk-page h3 { font-size: 14pt; }
  .nhk-faq-intro { position: static; }
  .nhk-faq-layout, .nhk-two-col, .nhk-two-col--reverse, .nhk-vat-grid { display: block; }
  .nhk-faq-item { break-inside: avoid; }
  .nhk-faq-item::details-content { display: block; content-visibility: visible; }
  .nhk-faq-answer { display: block !important; }
  .nhk-faq-item summary span { display: none; }
  .nhk-proof, .nhk-cost-card, .nhk-service-card, .nhk-author, .nhk-photo-card, .nhk-vat-visual { box-shadow: none; }
}
/* Intrinsic-ratio spacer sets a minimum, not a fixed height: enlarged captions remain visible. */
.nhk-hero-photo, .nhk-photo-card { aspect-ratio: auto; }
.nhk-hero-photo::before, .nhk-photo-card::before {
  content: ""; display: block; grid-area: 1 / 1; pointer-events: none;
}
.nhk-hero-photo::before { padding-top: 75%; }
.nhk-photo-card::before { padding-top: 60%; }

/* The fixed bar is outside the isolated main stacking context (footer overlap regression). */
body.nhk-katowice-page .nhk-mobile-cta { --nhk-red: #d12e36; }
.nhk-mobile-cta a { min-width: 0; overflow-wrap: anywhere; text-align: center; }
.nhk-mobile-cta a:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
@media (max-width: 760px) {
  .nhk-mobile-cta { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

/* Katowice V1 — odrębne sekcje regionalne, wspólny język wizualny z Wrocławiem. */
.nhk-hero-local { max-width:760px; color:#535353; margin-bottom:26px; }
.nhk-local-feature { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(32px,5vw,72px); align-items:start; }
.nhk-local-feature > * { min-width:0; }
.nhk-editorial-photo { margin:0; border-radius:20px; overflow:hidden; background:#eee; }
.nhk-editorial-photo img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
.nhk-editorial-photo figcaption { padding:16px 22px; background:#171717; color:#fff; font-size:14px; line-height:1.5; }
.nhk-note { margin-top:20px; padding:24px; border:1px solid #ddd; border-radius:16px; background:#fff; }
.nhk-note strong { display:block; font-size:20px; margin-bottom:10px; }
.nhk-note p { margin-bottom:0; }
.nhk-local-sequence { list-style:none; padding:0; margin:24px 0; counter-reset:nhk-step; }
.nhk-local-sequence li { counter-increment:nhk-step; position:relative; padding:17px 0 17px 52px; border-bottom:1px solid #ddd; }
.nhk-local-sequence li::before { content:counter(nhk-step,decimal-leading-zero); position:absolute; top:18px; left:0; font-size:13px; font-weight:600; color:#a31b24; }
.nhk-local-sequence strong,.nhk-local-sequence span { display:block; }
.nhk-local-sequence span { font-size:15px; margin-top:5px; color:#555; }
.nhk-compensation { margin-top:40px; background:#fff; border:1px solid #ddd; border-radius:20px; padding:clamp(24px,3vw,36px); display:grid; grid-template-columns:1fr 1fr; gap:36px; }
.nhk-compensation p { margin-bottom:12px; }
.nhk-source { font-size:13px !important; line-height:1.6 !important; margin-top:20px; color:#555; }
.nhk-source a { color:#75111a; text-underline-offset:3px; }
.nhk-local-gallery { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.nhk-local-gallery figure { margin:0; min-width:0; border-radius:20px; overflow:hidden; background:#f5f5f5; }
.nhk-local-gallery img { display:block; width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; }
.nhk-local-gallery figcaption { padding:18px 22px; font-size:16px; color:#292929; line-height:1.5; }
.nhk-gallery-disclaimer { margin-top:18px; }
.nhk-comfort-grid,.nhk-scope-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.nhk-comfort-card,.nhk-scope-grid article { padding:28px; border-radius:18px; border:1px solid #e1e1e1; background:#fff; }
.nhk-comfort-card p,.nhk-scope-grid article > p:not(.nhk-section-kicker) { font-size:16px; color:#555; }
.nhk-comfort-card a { font-size:14px; color:#75111a; line-height:1.6; text-underline-offset:4px; }
.nhk-scope-grid { margin-top:34px; }
.nhk-process-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; border-top:1px solid #ddd; margin-top:42px; padding-top:30px; }
.nhk-process-strip span { color:#a31b24; display:block; margin-bottom:18px; font-size:14px; }
.nhk-process-strip h3 { font-size:20px; }
.nhk-process-strip p { font-size:15px; color:#555; margin-bottom:0; }
.nhk-local-place-list { list-style:none; padding:0; margin:0 0 20px; }
.nhk-local-place-list li { padding:10px 0; border-bottom:1px solid #eee; }
.nhk-faq-note { margin-top:24px; }
.nhk-page .nhk-architect-content { min-width:0; padding:clamp(24px,3.4vw,48px); }
.nhk-architect-content h2 { font-size:clamp(28px,3.1vw,42px); }
.nhk-page figure img { max-width:100%; }
.nhk-proof__item strong { line-height:1.2; }
.nhk-hero__copy { align-self:center; }
@media (max-width:1100px) {
 .nhk-comfort-grid,.nhk-scope-grid { gap:14px; }
 .nhk-comfort-card,.nhk-scope-grid article { padding:22px; }
 .nhk-process-strip { grid-template-columns:1fr 1fr; gap:28px; }
}
@media (max-width:900px) {
 .nhk-comfort-grid,.nhk-scope-grid { grid-template-columns:1fr; }
 .nhk-local-feature { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:26px; }
}
@media (max-width:760px) {
 .nhk-local-feature,.nhk-compensation { grid-template-columns:1fr; }
 .nhk-local-feature__visual { order:2; }
 .nhk-compensation { gap:12px; }
 .nhk-local-gallery { grid-template-columns:1fr; }
 .nhk-local-gallery img { aspect-ratio:4/3; }
 .nhk-hero-local { font-size:16px; }
}
@media (max-width:480px) {
 .nhk-process-strip { grid-template-columns:1fr; }
 .nhk-process-strip article { border-bottom:1px solid #eee; padding-bottom:20px; }
 .nhk-local-sequence li { padding-left:36px; }
}
@media print {
 .nhk-local-feature,.nhk-compensation,.nhk-comfort-grid,.nhk-scope-grid,.nhk-process-strip { display:block; }
 .nhk-comfort-card,.nhk-scope-grid article { break-inside:avoid; margin-bottom:12px; }
 .nhk-local-feature__visual,.nhk-local-gallery { display:none; }
}
