:is(body[data-city-pilot="zgorzelec-service-core-v1"], .zgc-hero, .zgc-fit, .zgc-evidence, .zgc-proof, .zgc-stack, .zgc-editorial) {
  --zgc-ink: #14262b;
  --zgc-muted: #52676b;
  --zgc-line: #ccd8d9;
  --zgc-ash: #f3f6f5;
  --zgc-bench: #eaf2f2;
  --zgc-birch: #f3e9d8;
  --zgc-red: #dc3545;
  --zgc-red-bright: #ef4353;
  --zgc-red-soft: #fff0f2;
}

body[data-city-pilot="zgorzelec-service-core-v1"] {
  color: var(--zgc-ink);
  background: #fff;
  caret-color: var(--zgc-red);
}

body[data-city-pilot="zgorzelec-service-core-v1"] ::selection {
  color: var(--zgc-ink);
  background: #f7c3c8;
}

body[data-city-pilot="zgorzelec-service-core-v1"] * {
  scrollbar-color: #a9b4b8 #eef1f2;
  scrollbar-width: thin;
}

body[data-city-pilot="zgorzelec-service-core-v1"] main *,
.zgc-hero__frame > *,
.zgc-fit__layout > *,
.zgc-evidence__layout > *,
.zgc-proof__header > *,
.zgc-stack__layout > * {
  min-width: 0;
}

body[data-city-pilot="zgorzelec-service-core-v1"] main :is(h1, h2, h3, p, li, dd, small, figcaption, a, button, label, summary) {
  overflow-wrap: anywhere;
}

body[data-city-pilot="zgorzelec-service-core-v1"] main :is(img, svg) {
  max-width: 100%;
}

.zgc-hero,
.zgc-fit,
.zgc-evidence,
.zgc-proof,
.zgc-stack,
.zgc-editorial,
.zgc-faq {
  position: relative;
  color: var(--zgc-ink);
}

.zgc-shell,
.zgc-editorial {
  width: min(calc(100% - 5rem), 1168px);
  margin-inline: auto;
}

.zgc-hero {
  z-index: 10;
  overflow: hidden;
  padding: 5.2rem 1rem 0.75rem;
  background: #fff;
  border-bottom: 1px solid var(--zgc-line);
}

.zgc-hero__frame {
  display: grid;
  grid-template-columns: minmax(22rem, 0.88fr) minmax(0, 1.12fr);
  height: min(30.2rem, calc(100svh - 7rem));
  min-height: 28.5rem;
  overflow: hidden;
  background: #fff;
  border-block: 1px solid var(--zgc-line);
}

.zgc-hero__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 1.65rem 2.4rem 1.55rem 0;
}

.zgc-hero h1 {
  max-width: 12.4ch;
  margin: 0;
  color: var(--zgc-ink);
  font-size: clamp(2.8rem, 3.85vw, 3.45rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.zgc-hero h1 em {
  display: block;
  color: var(--zgc-red);
  font-style: normal;
}

.zgc-hero__copy > p {
  max-width: 48ch;
  margin: 1.1rem 0 0;
  color: var(--zgc-muted);
  font-size: 0.94rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.zgc-hero__copy > small {
  display: block;
  margin-top: 1.2rem;
  color: #6a7a7f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.zgc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
}

.zgc-hero__actions a,
.zgc-fit__intro > a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--zgc-ink);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.zgc-hero__actions a:first-child {
  min-width: 13.2rem;
  gap: 0.65rem;
  padding: 0.75rem 1.05rem;
  color: #fff;
  background: var(--zgc-ink);
  border: 1px solid var(--zgc-ink);
  border-radius: 0.75rem;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.zgc-hero__actions a:first-child:hover {
  background: var(--zgc-red);
  border-color: var(--zgc-red);
  transform: translateY(-2px);
}

.zgc-hero__actions a:last-child {
  padding-inline: 0.2rem;
  border-bottom: 1px solid #aab5b9;
}

.zgc-hero__actions a:last-child:hover,
.zgc-fit__intro > a:hover {
  color: var(--zgc-red);
  border-color: var(--zgc-red);
}

.zgc-hero__visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--zgc-bench);
  border-left: 1px solid var(--zgc-line);
}

.zgc-hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.zgc-hero__picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.zgc-hero__visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 3.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  color: var(--zgc-muted);
  background: rgba(248, 251, 251, 0.96);
  border-top: 1px solid var(--zgc-line);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.zgc-hero__visual figcaption strong { color: var(--zgc-ink); font-weight: 800; }

.zgc-fit {
  padding: 2.9rem 1rem;
  background: var(--zgc-ash);
  border-bottom: 1px solid var(--zgc-line);
}

.zgc-fit__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.73fr) minmax(0, 1.27fr);
  gap: clamp(2.7rem, 6vw, 5.2rem);
  align-items: center;
}

