/* FREE BUD - kompletna warstwa wizualna, rewizja 2026-08-27 */
body::before {
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
  background: var(--accent);
  content: "";
  pointer-events: none;
}

/* Wspólne zabezpieczenia układu */
.home-hero__content,
.home-about__grid,
.process-section__layout,
.project-feature__header,
.project-feature__visual,
.identity-section__grid,
.audience-section__heading,
.offer-hero__grid,
.assurance-section__heading,
.gallery-hero__grid,
.gallery-section__top,
.projects-intro__grid,
.projects-summary__grid,
.faq-hero__grid,
.faq-section__grid,
.faq-contact__panel,
.contact-main__grid,
.contact-cta__panel,
.not-found {
  min-width: 0;
}
.home-hero__wordmark,
.home-hero__blueprint,
.home-hero__photo-code,
.home-hero__thumbs,
.home-hero__stamp,
.home-hero__scroll,
.craft-ticker,
.process-section__mesh,
.process-section__dial,
.contact-cta__word,
.home-about__index {
  display: none !important;
}

/* Strona główna - hero */
.home-hero {
  position: relative;
  width: min(1240px, calc(100% - 36px));
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--brand-dark);
  color: var(--white);
  box-shadow: 0 24px 70px rgba(7, 31, 26, 0.16);
}
.home-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 31, 26, 0.98) 0%, rgba(7, 31, 26, 0.94) 43%, rgba(7, 31, 26, 0.22) 66%, rgba(7, 31, 26, 0.08) 100%),
    linear-gradient(0deg, rgba(7, 31, 26, 0.42), transparent 55%);
  content: "";
  pointer-events: none;
}
.home-hero__visual {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 47%;
  overflow: hidden;
}
.home-hero__image-frame,
.home-hero__image { width: 100%; height: 100%; }
.home-hero__image { object-fit: cover; object-position: center; }
.home-hero__image-shade { display: none; }
.home-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  padding-block: 54px 48px;
}
.home-hero__copy { max-width: 500px; }
.home-hero__copy h1 {
  max-width: 12ch;
  font-size: clamp(36px, 3.45vw, 50px);
  line-height: 1.06;
}
.home-hero__lead {
  max-width: 500px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}
.home-hero__bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 25, 21, 0.45);
}
.home-hero__assurance {
  display: grid;
  width: min(49%, 590px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-left: max(22px, calc((100% - min(var(--container), calc(100% - 44px))) / 2));
}
.home-hero__assurance > div {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 15px 13px 16px 0;
}
.home-hero__assurance span {
  color: #eea486;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.home-hero__assurance strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

/* Strona główna - usługi */
.services-section {
  background:
    linear-gradient(rgba(20, 67, 56, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 67, 56, 0.045) 1px, transparent 1px),
    var(--brand-soft);
  background-size: 32px 32px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.service-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(20, 67, 56, 0.13);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(10, 48, 40, 0.13); }
.service-card__image {
  width: 100%;
  aspect-ratio: 16 / 9.5;
  background-position: center;
  background-size: cover;
}
.service-card:nth-of-type(1) .service-card__image { background-image: url('/assets/images/realizacje/14-stan-surowy-murowany.webp'); }
.service-card:nth-of-type(2) .service-card__image { background-image: url('/assets/images/realizacje/17-wnetrze-stanu-surowego.webp'); }
.service-card:nth-of-type(3) .service-card__image { background-image: url('/assets/images/realizacje/02-instalacje-w-gruncie.webp'); }
.service-card__number {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(7, 31, 26, 0.92);
  color: var(--white);
  font-size: 9px;
  font-weight: 780;
}
.service-card__copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px;
}
.service-card__copy h3 { max-width: 16ch; }
.service-card__copy p {
  margin: 11px 0 18px;
  color: var(--muted);
  font-size: 13.5px;
}
.service-card__link {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}
.service-card__link:hover { color: var(--accent-dark); }

/* Strona główna - o firmie */
.home-about { background: var(--sand); }
.home-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 44px;
}
.home-about__media {
  position: relative;
  display: grid;
  min-height: 385px;
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.65fr);
  grid-template-rows: 1fr auto;
  gap: 12px;
}
.home-about__primary {
  grid-row: 1 / 3;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.home-about__secondary {
  min-height: 235px;
  overflow: hidden;
  border-radius: var(--radius);
}
.home-about__primary img,
.home-about__secondary img { width: 100%; height: 100%; object-fit: cover; }
.home-about__note {
  display: grid;
  min-height: 130px;
  align-content: center;
  border-radius: var(--radius);
  padding: 18px;
  background: var(--accent);
  color: var(--white);
}
.home-about__note span {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.home-about__note strong { font-size: 15px; line-height: 1.22; }
.home-about__copy h2 { max-width: 13ch; }
.home-about__copy > p:not(.section-label) {
  max-width: 520px;
  margin: 17px 0 0;
  color: var(--muted);
}
.check-list {
  display: grid;
  gap: 9px;
  margin: 21px 0 23px;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 13.5px;
}
.check-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  background: var(--accent);
  content: "";
}

/* Strona główna - proces */
.process-section { background: var(--brand-dark); color: var(--white); }
.process-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.42fr);
  align-items: start;
  gap: 42px;
}
.process-section__intro h2 { max-width: 11ch; }
.process-section__intro > p:not(.section-label) {
  max-width: 370px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.62);
}
.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.process-step {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  padding: 21px;
  background: rgba(255, 255, 255, 0.055);
}
.process-step__number {
  color: #eea486;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.08em;
}
.process-step h3 { font-size: 17px; letter-spacing: -0.018em; }
.process-step p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 12.5px; }

