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

.nhw-page {
  --nhw-red: #d12e36;
  --nhw-dark-red: #850b00;
  --nhw-ink: #171717;
  --nhw-muted: #676767;
  --nhw-line: #e7e7e7;
  --nhw-soft: #f6f6f6;
  --nhw-white: #fff;
  --nhw-radius-lg: 20px;
  --nhw-radius-md: 14px;
  --nhw-radius-sm: 10px;
  --nhw-anchor-offset: 144px;
  --nhw-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(--nhw-ink);
  background: #fff;
  isolation: isolate;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.nhw-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;
}

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

.nhw-hero-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--nhw-radius-lg);
  background: #ddd;
  box-shadow: 0 16px 46px rgba(0,0,0,.08);
}
.nhw-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.nhw-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;
}

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

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

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

.nhw-page .nhw-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--nhw-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;
}
.nhw-btn:hover { transform: translateY(-2px); }
.nhw-page .nhw-btn--primary { background: var(--nhw-red); color: #fff; }
.nhw-page .nhw-btn--primary:hover { background: var(--nhw-dark-red); color: #fff; }
.nhw-page .nhw-btn--ghost { background: rgba(255,255,255,.85); border-color: #bdbdbd; color: #202020; }
.nhw-page .nhw-btn--ghost:hover { border-color: #222; color: #222; }
.nhw-page .nhw-btn--ghost-dark { background: transparent; border-color: #333; color: #171717; }
.nhw-page .nhw-btn--white { background: #fff; color: #171717; }
.nhw-page .nhw-btn--outline-white { border-color: rgba(255,255,255,.65); color: #fff; }
.nhw-page .nhw-btn--outline-white:hover { background: #fff; color: #171717; }

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

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

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

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

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

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

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

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

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

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


/* REALIZATION PHOTO MOSAIC */
.nhw-photo-section { background: #fff; }
.nhw-photo-section__head {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  margin-bottom: 34px;
}
.nhw-photo-section__head h2 { margin-bottom: 0; }
.nhw-photo-section__head > p { margin-bottom: 4px; color: var(--nhw-muted); font-size: 16px; }
.nhw-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.nhw-photo-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--nhw-radius-lg);
  background: #e8e8e8;
  aspect-ratio: 5 / 3;
}
.nhw-photo-card--large { grid-row: auto; }
.nhw-photo-card--wide { grid-column: auto; }
.nhw-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.nhw-photo-card:hover img { transform: scale(1.025); }
.nhw-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;
}
.nhw-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(--nhw-line);
  color: #646464;
  font-size: 14px;
}

/* VAT — photo fills the former empty grey area */
.nhw-vat-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 540px;
  padding: 220px 20px 20px;
  overflow: hidden;
  border-radius: var(--nhw-radius-lg);
  background: #e9e9e9;
  box-shadow: 0 22px 70px rgba(0,0,0,.08);
}
.nhw-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;
}
.nhw-vat-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ARCHITECT */
.nhw-architect-section { padding-top: 0; }
.nhw-architect { display: grid; grid-template-columns: 270px 1fr; min-height: 310px; overflow: hidden; border: 1px solid var(--nhw-line); border-radius: var(--nhw-radius-lg); }
.nhw-architect__logo { display: flex; align-items: center; justify-content: center; min-height: 310px; border-right: 1px solid var(--nhw-line); background: #fff; padding: 30px; }
.nhw-architect__logo img { max-width: 190px; max-height: 150px; object-fit: contain; }
.nhw-architect__logo.is-placeholder { background: #f5f5f5; }
.nhw-architect__logo.is-placeholder span { color: #4d4d4d; font-size: 28px; font-weight: 400; line-height: 1.25; text-align: center; letter-spacing: .08em; }
.nhw-architect__content { padding: 46px; align-self: center; }
.nhw-architect__content h2 { font-size: clamp(30px, 3vw, 46px); }
.nhw-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 */
.nhw-vat-section { background: #fff; }
.nhw-vat-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(44px, 6vw, 82px); align-items: center; }
.nhw-vat-card { position: relative; width: 100%; z-index: 2; padding: 26px 28px; border-top: 0; border-radius: var(--nhw-radius-md); background: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.16); }
.nhw-vat-card > strong { font-size: 21px; }
.nhw-vat-card ul { padding-left: 20px; }
.nhw-vat-card li { margin: 9px 0; font-size: 15px; }

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

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

/* FAQ */
.nhw-faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(42px, 7vw, 100px); align-items: start; }
.nhw-faq-intro { position: sticky; top: 145px; }
.nhw-faq-item { border-top: 1px solid var(--nhw-line); }
.nhw-faq-item:last-child { border-bottom: 1px solid var(--nhw-line); }
.nhw-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; }
.nhw-faq-item summary::-webkit-details-marker { display: none; }
.nhw-faq-item summary span { flex: 0 0 auto; color: var(--nhw-red); font-size: 25px; font-weight: 400; transition: transform .2s ease; }
.nhw-faq-item[open] summary span { transform: rotate(45deg); }
.nhw-faq-answer { padding: 0 44px 22px 6px; }
.nhw-faq-answer p { margin: 0; color: var(--nhw-muted); font-size: 15px; }
.nhw-faq-intro .nhw-btn { margin-top: 12px; }

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

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


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

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

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

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

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


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

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

/* The fixed bar is outside the isolated main stacking context (footer overlap regression). */
body.nhw-wroclaw-page .nhw-mobile-cta { --nhw-red: #d12e36; }
.nhw-mobile-cta a { min-width: 0; overflow-wrap: anywhere; text-align: center; }
.nhw-mobile-cta a:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
@media (max-width: 760px) {
  .nhw-mobile-cta { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}
/* V6 — lokalne realizacje / rezydencje */
.nhw-microcopy a { color: inherit; font-weight: 700; text-underline-offset: 3px; }

.nhw-local-realizations { background: #fff; }
.nhw-local-realizations .nhw-section-head { margin-bottom: 30px; }
.nhw-local-realizations .nhw-section-head > p { color: var(--nhw-muted); font-size: 16px; }
.nhw-realization-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.nhw-realization-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--nhw-line);
  border-radius: var(--nhw-radius-md);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.025);
}
.nhw-realization-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}
.nhw-realization-card__meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f2f7f4;
  color: #2f6b57;
  font-size: 11px;
  font-weight: 800;
}
.nhw-realization-card h3 { margin-bottom: 12px; font-size: 25px; }
.nhw-realization-card p { margin: 0; color: var(--nhw-muted); font-size: 14px; }
.nhw-local-realizations__footer {
  display: flex;
  gap: 22px;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--nhw-line);
}
.nhw-local-realizations__footer p { margin: 0; color: #686868; font-size: 14px; }

.nhw-local-realizations .nhw-section-kicker { color: #2f6b57; }

.nhw-residences { background: #f6f8f5; }
.nhw-residence-feature {
  display: grid;
  grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr);
  overflow: hidden;
  border: 1px solid #dce8e2;
  border-radius: var(--nhw-radius-lg);
  background: #fff;
  color: var(--nhw-ink);
  box-shadow: 0 18px 55px rgba(47,107,87,.10);
}
.nhw-residence-feature__metric {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 42px 34px;
  background: #2f6b57;
  color: #fff;
  text-align: center;
}
.nhw-residence-feature__metric .nhw-residence-feature__status {
  margin: 0 0 28px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.nhw-residence-feature__metric strong {
  display: block;
  font-size: clamp(78px, 8vw, 124px);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.06em;
}
.nhw-residence-feature__metric > span:not(.nhw-residence-feature__status) {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 800;
}
.nhw-residence-feature__metric small {
  margin-top: 26px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.nhw-residence-feature__content {
  align-self: center;
  padding: clamp(38px, 4.5vw, 62px);
}
.nhw-residence-feature__content .nhw-section-kicker { color: #2f6b57; }
.nhw-residence-feature__content h2 {
  max-width: 900px;
  margin-bottom: 22px;
  color: var(--nhw-ink);
}
.nhw-residence-feature__content .nhw-copy-lg {
  max-width: 900px;
  color: #4f5c57;
  font-size: 19px !important;
}
.nhw-residence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 26px;
}
.nhw-residence-tags span {
  padding: 9px 12px;
  border: 1px solid #cfe0d8;
  border-radius: 999px;
  background: #f3f8f5;
  color: #2f6b57;
  font-size: 12px;
  font-weight: 700;
}
.nhw-residence-feature .nhw-inline-actions {
  align-items: center;
  gap: 18px;
  margin-top: 0;
}
.nhw-residence-feature .nhw-btn--primary {
  border-color: #2f6b57;
  background: #2f6b57;
  color: #fff;
}
.nhw-residence-feature .nhw-btn--primary:hover {
  border-color: #285b4a;
  background: #285b4a;
  color: #fff;
}
.nhw-residence-feature .nhw-text-link {
  color: #2f6b57;
  border-bottom-color: rgba(47,107,87,.35);
}
.nhw-residence-feature .nhw-text-link:hover {
  color: #285b4a;
  border-color: #285b4a;
}
.nhw-residence-note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e3ebe7;
  color: #748079;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

/* Dwa niezależne sloty partnerów architektonicznych. */
.nhw-architect-section__head { max-width: 880px; margin-bottom: 28px; }
.nhw-architect-section__head > p:last-child { color: var(--nhw-muted); }
.nhw-architect-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nhw-architect-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 290px;
  overflow: hidden;
  border: 1px solid var(--nhw-line);
  border-radius: var(--nhw-radius-lg);
  background: #fff;
}
.nhw-architect-card .nhw-architect__logo { min-height: 290px; padding: 26px; }
.nhw-architect-card .nhw-architect__content { padding: 32px; }
.nhw-architect-card .nhw-architect__content h3 { margin-bottom: 12px; font-size: 25px; }
.nhw-architect-card .nhw-architect__content p { color: var(--nhw-muted); font-size: 14px; }

@media (max-width: 1100px) {
  .nhw-realization-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nhw-architect-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .nhw-realization-grid { grid-template-columns: minmax(0, 1fr); }
  .nhw-realization-card { min-height: 0; }
  .nhw-local-realizations__footer { align-items: flex-start; flex-direction: column; }
  .nhw-residence-feature { grid-template-columns: minmax(0, 1fr); }
  .nhw-residence-feature__metric { min-height: 230px; padding: 32px 24px; }
  .nhw-residence-feature__metric .nhw-residence-feature__status { margin-bottom: 22px; }
  .nhw-residence-feature__metric small { margin-top: 18px; }
  .nhw-residence-feature__content { padding: 30px 26px; }
  .nhw-residence-feature .nhw-inline-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .nhw-residence-feature .nhw-inline-actions .nhw-btn { width: 100%; }
  .nhw-residence-feature .nhw-text-link { align-self: flex-start; }
  .nhw-architect-card { grid-template-columns: minmax(0, 1fr); }
  .nhw-architect-card .nhw-architect__logo { min-height: 170px; border-right: 0; border-bottom: 1px solid var(--nhw-line); }
  .nhw-architect-card .nhw-architect__content { padding: 26px; }
}

@media print {
  .nhw-residence-feature { color: #171717; background: #fff; border: 1px solid #bbb; box-shadow: none; }
  .nhw-residence-feature__metric { min-height: 0; background: #e8efeb; color: #171717; }
  .nhw-residence-feature__metric .nhw-residence-feature__status,
  .nhw-residence-feature__metric small { color: #171717; border-color: #999; }
  .nhw-residence-feature__content h2,
  .nhw-residence-feature .nhw-text-link { color: #171717; }
}


/* V7 — kalkulator lokalny + baner bazy projektów */
.nhw-calculator-section {
  background: #f6f8f5;
}
.nhw-calculator-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: 24px;
}
.nhw-calculator-head h2 {
  max-width: 820px;
  margin-bottom: 0;
}
.nhw-calculator-head > p {
  margin: 0 0 6px;
  color: var(--nhw-muted);
  font-size: 16px;
  line-height: 1.65;
}
.nhw-calculator-section .nhw-section-kicker {
  color: #2f6b57;
}
.nhw-calculator-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-bottom: 28px;
  padding: 18px 0;
  border-top: 1px solid #dfe7e3;
  border-bottom: 1px solid #dfe7e3;
}
.nhw-calculator-benefits span {
  position: relative;
  padding-left: 18px;
  color: #34433d;
  font-size: 13px;
  font-weight: 700;
}
.nhw-calculator-benefits span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f6b57;
}
.nhw-calculator-shell {
  overflow: hidden;
  border: 1px solid #d7e2dc;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(47, 107, 87, .08);
}
.nhw-calculator-shell__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid #dfe7e3;
  background: #fff;
}
.nhw-calculator-shell__topbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nhw-calculator-shell__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #2f6b57;
}
.nhw-calculator-shell__topbar strong,
.nhw-calculator-shell__topbar small {
  display: block;
}
.nhw-calculator-shell__topbar strong {
  color: var(--nhw-ink);
  font-size: 15px;
}
.nhw-calculator-shell__topbar small {
  margin-top: 3px;
  color: var(--nhw-muted);
  font-size: 12px;
}
.nhw-calculator-shell__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.nhw-calculator-shell__meta span {
  padding: 7px 10px;
  border: 1px solid #d7e2dc;
  border-radius: 999px;
  background: #f8faf9;
  color: #496056;
  font-size: 11px;
  font-weight: 700;
}
.nhw-calculator-shell__body {
  padding: 0;
  background: #fbfcfb;
}
.nhw-calculator-shell__body .nh-estimator--module .nh-estimator__panel {
  border-radius: 0;
  box-shadow: none;
}
.nhw-calculator-shell__body .nh-estimator--module .nh-estimator__content {
  padding: clamp(22px, 3vw, 34px);
}
.nhw-calculator-shell__body .nh-estimator--module .nh-estimator__footer {
  padding-left: clamp(22px, 3vw, 34px);
  padding-right: clamp(22px, 3vw, 34px);
}
.nhw-calculator-fallback {
  padding: 40px;
  text-align: center;
}
.nhw-calculator-fallback h3 { margin-bottom: 10px; }
.nhw-calculator-fallback p { margin: 0 auto 22px; max-width: 620px; color: var(--nhw-muted); }

.nhw-project-finder-banner {
  display: grid;
  grid-template-columns: minmax(150px, .36fr) minmax(0, 1.2fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 26px;
  padding: 28px 32px;
  border: 1px solid #2f6b57;
  border-radius: 18px;
  background: #2f6b57;
  color: #fff;
  box-shadow: 0 16px 46px rgba(47, 107, 87, .16);
}
.nhw-project-finder-banner__number {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.nhw-project-finder-banner__eyebrow {
  margin: 0 0 7px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.nhw-project-finder-banner h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(22px, 2.3vw, 32px);
}
.nhw-project-finder-banner__copy > p:last-child {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.55;
}
.nhw-btn--project-finder {
  border-color: #fff;
  background: #fff;
  color: #234f40;
  white-space: nowrap;
}
.nhw-btn--project-finder:hover {
  border-color: #edf4f0;
  background: #edf4f0;
  color: #234f40;
}

@media (max-width: 900px) {
  .nhw-calculator-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .nhw-project-finder-banner {
    grid-template-columns: minmax(120px, .32fr) minmax(0, 1fr);
  }
  .nhw-project-finder-banner .nhw-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .nhw-calculator-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }
  .nhw-calculator-shell__topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .nhw-calculator-shell__meta {
    justify-content: flex-start;
  }
  .nhw-project-finder-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 26px 22px;
  }
  .nhw-project-finder-banner__number {
    font-size: 56px;
  }
}

@media print {
  .nhw-project-finder-banner {
    background: #fff;
    color: #171717;
    border-color: #999;
    box-shadow: none;
  }
  .nhw-project-finder-banner h3,
  .nhw-project-finder-banner__eyebrow,
  .nhw-project-finder-banner__copy > p:last-child {
    color: #171717;
  }
}