.zgc-fit__intro h2,
.zgc-proof__header h2 {
  margin: 0;
  font-size: clamp(2.25rem, 3.45vw, 2.95rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.zgc-fit__intro h2 { max-width: 12.5ch; }

.zgc-fit__intro > p {
  max-width: 40ch;
  margin: 1rem 0 0;
  color: var(--zgc-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.zgc-fit__intro > a {
  width: max-content;
  gap: 0.55rem;
  margin-top: 1rem;
  border-bottom: 1px solid #aab5b9;
}

.zgc-fit__sheet {
  margin: 0;
  background: #fff;
  border-block: 1px solid var(--zgc-line);
}

.zgc-fit__sheet > div {
  display: grid;
  min-height: 4.4rem;
  grid-template-columns: 8.6rem minmax(0, 1fr);
  align-items: stretch;
}

.zgc-fit__sheet > div + div { border-top: 1px solid var(--zgc-line); }
.zgc-fit__sheet > div.is-decision { background: var(--zgc-red-soft); }

.zgc-fit__sheet dt {
  display: flex;
  align-items: center;
  padding: 0.9rem 1rem;
  color: var(--zgc-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zgc-fit__sheet dd {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0.85rem 1.15rem;
  border-left: 1px solid var(--zgc-line);
}

.zgc-fit__sheet dd strong { font-size: 0.82rem; line-height: 1.35; }
.zgc-fit__sheet dd span { color: var(--zgc-muted); font-size: 0.78rem; line-height: 1.45; }

.zgc-evidence {
  padding: 2.35rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--zgc-line);
}

.zgc-evidence__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) minmax(0, 0.58fr);
  gap: 0;
  align-items: stretch;
  border-block: 1px solid var(--zgc-line);
}

.zgc-evidence__layout > * { padding: 1.15rem 1.5rem; }
.zgc-evidence__layout > header { padding-left: 0; }
.zgc-evidence__layout > * + * { border-left: 1px solid var(--zgc-line); }

.zgc-evidence h2 {
  max-width: 22ch;
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.zgc-evidence__copy p {
  margin: 0;
  color: var(--zgc-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.zgc-evidence__copy p + p { margin-top: 0.6rem; }
.zgc-evidence__copy strong { color: var(--zgc-ink); }

.zgc-evidence nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.city-page-wave1 .zgc-evidence a,
.city-page-wave1 .zgc-editorial a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  padding-inline: 0.35rem;
  color: #344a50;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.zgc-evidence a:hover,
.zgc-editorial a:hover {
  color: var(--zgc-red);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.zgc-proof {
  padding: 2.85rem 1rem 3rem;
  background: #fff;
  border-bottom: 1px solid var(--zgc-line);
}

.zgc-proof__header {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: 1.55rem;
}

.zgc-proof__header h2 { max-width: 16ch; }

.zgc-proof__header p {
  max-width: 61ch;
  margin: 0;
  color: var(--zgc-muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

.zgc-proof__bench {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  background: var(--zgc-ash);
  border-block: 1px solid var(--zgc-line);
  list-style: none;
}

.zgc-proof__bench li {
  display: flex;
  min-height: 13.2rem;
  flex-direction: column;
  padding: 1.15rem 1.2rem;
}

.zgc-proof__bench li + li { border-left: 1px solid var(--zgc-line); }
.zgc-proof__bench li:nth-child(3) { background: var(--zgc-birch); }

.zgc-proof__bench li > span {
  color: var(--zgc-red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zgc-proof__bench h3 {
  max-width: 17ch;
  margin: 0.9rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.zgc-proof__bench p {
  margin: 0;
  color: var(--zgc-muted);
  font-size: 0.77rem;
  line-height: 1.48;
}

.zgc-proof__bench strong {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--zgc-ink);
  border-top: 1px solid var(--zgc-line);
  font-size: 0.7rem;
  line-height: 1.4;
}

.zgc-stack {
  padding: 1.8rem 1rem;
  background: var(--zgc-bench);
  border-bottom: 1px solid var(--zgc-line);
}

.zgc-stack__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.zgc-stack__layout > div h2 {
  max-width: 34ch;
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.zgc-stack__layout > div p {
  margin: 0.4rem 0 0;
  color: var(--zgc-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.zgc-stack ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-block: 1px solid #c9d0d2;
  list-style: none;
}

.zgc-stack li {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
}

.zgc-stack li + li { border-left: 1px solid #c9d0d2; }
.zgc-stack .iconify { width: 1.45rem; height: 1.45rem; flex: 0 0 auto; }
.zgc-stack strong, .zgc-stack small { display: block; }
.zgc-stack strong { font-size: 0.72rem; }
.zgc-stack small { margin-top: 0.18rem; color: var(--zgc-muted); font-size: 0.67rem; line-height: 1.3; }

.city-page-wave1 .zgc-faq {
  color: var(--zgc-ink);
  background: #fff;
  border-bottom: 1px solid var(--zgc-line);
}

.zgc-editorial {
  display: flex;
  min-height: 5.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
  color: var(--zgc-muted);
  background: #fff;
  border-bottom: 1px solid var(--zgc-line);
  font-size: 0.7rem;
}

.zgc-editorial > div { display: flex; flex-direction: column; gap: 0.25rem; }
.zgc-editorial strong { color: var(--zgc-ink); }
.zgc-editorial nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 1rem; }

body[data-city-pilot="zgorzelec-service-core-v1"] #contact > .container > .grid > div:nth-child(2) > div:nth-child(3) {
  border-radius: 1rem;
  box-shadow: none;
}

body[data-city-pilot="zgorzelec-service-core-v1"] #contact > .container > .grid > div:nth-child(2) > .mt-12 > div > div:nth-child(2) {
  font-size: 0.69rem;
  line-height: 1.3;
}

body[data-city-pilot="zgorzelec-service-core-v1"] #contact > .container > .grid > div:nth-child(2) > .mt-12 > div > div:nth-child(3) {
  font-size: 0.65rem;
  line-height: 1.35;
}

body[data-city-pilot="zgorzelec-service-core-v1"] main :is(a, button, input, textarea, select, summary, label):focus-visible {
  outline: 3px solid #ef4353 !important;
  outline-offset: 3px !important;
}

body[data-city-pilot="zgorzelec-service-core-v1"] main :is(.calc-btn, #faq summary):focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ef4353 !important;
}

body[data-city-pilot="zgorzelec-service-core-v1"] #faq .zakopane-faq__list details > summary:focus,
body[data-city-pilot="zgorzelec-service-core-v1"] #faq .zakopane-faq__list details > summary:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #ef4353 !important;
  outline-offset: -3px !important;
  box-shadow: inset 0 0 0 3px #ef4353 !important;
  transition: none !important;
}

body[data-city-pilot="zgorzelec-service-core-v1"] #kalkulator #calc-form-zgorzelec .calc-btn:focus-visible {
  outline: 3px solid #ef4353 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ef4353 !important;
  transition-property: color, background-color, border-color, box-shadow, transform !important;
}

@media (min-width: 1024px) {
  body[data-city-pilot="zgorzelec-service-core-v1"] #contact {
    padding-block: 1.75rem !important;
  }
}

@media (max-width: 980px) {
  .zgc-shell,
  .zgc-editorial { width: min(calc(100% - 2.5rem), 1168px); }

  .zgc-hero__frame { grid-template-columns: minmax(20rem, 0.9fr) minmax(0, 1.1fr); }
  .zgc-hero__copy { padding-right: 1.8rem; }
  .zgc-hero h1 { font-size: clamp(2.45rem, 5.1vw, 3.1rem); }
  .zgc-fit__layout { gap: 2.6rem; }
  .zgc-fit__sheet dd { grid-template-columns: 1fr; gap: 0.2rem; }
  .zgc-evidence__layout { grid-template-columns: 0.85fr 1.15fr; }
  .zgc-evidence__layout nav { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; padding: 0.35rem 0; border-top: 1px solid var(--zgc-line); border-left: 0; }
  .zgc-proof__header { gap: 2.5rem; }
  .zgc-proof__bench { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zgc-proof__bench li:nth-child(3) { border-top: 1px solid var(--zgc-line); border-left: 0; }
  .zgc-proof__bench li:nth-child(4) { border-top: 1px solid var(--zgc-line); }
  .zgc-stack__layout { gap: 1.5rem; }
}

@media (min-width: 821px) and (max-width: 900px) and (max-height: 500px) {
  .zgc-hero { padding-top: 5.15rem; }
  .zgc-hero__frame { height: auto; min-height: 19rem; }
  .zgc-hero__copy { justify-content: flex-start; padding: 1.05rem 1.35rem 0.9rem 0; }
  .zgc-hero h1 { max-width: 13ch; font-size: 2.15rem; line-height: 1; }
  .zgc-hero__copy > p { margin-top: 0.65rem; font-size: 0.78rem; line-height: 1.45; }
  .zgc-hero__actions { margin-top: 0.7rem; }
  .zgc-hero__copy > small { display: none; }
  .zgc-hero__visual { min-height: 19rem; }
}

@media (max-width: 820px) {
  .zgc-hero { padding-top: 5.8rem; }
  .zgc-hero__frame { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .zgc-hero__copy { padding: 2.2rem 1.2rem 1.8rem; }
  .zgc-hero__visual { min-height: 21.5rem; border-top: 1px solid var(--zgc-line); border-left: 0; }

  .zgc-fit__layout,
  .zgc-stack__layout { grid-template-columns: 1fr; }
  .zgc-fit__intro h2 { max-width: 17ch; }
  .zgc-fit__sheet dd { grid-template-columns: minmax(11rem, 0.86fr) minmax(0, 1.14fr); }

  .zgc-evidence__layout { grid-template-columns: 1fr; }
  .zgc-evidence__layout > * { padding: 1rem 0; }
  .zgc-evidence__layout > * + * { border-top: 1px solid var(--zgc-line); border-left: 0; }
  .zgc-evidence__layout nav { grid-column: auto; }

  .zgc-proof__header { grid-template-columns: 1fr; gap: 0.8rem; }
  .zgc-proof__header h2 { max-width: 20ch; }
  .zgc-stack__layout { gap: 1.2rem; }
  .zgc-editorial { align-items: flex-start; flex-direction: column; gap: 0.4rem; }
  .zgc-editorial nav { justify-content: flex-start; }
}

@media (min-width: 768px) and (max-width: 900px) {
  body[data-city-pilot="zgorzelec-service-core-v1"] #footer-container > .grid {
    grid-template-columns: 1.22fr 1fr 1fr 1fr;
    gap: 1.25rem;
  }

  body[data-city-pilot="zgorzelec-service-core-v1"] #footer-container > .grid > div:first-child > .flex { gap: 0.5rem; }

  body[data-city-pilot="zgorzelec-service-core-v1"] #footer-container > .grid > div:first-child > .flex > span {
    font-size: 1rem;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .zgc-shell,
  .zgc-editorial { width: min(calc(100% - 2rem), 1168px); }

  .zgc-hero { padding: 5.1rem 0 0.8rem; }
  .zgc-hero__frame { border-bottom: 0; }
  .zgc-hero__copy { padding: 1.7rem 0 1.55rem; }
  .zgc-hero h1 { max-width: 11.2ch; font-size: clamp(2.35rem, 11.3vw, 2.85rem); line-height: 0.99; }
  .zgc-hero__copy > p { margin-top: 0.95rem; font-size: 0.88rem; line-height: 1.56; }
  .zgc-hero__copy > small { margin-top: 1rem; font-size: 0.75rem; }
  .zgc-hero__actions { align-items: stretch; flex-direction: column; margin-top: 1.1rem; }
  .zgc-hero__actions a { width: 100%; }
  .zgc-hero__actions a:first-child { min-width: 0; }
  .zgc-hero__actions a:last-child { border: 1px solid var(--zgc-line); border-radius: 0.7rem; }
  .zgc-hero__visual { min-height: 21rem; }
  .zgc-hero__visual figcaption { display: none; }

  .zgc-fit { padding: 2.6rem 1rem; }
  .zgc-fit__layout { gap: 1.6rem; }
  .zgc-fit__intro h2 { max-width: 13ch; font-size: 2.25rem; }
  .zgc-fit__sheet > div { grid-template-columns: 1fr; }
  .zgc-fit__sheet dt { padding: 0.8rem 0.9rem 0.25rem; }
  .zgc-fit__sheet dd { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.3rem 0.9rem 0.85rem; border-left: 0; }

  .zgc-evidence { padding: 2.25rem 1rem; }
  .zgc-evidence h2 { max-width: 17ch; font-size: 1.7rem; }
  .zgc-evidence nav { flex-direction: column; align-items: stretch; }

  .zgc-proof { padding: 2.6rem 1rem; }
  .zgc-proof__header h2 { max-width: 13ch; font-size: 2.2rem; }
  .zgc-proof__bench { grid-template-columns: 1fr; }
  .zgc-proof__bench li { min-height: 0; padding: 1rem; }
  .zgc-proof__bench li + li { border-top: 1px solid var(--zgc-line); border-left: 0; }
  .zgc-proof__bench li:nth-child(3) { border-top: 1px solid var(--zgc-line); }
  .zgc-proof__bench strong { margin-top: 0.9rem; }

  .zgc-stack { padding: 2.2rem 1rem; }
  .zgc-stack ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zgc-stack li + li { border-left: 0; }
  .zgc-stack li:nth-child(even) { border-left: 1px solid #c9d0d2; }
  .zgc-stack li:nth-child(n + 3) { border-top: 1px solid #c9d0d2; }

  .zgc-editorial { width: auto; margin-inline: 1rem; padding-block: 1.2rem; }
  .zgc-editorial nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 0 0.7rem; }

  body[data-city-pilot="zgorzelec-service-core-v1"] #contact > .container > .grid > div:nth-child(2) > .mt-12 > div > div:nth-child(2) {
    font-size: 0.69rem;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zgc-hero__actions a { scroll-behavior: auto; transition: none; }
  .zgc-hero__actions a:first-child:hover { transform: none; }
}