/* Strona główna - realizacja */
.project-feature { background: var(--steel-soft); }
.project-feature__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  align-items: end;
  gap: 38px;
  margin-bottom: 30px;
}
.project-feature__copy h2 { max-width: 14ch; }
.project-feature__meta { display: grid; justify-items: start; gap: 17px; }
.project-feature__meta p { max-width: 500px; margin: 0; color: var(--muted); }
.project-feature__visual {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(235px, 0.72fr);
  gap: 14px;
}
.project-feature__main,
.project-feature__rail figure {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.project-feature__main { min-height: 390px; }
.project-feature__main img,
.project-feature__rail img { width: 100%; height: 100%; object-fit: cover; }
.project-feature__main figcaption,
.project-feature__rail figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(7, 31, 26, 0.88);
  color: var(--white);
  font-size: 10px;
}
.project-feature__main figcaption span { color: #efaa8f; font-size: 8px; font-weight: 800; letter-spacing: 0.08em; }
.project-feature__main figcaption strong { min-width: 0; font-size: 11px; text-align: right; }
.project-feature__rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.project-feature__rail figure { min-height: 0; }
.project-feature__rail figcaption { display: block; padding: 7px 8px; font-size: 8px; }

/* Wspólne CTA */
.contact-cta { background: var(--sand-soft); }
.contact-cta__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: 36px;
  overflow: hidden;
  border-radius: 20px;
  padding: 34px 38px;
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.contact-cta__panel::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.contact-cta__panel > * { position: relative; z-index: 1; }
.contact-cta__panel .section-label { color: rgba(255, 255, 255, 0.77); }
.contact-cta__panel h2 { max-width: 16ch; font-size: clamp(28px, 2.7vw, 37px); }
.contact-cta__panel > div:last-child { display: grid; justify-items: start; gap: 16px; }
.contact-cta__panel > div:last-child p { max-width: 470px; margin: 0; color: rgba(255, 255, 255, 0.76); }

/* Hero podstron */
.inner-hero,
.contact-hero,
.projects-hero {
  position: relative;
  width: min(1240px, calc(100% - 36px));
  min-height: 390px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--brand-dark);
  color: var(--white);
}
.inner-hero__image,
.contact-hero__image,
.projects-hero__image,
.projects-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inner-hero__shade,
.contact-hero__shade,
.projects-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 31, 26, 0.94) 0%, rgba(7, 31, 26, 0.76) 45%, rgba(7, 31, 26, 0.2) 100%);
  content: "";
}
.inner-hero__content,
.contact-hero__content,
.projects-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 390px;
  align-content: center;
  justify-items: start;
  padding-block: 50px;
}
.inner-hero__content--center { text-align: left; }
.inner-hero__content h1,
.contact-hero__content h1,
.projects-hero__content h1 { max-width: 13ch; font-size: clamp(34px, 3.35vw, 48px); }
.inner-hero__content > p:not(.section-label),
.contact-hero__content > p:not(.section-label),
.projects-hero__content > p:not(.section-label) {
  max-width: 590px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

/* O nas */
.identity-section { background: var(--page-bg); }
.identity-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 48px;
}
.identity-section__copy h2 { max-width: 15ch; }
.identity-section__copy > p:not(.section-label) { max-width: 580px; margin: 16px 0 0; color: var(--muted); }
.identity-section__visual {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.identity-section__visual img { width: 100%; height: 100%; object-fit: cover; }
.identity-section__caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 2px;
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(7, 31, 26, 0.9);
  color: var(--white);
}
.identity-section__caption strong { font-size: 14px; }
.identity-section__caption span { color: rgba(255, 255, 255, 0.62); font-size: 11px; }
.values-section { background: var(--sand); }
.value-grid,
.audience-grid,
.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.value-card,
.audience-card,
.assurance-card {
  min-width: 0;
  border-radius: var(--radius);
  padding: 24px;
}
.value-card {
  border: 1px solid rgba(20, 36, 30, 0.12);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}
