/* =============================================================================
   Pan Wyburzalski — style wspólne (/uslugi/, /o-nas/)
   Loaded via $GLOBALS['extra_css'] = ['home.css']
   ============================================================================= */

/* ============================================================
   USP STRIP
   ============================================================ */
.pb-usp {
  padding: 16px 0 36px;
  background: linear-gradient(180deg, var(--pb-green-50) 0%, #fff 100%);
}
.pb-usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pb-usp-item {
  background: #fff;
  border-radius: var(--pb-r-lg);
  padding: 18px;
  box-shadow: var(--pb-shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow var(--pb-dur-base), transform var(--pb-dur-base);
}
.pb-usp-item:hover { box-shadow: var(--pb-shadow-md); }
.pb-usp-illo { width: 64px; height: 64px; flex-shrink: 0; }
.pb-usp-illo svg { width: 64px; height: 64px; }
.pb-usp-t1 {
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--pb-ink);
  line-height: 1.2;
}
.pb-usp-t2 { font-size: 12px; color: var(--pb-text-muted); margin-top: 3px; line-height: 1.4; }

/* ============================================================
   H2 HEADINGS — brand green throughout main content
   ============================================================ */
main h2 { color: var(--pb-green); }
.pb-cta-band h2 { color: #fff; }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.pb-section { padding: 80px 0; }
.pb-section.alt { background: var(--pb-surface-2); }
.pb-section.washed { background: var(--pb-green-50); }
.pb-section.tight-top    { padding-top: 56px; }
.pb-section.tight-bottom { padding-bottom: 56px; }
.pb-section-head { text-align: center; margin-bottom: 40px; }
.pb-section-head h2 {
  font-family: var(--pb-font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: var(--pb-tracking-tight);
  color: var(--pb-green);
  margin: 0 0 10px;
}
.pb-section-head p {
  color: var(--pb-text-muted);
  font-size: 16px;
  max-width: 60ch;
  margin: 0 auto;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.pb-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pb-service {
  background: #fff;
  border-radius: var(--pb-r-lg);
  padding: 18px;
  box-shadow: var(--pb-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: box-shadow var(--pb-dur-base), transform var(--pb-dur-base);
  position: relative;
  text-decoration: none;
  color: inherit;
}
.pb-service:hover { box-shadow: var(--pb-shadow-md); color: inherit; text-decoration: none; }
.pb-service-img {
  width: 100%;
  height: 120px;
  border-radius: 56% 44% 52% 48% / 58% 50% 50% 42%;
  background-color: var(--pb-green-100);
  background-image: url('/assets/img/general/rozbiorka-budynku-pietrowego.jpg');
  background-size: cover;
  background-position: center;
  transition: border-radius 380ms var(--pb-ease-out);
  overflow: hidden;
}
.pb-service-img.alt { background-color: var(--pb-yellow-100); }
.pb-service:hover .pb-service-img { border-radius: var(--pb-r-md); }
.pb-service h3 {
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--pb-ink);
  line-height: 1.2;
  margin: 0;
}
.pb-service p { font-size: 13px; color: var(--pb-text-muted); line-height: 1.45; margin: 0; flex: 1; }
.pb-service .price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--pb-green-700);
  margin-top: auto;
}
.pb-service .price svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ============================================================
   NUMBERS (stats)
   ============================================================ */
.pb-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pb-number {
  background: #fff;
  border-radius: var(--pb-r-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--pb-shadow-sm);
}
.pb-number .n {
  font-family: var(--pb-font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--pb-green);
  line-height: 1;
  letter-spacing: -0.03em;
}
.pb-number .lbl { font-size: 14px; color: var(--pb-text-muted); margin-top: 6px; }

/* ============================================================
   MAP
   ============================================================ */
.pb-map-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.pb-map-side {
  display: flex; flex-direction: column; gap: 16px;
}
.pb-map-side h3 {
  font-family: var(--pb-font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  color: var(--pb-green);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.pb-map-side p { color: var(--pb-text-muted); font-size: 16px; line-height: 1.6; margin: 0; }
.pb-map-side p b { color: var(--pb-ink); font-weight: 600; }
.pb-map-features {
  list-style: none; padding: 0; margin: 4px 0 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.pb-map-features li { font-size: 15px; color: var(--pb-text); }
.pb-map-side .pb-btn { align-self: flex-start; }

.pb-map-wrap {
  position: relative;
  margin: 0;
  margin-left: 0;
}
.pb-map-wrap svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 16px rgba(80,184,72,.12)); }

/* ============================================================
   MAP — voivodeship SVG
   ============================================================ */
.pb-poland-map {
  width: 100%;
  height: auto;
  max-width: 680px;
  display: block;
  margin: 0 auto;
}
.pb-voi {
  fill: var(--pb-green-50);
  stroke: var(--pb-green-600);
  stroke-width: 0.8;
  stroke-linejoin: round;
  transition: fill 200ms;
}
.pb-voi.hl { fill: var(--pb-green-100); }
.pb-city-pin .pulse-ring {
  animation: pb-pulse 2.4s var(--pb-ease-out) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* ============================================================
   CONTACT SECTION (on homepage)
   ============================================================ */
.pb-home-contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  align-items: stretch;
}
.pb-home-contact-form {
  background: #fff;
  border-radius: var(--pb-r-xl);
  padding: 28px;
  box-shadow: var(--pb-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pb-home-contact-form h3 { font-family: var(--pb-font-display); font-size: 20px; font-weight: 700; color: var(--pb-ink); margin: 0; }
.pb-home-contact-form .sub { font-size: 13px; color: var(--pb-text-muted); margin: 0; }
.pb-home-contact-form form { display: flex; flex-direction: column; gap: 12px; }
.pb-home-contact-map {
  border-radius: var(--pb-r-xl);
  background: var(--pb-surface-2);
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.pb-home-contact-map svg { width: 100%; height: 100%; opacity: .3; }
.pb-contact-info-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.pb-contact-info-row svg { width: 17px; height: 17px; color: var(--pb-green-700); flex-shrink: 0; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pb-contact-info-row b { color: var(--pb-ink); font-family: var(--pb-font-display); font-weight: 700; display: block; }
.pb-contact-info-row .l { color: var(--pb-text-muted); font-size: 12px; }

/* ============================================================
   FAQ (homepage)
   ============================================================ */
.pb-faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.pb-faq-item {
  background: #fff;
  border-radius: var(--pb-r-lg);
  border: 1.5px solid var(--pb-line-soft);
  overflow: hidden;
}
.pb-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--pb-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--pb-ink);
  gap: 12px;
  user-select: none;
}
.pb-faq-chev {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pb-green-100);
  color: var(--pb-green-700);
  display: grid;
  place-items: center;
  transition: transform var(--pb-dur-base), background var(--pb-dur-base);
}
.pb-faq-chev svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.pb-faq-item.open .pb-faq-chev { transform: rotate(180deg); background: var(--pb-green); color: #fff; }
.pb-faq-a {
  height: 0;
  overflow: hidden;

}
.pb-faq-a-inner {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--pb-text);
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE — HOMEPAGE
   ============================================================ */
@media (max-width: 1024px) {
  .pb-services { grid-template-columns: repeat(2, 1fr); }
  .pb-usp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* USP — 1 column full-width on phones */
@media (max-width: 600px) {
  .pb-usp { overflow: hidden; }
  .pb-usp-grid { grid-template-columns: 1fr; gap: 10px; }
  .pb-usp-item { max-width: 100%; }
}

@media (max-width: 768px) {

  /* Numbers — stack vertically on mobile */
  .pb-numbers { grid-template-columns: 1fr; }
  .pb-number { padding: 20px 16px; }
  .pb-number .n { font-size: 42px; }

  /* Contact */
  .pb-home-contact { grid-template-columns: 1fr; }

  /* Reviews marquee - narrower cards */
  .m-review-card { width: 280px; }

}

@media (max-width: 480px) {
  .pb-services { grid-template-columns: 1fr; }
  .pb-usp-grid { grid-template-columns: 1fr; }
  .pb-map-wrap { max-width: 100%; }
  .pb-map-section { grid-template-columns: 1fr; gap: 24px; }
  .pb-map-side { text-align: center; }
  .pb-map-side .pb-btn { align-self: center; }
  .pb-map-features { align-items: center; }
  .pb-section { padding: 48px 0; }
  .pb-section.tight-top, .pb-section.tight-bottom { padding: 32px 0; }
}