.value-grid,
.audience-grid,
.assurance-grid { counter-reset: freebud-card; }
.value-card,
.audience-card,
.assurance-card { counter-increment: freebud-card; }
.card-index {
  display: block;
  margin-bottom: 28px;
  color: var(--accent-dark);
  font-size: 0;
  font-weight: 820;
  letter-spacing: 0.09em;
}
.card-index::before {
  content: counter(freebud-card, decimal-leading-zero);
  font-size: 10px;
}
.value-card h3,
.audience-card h3,
.assurance-card h3 { max-width: 16ch; }
.value-card p,
.audience-card p,
.assurance-card p { margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.audience-section { background: var(--brand-dark); color: var(--white); }
.audience-section__heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1.58fr);
  align-items: end;
  gap: 34px;
  margin-bottom: 30px;
}
.audience-section__heading h2 { max-width: 20ch; }
.audience-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
}
.audience-card .card-index { color: #efaa8f; }
.audience-card p { color: rgba(255, 255, 255, 0.62); }

/* Oferta */
.offer-hero {
  margin-top: 18px;
  background: var(--brand-dark);
  color: var(--white);
}
.offer-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 46px;
  padding-block: 48px;
}
.offer-hero__copy h1 { max-width: 12ch; font-size: clamp(34px, 3.35vw, 48px); }
.offer-hero__copy > p:not(.section-label) {
  max-width: 520px;
  margin: 17px 0 23px;
  color: rgba(255, 255, 255, 0.68);
}
.offer-hero__visual {
  position: relative;
  height: 360px;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.offer-hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.offer-hero__number {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 15px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
}
.offer-hero__legend {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-radius: 9px;
  padding: 10px;
  background: rgba(7, 31, 26, 0.88);
}
.offer-hero__legend span {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding-right: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 650;
}
.offer-hero__legend span:last-child { border-right: 0; padding-right: 0; }
.offer-services { background: var(--sage-soft); }
.offer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.offer-row,
.offer-row:nth-of-type(even) {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(20, 67, 56, 0.13);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}
.offer-row:nth-of-type(even) .offer-row__media { order: 0; }
.offer-row__media { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
.offer-row__media img { width: 100%; height: 100%; object-fit: cover; }
.offer-row__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 23px;
}
.offer-row__number {
  margin-bottom: 15px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.09em;
}
.offer-row__copy h3 { max-width: 16ch; }
.offer-row__copy > p:not(.offer-row__details) { margin: 11px 0 14px; color: var(--muted); font-size: 13px; }
.offer-row__details {
  margin: 0 0 20px;
  border-left: 3px solid var(--accent);
  padding: 9px 10px;
  background: var(--sand-soft);
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.45;
}
.offer-row__copy .text-link { margin-top: auto; }
.assurance-section { background: var(--brand-dark); color: var(--white); }
.assurance-section__heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1.58fr);
  align-items: end;
  gap: 34px;
  margin-bottom: 30px;
}
.assurance-section__heading h2 { max-width: 18ch; }
.assurance-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
}
.assurance-card .card-index { color: #efaa8f; }
.assurance-card p { color: rgba(255, 255, 255, 0.62); }

/* Galeria */
.gallery-hero { margin-top: 18px; background: var(--sand); }
.gallery-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 44px;
  padding-block: 48px;
}
.gallery-hero__copy h1 { max-width: 12ch; font-size: clamp(34px, 3.35vw, 48px); }
.gallery-hero__copy > p:not(.section-label) { max-width: 510px; margin: 17px 0 0; color: var(--muted); }
.gallery-hero__collage {
  display: grid;
  min-height: 330px;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.gallery-hero__collage figure { min-width: 0; overflow: hidden; border-radius: var(--radius); }
.gallery-hero__collage img { width: 100%; height: 100%; object-fit: cover; }
.gallery-hero__a { grid-row: 1 / 3; }
.gallery-section { background: var(--sage-soft); }
.gallery-section__top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.gallery-section__top h2 { max-width: 14ch; }
.gallery-section__top p:last-child { margin: 10px 0 0; color: var(--muted); }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.gallery-filters button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 11px;
  background: var(--card-bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
}
.gallery-filters button:hover,
.gallery-filters button.is-active { border-color: var(--brand-dark); background: var(--brand-dark); color: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gallery-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 13px;
  background: var(--brand-soft);
  box-shadow: 0 8px 22px rgba(10, 48, 40, 0.08);
}
.gallery-card__open {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-card__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 280ms ease; }
.gallery-card__open:hover img { transform: scale(1.035); }
.gallery-card__open span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  border-radius: 7px;
  padding: 8px 9px;
  background: rgba(7, 31, 26, 0.88);
  color: var(--white);
  font-size: 10px;
  font-weight: 650;
  text-align: left;
}
.gallery-card__category { display: none; }

/* Realizacje */
.projects-hero__image { position: absolute; inset: 0; }
.projects-intro { background: var(--sand); }
.projects-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
  align-items: end;
  gap: 38px;
}
.projects-intro__grid h2 { max-width: 16ch; }
.projects-intro__grid > p { margin: 0; color: var(--muted); }
.project-phases { background: var(--sage-soft); padding-top: var(--section-y); }
.project-phases__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.project-phase,
.project-phase:nth-of-type(even) {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(20, 67, 56, 0.13);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}
.project-phase:nth-of-type(even) .project-phase__media { order: 0; }
.project-phase__media { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
.project-phase__media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.project-phase__copy { display: grid; align-content: start; padding: 24px; }
.project-phase__copy > span {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.1em;
}
.project-phase__copy h3 { max-width: 17ch; }
.project-phase__copy p { max-width: 560px; margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.projects-summary { background: var(--brand-dark); color: var(--white); }
.projects-summary__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 46px;
}
.projects-summary__collage {
  display: grid;
  min-height: 365px;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.projects-summary__collage figure { min-width: 0; overflow: hidden; border-radius: var(--radius); }
.projects-summary__collage figure:first-child { grid-row: 1 / 3; }
.projects-summary__collage img { width: 100%; height: 100%; object-fit: cover; }
.projects-summary__copy h2 { max-width: 15ch; }
.projects-summary__copy > p:not(.section-label) { margin: 17px 0 21px; color: rgba(255, 255, 255, 0.64); }

/* FAQ */
.faq-hero { margin-top: 18px; background: var(--brand-dark); color: var(--white); }
.faq-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 46px;
  padding-block: 48px;
}
.faq-hero__copy h1 { max-width: 12ch; font-size: clamp(34px, 3.35vw, 48px); }
.faq-hero__copy > p:not(.section-label) { max-width: 530px; margin: 17px 0 0; color: rgba(255, 255, 255, 0.67); }
.faq-hero__drawing {
  position: relative;
  display: grid;
  min-height: 290px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}
.faq-hero__drawing svg { width: 72%; max-height: 240px; fill: none; stroke: rgba(255, 255, 255, 0.56); stroke-width: 2; }
.faq-hero__drawing > span {
  position: absolute;
  color: #efaa8f;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.faq-hero__drawing > span:nth-of-type(1) { top: 17px; left: 17px; }
.faq-hero__drawing > span:nth-of-type(2) { top: 17px; right: 17px; }
.faq-hero__drawing > span:nth-of-type(3) { right: 17px; bottom: 17px; }
.faq-section { background: var(--sand); }
.faq-section__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1.52fr);
  align-items: start;
  gap: 44px;
}
.faq-section__intro h2 { max-width: 12ch; }
.faq-section__intro > p:not(.section-label) { margin: 14px 0 0; color: var(--muted); }
.faq-list { display: grid; gap: 9px; }
.faq-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 36, 30, 0.12);
  border-radius: 12px;
  background: var(--card-bg);
}
.faq-item summary {
  display: grid;
  min-height: 66px;
  grid-template-columns: 32px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-list { counter-reset: freebud-faq; }
.faq-item { counter-increment: freebud-faq; }
.faq-item__number { color: var(--accent-dark); font-size: 0; font-weight: 820; }
.faq-item__number::before { content: counter(freebud-faq, decimal-leading-zero); font-size: 9px; }
.faq-item summary > span:nth-child(2) { min-width: 0; font-size: 15px; font-weight: 690; line-height: 1.35; }
.faq-item__plus { position: relative; width: 24px; height: 24px; }
.faq-item__plus::before,
.faq-item__plus::after {
  position: absolute;
  top: 11px;
  left: 5px;
  width: 14px;
  height: 2px;
  background: var(--brand-dark);
  content: "";
  transition: transform 180ms ease;
}
.faq-item__plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__plus::after { transform: rotate(0); }
.faq-item__answer { padding: 0 58px 18px; }
.faq-item__answer p { max-width: 690px; color: var(--muted); font-size: 13px; }
.faq-contact { background: var(--sage-soft); }
.faq-contact__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: var(--radius);
  padding: 31px 34px;
  background: var(--brand-dark);
  color: var(--white);
}
.faq-contact__panel h2 { max-width: 18ch; font-size: clamp(27px, 2.6vw, 36px); }
.faq-contact__panel .button { flex: 0 0 auto; }

/* Kontakt */
.contact-main { background: var(--sage-soft); }
.contact-main__grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 28px;
}
.contact-details { display: grid; gap: 10px; }
.contact-details > .section-label { margin-bottom: 2px; }
.contact-details article {
  min-width: 0;
  border: 1px solid rgba(20, 67, 56, 0.13);
  border-radius: 13px;
  padding: 20px;
  background: var(--card-bg);
}
.contact-details article:nth-of-type(2) { background: var(--sand-soft); }
.contact-details article:nth-of-type(3) { background: var(--steel-soft); }
.contact-details article > span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.contact-details article > a,
.contact-details article > strong {
  display: block;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 740;
  line-height: 1.25;
  text-decoration: none;
}
.contact-details article p { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.contact-form-wrap {
  min-width: 0;
  border: 1px solid rgba(20, 67, 56, 0.13);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}
.contact-form-wrap h2 { max-width: 16ch; }
.contact-form-wrap > p:not(.section-label) { max-width: 620px; margin: 13px 0; color: var(--muted); }
.contact-hints { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 0 0 23px; padding: 0; list-style: none; }
.contact-hints li { position: relative; padding-left: 15px; color: var(--brand); font-size: 12px; }
.contact-hints li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent);
  content: "";
}
.contact-form { display: grid; gap: 18px; }
.form-honeypot { position: absolute !important; left: -9999px !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: grid; min-width: 0; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: var(--ink-soft); font-size: 12px; font-weight: 680; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fffdf8;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-field input,
.form-field select { min-height: 46px; }
.form-field textarea { min-height: 132px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 67, 56, 0.1); }
.form-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--muted);
  font-size: 11.5px;
}
.form-consent input { margin-top: 3px; }
.form-consent a { color: var(--brand); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { min-height: 20px; margin: 0; font-size: 12px; }
.form-status.is-success { color: #276542; }
.form-status.is-error { color: #a33f31; }

/* 404 */
.not-found-page { min-height: 100vh; display: grid; background: var(--page-bg); }
.not-found {
  display: grid;
  width: min(1040px, calc(100% - 36px));
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  margin: auto;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}
.not-found__media { min-height: 430px; }
.not-found__media img { width: 100%; height: 100%; object-fit: cover; }
.not-found__copy { display: grid; align-content: center; padding: 45px; }
.not-found__copy > span { margin-top: 30px; color: var(--accent-dark); font-size: 12px; font-weight: 820; letter-spacing: 0.14em; }
.not-found__copy h1 { max-width: 12ch; margin-top: 10px; font-size: clamp(33px, 3.5vw, 47px); }
.not-found__copy > p { margin: 16px 0 22px; color: var(--muted); }

/* Polityka prywatności */
.privacy-document { min-height: 100vh; padding: 48px 18px; background: var(--page-bg); }
.privacy-document__content {
  width: min(820px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 54px);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.privacy-document__content h1 { margin-bottom: 13px; }
.privacy-document__content h2 { margin: 30px 0 10px; font-size: 22px; }
.privacy-document__content p { color: var(--muted); }
.privacy-document__back { display: inline-flex; margin-top: 28px; color: var(--brand-dark); font-weight: 720; }

@media (max-width: 1080px) {
  .home-hero__content { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
  .home-hero__visual { left: 50%; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .home-about__grid,
  .identity-section__grid,
  .projects-summary__grid,
  .contact-main__grid { grid-template-columns: 1fr; }
  .process-section__layout { grid-template-columns: 1fr; gap: 28px; }
  .process-section__intro h2 { max-width: 16ch; }
  .project-feature__header,
  .projects-intro__grid,
  .contact-cta__panel { grid-template-columns: 1fr; gap: 22px; }
  .project-feature__visual { grid-template-columns: 1fr; }
  .project-feature__main { min-height: 360px; }
  .project-feature__rail { min-height: 210px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr; }
  .identity-section__visual { min-height: 340px; }
  .offer-hero__grid,
  .gallery-hero__grid,
  .faq-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .offer-hero__visual { height: 300px; min-height: 0; }
  .gallery-hero__collage,
  .faq-hero__drawing { min-height: 300px; }
  .offer-list { grid-template-columns: 1fr; }
  .offer-row { display: grid; grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.22fr); }
  .offer-row__media { height: 100%; min-height: 260px; aspect-ratio: auto; }
  .value-grid,
  .audience-grid,
  .assurance-grid { grid-template-columns: 1fr; }
  .value-card,
  .audience-card,
  .assurance-card { padding: 22px; }
  .card-index { margin-bottom: 18px; }
  .audience-section__heading,
  .assurance-section__heading { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .project-phases__list { grid-template-columns: 1fr; }
  .project-phase { display: grid; grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr); }
  .project-phase__media { height: 100%; min-height: 250px; aspect-ratio: auto; }
  .faq-section__grid { grid-template-columns: 1fr; gap: 26px; }
  .faq-section__intro h2 { max-width: 18ch; }
}

@media (max-width: 760px) {
  .home-hero {
    display: flex;
    width: calc(100% - 20px);
    flex-direction: column;
    border-radius: 18px;
  }
  .home-hero::before { display: none; }
  .home-hero__content {
    order: 1;
    display: block;
    min-height: 0;
    width: 100%;
    padding: 36px 18px 30px;
    background: var(--brand-dark);
  }
  .home-hero__copy { max-width: none; }
  .home-hero__copy h1 { max-width: 13ch; font-size: clamp(31px, 8.9vw, 39px); }
  .home-hero__lead { margin: 15px 0 21px; font-size: 14px; }
  .home-hero__visual {
    position: relative;
    order: 2;
    inset: auto;
    width: 100%;
    height: 245px;
  }
  .home-hero__bottom { order: 3; }
  .home-hero__assurance {
    width: 100%;
    grid-template-columns: 1fr;
    margin-left: 0;
    padding: 5px 18px;
  }
  .home-hero__assurance > div {
    min-height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 9px 0;
  }
  .home-hero__assurance > div:last-child { border-bottom: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card__image { aspect-ratio: 16 / 8.6; }
  .home-about__media { min-height: 330px; grid-template-columns: 1.35fr 0.65fr; }
  .home-about__secondary { min-height: 200px; }
  .home-about__note { min-height: 118px; padding: 15px; }
  .process-list { grid-template-columns: 1fr; }
  .project-feature__main { min-height: 280px; }
  .project-feature__rail { min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 125px); }
  .contact-cta__panel { padding: 28px 24px; }
  .inner-hero,
  .contact-hero,
  .projects-hero { width: calc(100% - 20px); min-height: 335px; border-radius: 18px; }
  .inner-hero__content,
  .contact-hero__content,
  .projects-hero__content { min-height: 335px; padding-block: 38px; }
  .inner-hero__content h1,
  .contact-hero__content h1,
  .projects-hero__content h1,
  .offer-hero__copy h1,
  .gallery-hero__copy h1,
  .faq-hero__copy h1 { font-size: clamp(31px, 8.9vw, 39px); }
  .identity-section__visual { min-height: 300px; }
  .offer-hero,
  .gallery-hero,
  .faq-hero { margin-top: 10px; }
  .offer-hero__grid,
  .gallery-hero__grid,
  .faq-hero__grid { padding-block: 38px; }
  .offer-row,
  .project-phase { display: flex; flex-direction: column; }
  .offer-row__media,
  .project-phase__media { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .gallery-section__top { align-items: flex-start; flex-direction: column; gap: 19px; }
  .gallery-filters { justify-content: flex-start; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-summary__collage { min-height: 320px; }
  .faq-contact__panel { align-items: flex-start; flex-direction: column; padding: 27px; }
  .faq-contact__panel .button { flex: auto; }
  .contact-form-wrap { padding: 25px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .not-found { width: calc(100% - 20px); grid-template-columns: 1fr; margin-block: 10px; border-radius: 18px; }
  .not-found__media { min-height: 260px; }
  .not-found__copy { padding: 30px 24px; }
}

@media (max-width: 760px) {
  .offer-hero__visual { height: 260px; }
}

@media (max-width: 470px) {
  .home-about__media { min-height: 305px; grid-template-columns: 1.25fr 0.75fr; gap: 9px; }
  .home-about__secondary { min-height: 185px; }
  .project-feature__rail { grid-template-rows: repeat(2, 112px); gap: 9px; }
  .gallery-hero__collage { min-height: 255px; gap: 8px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card__open { aspect-ratio: 16 / 10; }
  .faq-item summary { grid-template-columns: 26px minmax(0, 1fr) 24px; gap: 8px; padding: 12px; }
  .faq-item summary > span:nth-child(2) { font-size: 14px; }
  .faq-item__answer { padding: 0 48px 16px 46px; }
  .contact-details article > a,
  .contact-details article > strong { font-size: 16px; }
  .privacy-document { padding: 20px 10px; }
  .privacy-document__content { border-radius: 12px; padding: 24px 18px; }
}
