:root {
  --font-sans: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --color-bg: #ffffff;
  --color-surface: #f5f7fb;
  --color-surface-strong: #eef2f8;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-border: #d6dde8;
  --color-primary: #1e3a8a;
  --color-primary-dark: #162e6d;
  --color-accent: #d32f2f;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.06);
  --container: 1160px;
  --container-narrow: 1160px;
  --radius: 6px;
  --header-h: 70px;
  --hero-h: 55vh;
  --font-display: var(--font-sans);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

h1,
h2,
h3,
.eyebrow,
.mosaic-title {
  font-family: var(--font-display);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

/* Pasek przewijania strony ukryty; przewijanie kółkiem, gładzikiem i klawiaturą działa dalej. */
html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms var(--ease-premium), transform 700ms var(--ease-premium);
    transition-delay: calc(var(--reveal-i, 0) * 80ms);
  }

  [data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  main {
    animation: page-enter 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  @keyframes page-enter {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.nav-dropdown-toggle {
  gap: 0.6rem;
}

.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: var(--color-accent);
}

.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle:focus-visible::after {
  width: 100%;
}

.nav-dropdown-toggle[aria-expanded="true"] {
  color: var(--color-accent);
}

.nav-dropdown-toggle[aria-expanded="true"]::after {
  width: 100%;
}

.nav-overlay-menu {
  width: min(520px, 100%);
  display: grid;
  gap: 0.35rem;
}

.nav-overlay-link,
.nav-overlay-accordion-toggle {
  width: 100%;
  padding: 0.95rem 0;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav-overlay-accordion-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-overlay-link:hover,
.nav-overlay-link:focus-visible,
.nav-overlay-accordion-toggle:hover,
.nav-overlay-accordion-toggle:focus-visible {
  color: var(--color-primary);
}

.nav-overlay-submenu {
  display: grid;
  gap: 0.2rem;
  margin: 0.25rem 0 0.65rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(214, 221, 232, 0.9);
}

.nav-overlay-submenu[hidden] {
  display: none !important;
}

.nav-overlay-submenu a {
  padding: 0.55rem 0;
  text-decoration: none;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-weight: 700;
}

.nav-overlay-submenu a:hover,
.nav-overlay-submenu a:focus-visible {
  color: var(--color-primary);
}

/* Obrót wokół środka widocznego daszka (75% 75%), żeby nie zmieniał wysokości. */
.nav-caret {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform-origin: 75% 75%;
  transform: translate(-1.75px, -1.75px) rotate(45deg);
  transition: transform 0.18s ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-caret {
  transform: translate(-1.75px, -1.75px) rotate(-135deg);
}

.nav-overlay-accordion-toggle[aria-expanded="true"] .nav-caret {
  transform: translate(-1.75px, -1.75px) rotate(-135deg);
}

.nav-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--header-h);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  opacity: 0;
  transition: opacity 180ms ease;
}

.nav-overlay.is-open .nav-overlay-backdrop {
  opacity: 1;
}

.nav-overlay-panel {
  position: relative;
  z-index: 1;
  height: auto;
  width: 100%;
  margin: 0;
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-overlay.is-open .nav-overlay-panel {
  transform: translateY(0);
  opacity: 1;
}

.nav-overlay-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-overlay-close:hover,
.nav-overlay-close:focus-visible {
  background: rgba(15, 23, 42, 0.06);
}

.nav-overlay-content {
  width: 100%;
  margin: 0;
  padding: 1.5rem 0 1rem;
}

.nav-overlay-panel .nav-overlay-content {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.nav-overlay-layout {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: stretch;
  align-items: start;
}

.nav-overlay-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 2.2vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 2rem 0;
}

.section-alt {
  background: var(--color-surface);
}

main.v2 .section:nth-of-type(odd) {
  background: var(--color-surface);
}

.eyebrow {
  margin: 0 0 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-muted);
  font-size: 0.94rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--color-accent);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.section-heading-left,
.areas-showcase .section-heading {
  margin-inline: 0;
  text-align: center;
  margin: 0 0 3rem;
  max-width: none;
}

.areas-showcase .section-heading h2 {
  font-size: 48px;
  font-weight: 400;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0;
}

.section-heading h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: 48px;
  font-weight: 400;
  font-family: 'Playfair Display', serif;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.site-header .container {
  width: min(calc(100% - 2rem), var(--container));
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

.brand-logo {
  width: 104px;
  height: auto;
  flex: 0 0 auto;
}

.main-nav {
  display: inline-flex;
  gap: 2.5rem;
  color: #333;
  font-family: var(--font-sans);
  flex: 0 0 auto;
}

.main-nav a,
.main-nav button {
  text-decoration: none;
  color: #333;
  position: relative;
  transition: color 0.3s ease;
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-accent);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-mobile-toggle:hover,
.nav-mobile-toggle:focus-visible {
  background: #f5f5f5;
}

.nav-mobile-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.button-primary {
  background: var(--color-accent);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #b82626;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-banner-zoom {
    from {
      transform: scale(1.08);
    }
    to {
      transform: scale(1);
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-banner-reveal {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.contact-intro-section {
  padding: 3.25rem 0 2rem;
}

.refs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.refs-card {
  margin: 0;
}

.refs-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.refs-card figcaption {
  margin-top: 0.6rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.about-registry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 1.5rem;
}

.about-registry-entry {
  padding: 1.5rem 0;
}

.about-registry-entry h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.about-registry-entry p {
  margin: 0.55rem 0 0;
  color: var(--color-muted);
}

.project-detail-intro h1 {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 400;
  font-family: 'Playfair Display', serif;
  max-width: 28ch;
  text-align: center;
}

.project-detail-intro h1 {
  max-width: 30ch;
}

.contact-intro-text {
  margin: 0.75rem auto 0;
  max-width: 65ch;
  color: var(--color-muted);
  font-size: 1rem;
}

.offer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.offer-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-underline-offset: 6px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.offer-tabs a:hover,
.offer-tabs a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

.offer-tabs a.is-active {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.offer-panel {
  margin-top: 1.25rem;
}

.carousel-viewport {
  border-radius: var(--radius);
  background: transparent;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel-track {
  display: flex;
  width: 100%;
}

.carousel-slide {
  margin: 0;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.carousel-viewport {
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: transparent;
}

.carousel-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(30, 58, 138, 0.35);
  background: rgba(30, 58, 138, 0.12);
  cursor: pointer;
  padding: 0;
}

.carousel-dot[aria-selected="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 1080px) {
  .offer-tabs {
    justify-content: flex-start;
  }

  .refs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

		@media (max-width: 860px) {
  .about-registry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 1rem;
  }

  .refs-grid {
    grid-template-columns: 1fr;
  }
}

.projects-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.projects-header h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  font-family: 'Playfair Display', serif;
}

.section-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.projects-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.projects-mosaic-reveal .mosaic-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 200ms ease;
  background: transparent !important;
  border-top: 0;
}

.projects-mosaic-reveal .mosaic-card:hover .mosaic-meta,
.projects-mosaic-reveal .mosaic-card:focus-visible .mosaic-meta {
  opacity: 1;
}

.projects-mosaic-reveal .mosaic-card:hover .mosaic-meta,
.projects-mosaic-reveal .mosaic-card:focus-visible .mosaic-meta {
  background: transparent !important;
}

.projects-mosaic-reveal .mosaic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 28, 0);
  transition: background 220ms ease;
  z-index: 1;
  pointer-events: none;
}

.projects-mosaic-reveal .mosaic-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.68) 0%, rgba(15, 23, 42, 0) 100%);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 1;
  pointer-events: none;
}

.projects-mosaic-reveal .mosaic-card:hover::before,
.projects-mosaic-reveal .mosaic-card:focus-visible::before {
  background: rgba(10, 15, 28, 0.16);
}

.projects-mosaic-reveal .mosaic-card:hover::after,
.projects-mosaic-reveal .mosaic-card:focus-visible::after {
  opacity: 1;
}

.projects-mosaic-reveal .mosaic-card:hover img,
.projects-mosaic-reveal .mosaic-card:focus-visible img {
  filter: saturate(0.92) contrast(1.02) brightness(0.9);
}

.projects-mosaic-reveal .mosaic-title,
.projects-mosaic-reveal .mosaic-sub {
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 300;
  white-space: nowrap;
  font-family: var(--font-display);
  text-align: center;
}

.projects-mosaic-reveal .mosaic-title {
  display: block;
}

.projects-mosaic-reveal .mosaic-sub {
  display: block;
  color: #ffffff;
}

/* Obszary realizacji: akordeon zdjęć. Aktywny panel (klasa .is-active, ustawiana
   w site.js przy najechaniu lub fokusie) przejmuje szerokość. Animacja flex-grow
   to świadome odstępstwo od zasady transform/opacity: o ten efekt prosił klient,
   a przy trzech panelach koszt przeliczenia układu jest pomijalny.
   Płynność: zdjęcie ma stałą szerokość rozwiniętego panelu, więc nie skaluje się
   w trakcie animacji, a tekst opisu ma stałą szerokość i nie łamie się na nowo. */
.areas-accordion {
  --areas-gap: 1.25rem;
  --areas-open: calc((min(100vw - 2rem, var(--container)) - 2 * var(--areas-gap)) * 0.6);
  --areas-ease: cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  gap: var(--areas-gap);
  height: 480px;
}

.areas-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  background: var(--color-text);
  transition: flex-grow 800ms var(--areas-ease);
}

.areas-panel.is-active {
  flex-grow: 3;
}

.areas-panel img {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--areas-open);
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform: translateX(-50%);
  transition: transform 1200ms var(--ease-premium);
}

.areas-panel.is-active img {
  transform: translateX(-50%) scale(1.03);
}

/* Płaska nakładka w odcieniu tekstu, ciemniejsza na zwiniętych panelach. */
.areas-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-text);
  opacity: 0.55;
  transition: opacity 800ms var(--areas-ease);
}

.areas-panel.is-active::after {
  opacity: 0.3;
}

.areas-panel:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.areas-panel-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem;
}

.areas-panel-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.areas-panel-text,
.areas-panel-cta {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.areas-panel-text {
  width: 32ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.55;
}

.areas-panel-cta {
  margin-top: 0.5rem;
  width: fit-content;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.15rem;
}

/* Opis pojawia się dopiero, gdy panel jest prawie rozwinięty. */
.areas-panel.is-active .areas-panel-text,
.areas-panel.is-active .areas-panel-cta {
  opacity: 1;
  transform: none;
  transition: opacity 400ms ease 450ms, transform 500ms var(--ease-premium) 450ms;
}

@media (prefers-reduced-motion: reduce) {
  .areas-panel,
  .areas-panel img,
  .areas-panel::after,
  .areas-panel-text,
  .areas-panel-cta {
    transition: none !important;
  }
}

/* Na dotyku i wąskich ekranach bez hovera: panele jeden pod drugim, wszystko widoczne. */
@media (max-width: 860px), (hover: none) {
  .areas-accordion {
    flex-direction: column;
    height: auto;
    gap: 1rem;
  }

  .areas-panel {
    flex: none;
    height: 280px;
  }

  .areas-panel img,
  .areas-panel.is-active img {
    left: 0;
    width: 100%;
    transform: none;
  }

  .areas-panel-text {
    width: auto;
    max-width: 36ch;
  }

  .areas-panel::after {
    opacity: 0.4;
  }

  .areas-panel-text,
  .areas-panel-cta {
    opacity: 1;
    transform: none;
  }
}

.mosaic-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: transparent;
  aspect-ratio: 1 / 1.2;
  min-height: 420px;
}

.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transition: filter 240ms ease, transform 600ms ease;
  transform: scale(1);
}

.areas-showcase .mosaic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 28, 0);
  transition: background 240ms ease;
  z-index: 1;
  pointer-events: none;
}

.areas-showcase .mosaic-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.mosaic-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(214, 221, 232, 0.85);
  display: grid;
  gap: 0.2rem;
  z-index: 2;
}

.mosaic-title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.areas-showcase .mosaic-title {
  color: #fff;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.mosaic-sub {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.areas-showcase .mosaic-sub {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 240ms ease, max-height 240ms ease;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 450;
  text-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.areas-showcase .mosaic-card:hover::before,
.areas-showcase .mosaic-card:focus-visible::before {
  background: rgba(10, 15, 28, 0.14);
}

.areas-showcase .mosaic-card:hover img,
.areas-showcase .mosaic-card:focus-visible img {
  filter: saturate(0.9) contrast(1.02) brightness(0.92);
  transform: scale(1.02);
}

.areas-showcase .mosaic-card:hover .mosaic-sub,
.areas-showcase .mosaic-card:focus-visible .mosaic-sub {
  max-height: 3rem;
  opacity: 1;
  transform: translateY(0);
}

.mosaic-card:hover .mosaic-meta,
.mosaic-card:focus-visible .mosaic-meta {
  background: #fff;
}

.areas-showcase .mosaic-card:hover .mosaic-meta,
.areas-showcase .mosaic-card:focus-visible .mosaic-meta {
  background: transparent;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  color: var(--color-primary);
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  letter-spacing: 0.5px;
}

.inline-link::after {
  content: " >";
}

.inline-link:hover,
.inline-link:focus-visible {
  color: #3b5fc4;
}

.project-detail-intro {
  max-width: none;
}

.project-detail-intro .eyebrow {
  display: none;
}

.project-detail-intro h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.project-detail-intro .contact-intro-text {
  margin: 1rem 0 0;
  max-width: 65ch;
  font-size: 1rem;
  color: var(--color-muted);
}

.project-detail-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}

.project-detail-media img {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.project-gallery {
  --gallery-h: min(560px, 66vh);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.project-gallery-main {
  margin: 0;
}

.project-gallery-main img {
  width: 100%;
  height: var(--gallery-h);
  object-fit: cover;
}

.project-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}

.project-thumb {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
  height: auto;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-thumb:hover,
.project-thumb:focus-visible {
  outline: 2px solid rgba(30, 58, 138, 0.18);
  border-color: rgba(30, 58, 138, 0.38);
}

.project-thumb[aria-current="true"] {
  border-color: rgba(30, 58, 138, 0.6);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.project-details {
  padding-top: 0.25rem;
}

.project-details-divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 1.25rem 0;
}

.project-details-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-details-dl div {
  display: grid;
  gap: 0.3rem;
}

.project-details-dl dt {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-details-dl dd {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.project-detail-media {
  grid-column: 2;
  grid-row: 1;
}

.project-detail-content {
  display: grid;
  gap: 1.25rem;
  grid-column: 1;
  grid-row: 1;
}

.contact-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--color-primary);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jobs-section-heading {
  margin-bottom: 2rem;
}

.jobs-results-meta {
  margin-bottom: 1.25rem;
}

.jobs-results-meta p,
.jobs-empty-state p {
  margin: 0;
  color: var(--color-muted);
}

.jobs-list {
  display: grid;
  gap: 1.5rem;
}

.job-card {
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.job-card-header,
.job-card-grid {
  display: grid;
  gap: 1.25rem;
}

.job-card-actions {
  margin-top: 1.25rem;
  display: flex;
}

.job-card-actions .job-link {
  width: 100%;
}

.job-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.05rem;
  border: 1px solid rgba(30, 58, 138, 0.22);
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.job-link:hover,
.job-link:focus-visible {
  background: var(--color-primary-dark);
  border-color: rgba(30, 58, 138, 0.35);
  transform: translateY(-1px);
}

.job-card-header {
  grid-template-columns: 1fr auto;
  align-items: start;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.job-card.is-expanded .job-card-header {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.job-toggle {
  height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.job-toggle-text {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  white-space: nowrap;
}

.job-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 200ms ease;
}

.job-toggle:hover,
.job-toggle:focus-visible {
  transform: translateY(-1px);
}

.job-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.job-details {
  display: grid;
  gap: 1.25rem;
}

.job-details[hidden] {
  display: none;
}

.job-card-header h3,
.job-card-grid h4 {
  margin: 0;
}

.job-card-header h3 {
  font-size: 1.85rem;
}

.job-title-group {
  display: grid;
  gap: 0.8rem;
}

.job-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.job-location {
  display: inline;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-muted);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.job-card-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.job-card-grid section {
  display: grid;
  gap: 0.9rem;
}

.job-card-grid h4 {
  font-size: 1.2rem;
  color: var(--color-text);
}

.job-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.job-list {
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
  color: var(--color-muted);
}

.job-list li + li {
  margin-top: 0.6rem;
}

.jobs-empty-state {
  padding: 1.25rem 0 0;
}

.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.apply-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.apply-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1.5rem), 720px);
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  padding: 1.5rem;
  overflow: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.apply-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.apply-modal-copy {
  max-width: 52ch;
  margin-bottom: 1.25rem;
}

.apply-modal-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.apply-modal-copy p {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
}

.apply-form {
  display: grid;
  gap: 1rem;
}

.apply-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: 2px solid rgba(30, 58, 138, 0.18);
  border-color: var(--color-primary);
}

.apply-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  font-weight: 500;
}

.apply-consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  padding: 0;
}

.apply-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 4.5rem 0 2rem;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.9fr) minmax(220px, 0.9fr);
  gap: 3.5rem;
  align-items: start;
}

.footer-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0;
  line-height: 1.4;
}

.footer-note {
  margin: 1rem 0 0;
  color: var(--color-muted);
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer-heading {
  margin: 0 0 1.25rem 0;
  font-size: 1rem;
  font-weight: 400;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0;
  color: var(--color-text);
}

.footer-block {
  display: grid;
  gap: 0.75rem;
}

.footer-block a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.65;
  transition: opacity 280ms var(--ease-premium);
}

.footer-block a:hover,
.footer-block a:focus-visible {
  opacity: 0.75;
}

.footer-block p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer-block p {
  margin: 0;
  color: var(--color-muted);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 650;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1080px) {
  .projects-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .main-nav {
    gap: 1.25rem;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .nav-mobile-toggle {
    display: inline-flex;
  }

  .nav-overlay-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  .nav-overlay-close {
    display: none;
  }

  .nav-overlay-content {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 3rem;
  }

	  .nav-overlay-layout {
	    grid-template-columns: 1fr;
	    gap: 1.25rem;
	  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }

	  .projects-mosaic {
	    grid-template-columns: 1fr;
	  }

		  .project-gallery {
		    grid-template-columns: 1fr;
		  }

		  .project-gallery-main img {
		    height: 360px;
		  }

	  .project-thumb {
	    aspect-ratio: 1 / 1;
	  }

		  .project-details-dl {
		    grid-template-columns: 1fr;
		  }

	  .mosaic-card {
	    min-height: 240px;
	  }

  .job-card-grid {
	    grid-template-columns: 1fr;
	  }

	  .footer-grid {
	    grid-template-columns: 1fr;
	    gap: 1.5rem;
	  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 2rem), var(--container));
  }

  .nav-row {
    min-height: 76px;
  }

  :root {
    --header-h: 76px;
  }

  .brand-logo {
    width: 92px;
  }

  :root {
    --hero-h: 68vh;
  }

  .job-card,
  .apply-modal-dialog {
    padding: 1.4rem;
  }

  .button {
    width: 100%;
  }

	  .footer-bottom {
	    flex-direction: column;
	    align-items: flex-start;
	  }
	}

/* ==========================================================================
   Homepage v2 - alternate layout (scoped to v2- prefixed classes)
   ========================================================================== */

.v2 .container {
  width: min(calc(100% - 2rem), var(--container-narrow));
}

.v2 .section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes v2-marquee-scroll {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }
}

/* ---- News ---- */

.v2-news {
  background: var(--color-bg);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  overflow: hidden;
}

.v2-news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 2.5rem;
}

.v2-news-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.v2-news-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, opacity 200ms ease;
}

.v2-news-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v2-news-btn:hover:not(:disabled) {
  border-color: var(--color-text);
}

.v2-news-btn:active:not(:disabled) {
  background: var(--color-surface);
}

.v2-news-btn:focus-visible,
.v2-news-track:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.v2-news-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.v2-news-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 1.5rem) / 2.4);
  gap: 1.5rem;
  margin: 0;
  padding: 0 0 0.25rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.v2-news-track::-webkit-scrollbar {
  display: none;
}

.v2-news-slide {
  scroll-snap-align: start;
  min-width: 0;
}

.v2-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Placeholder do czasu dodania zdjęć z budów. Faktura zamiast pustego pola. */
.v2-news-media {
  position: relative;
  display: grid;
  place-items: end start;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--color-surface-strong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

.v2-news-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 0 0;
}

.v2-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 0.75rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v2-news-meta time {
  color: var(--color-text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.v2-news-body h3 {
  min-height: calc(2 * 1.4em);
  margin: 0 0 0.5rem;
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.v2-news-text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (prefers-reduced-motion: no-preference) {
  .v2-news-track {
    scroll-behavior: smooth;
  }
}

@media (max-width: 920px) {
  .v2-news-track {
    grid-auto-columns: calc((100% - 1.5rem) / 1.5);
  }
}

@media (max-width: 768px) {
  .v2-news-track {
    grid-auto-columns: 85%;
    gap: 1rem;
  }
}

/* ---- Current builds ---- */

.v2-builds {
  background: var(--color-surface);
  color: var(--color-text);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.v2-builds .section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.v2-builds .section-heading h2 {
  font-size: 48px;
  font-weight: 400;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0;
}

.v2-build-list {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 40px;
}

.v2-build-row {
  position: relative;
  padding: 1.75rem 0;
  border-top: 1px solid var(--color-border);
  transition: opacity 280ms var(--ease-premium);
}

.v2-build-row:hover {
  opacity: 0.75;
}

.v2-build-row:first-child {
  border-top: 0;
}

.v2-build-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  margin-bottom: 0.5rem;
}

.v2-build-head h3 {
  margin: 0 0 0.75rem 0;
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.v2-build-row p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 68ch;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ---- Navbar font ---- */

/* ---- Main page typography: Archivo ---- */

.v2 {
  --font-display: var(--font-sans);
}

.v2 > section,
.v2 > .section,
.v2 > article {
  font-family: var(--font-sans);
  font-size: 1.03rem;
}

.v2 h1,
.v2 h2,
.v2 h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.v2 p {
  font-family: var(--font-sans);
}

.v2 .eyebrow {
  font-family: var(--font-sans);
}

.v2 .section-heading h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.1;
}

.v2 .projects-header h2 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  font-family: 'Playfair Display', serif;
}

.v2 .projects {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.v2 .projects {
  padding-bottom: 1rem;
}

@media (min-width: 1081px) {
  .projects-mosaic .mosaic-card {
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
}

/* Minimal Dropdown Redesign */
.nav-overlay-cards {
  display: grid;
  gap: 0;
  margin-top: 0.5rem;
}

.nav-overlay-cards-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.nav-overlay-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(30, 58, 138, 0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-height: auto;
}

.nav-overlay-card:hover {
  transform: translateX(3px);
}

.nav-overlay-card:active {
  transform: translateX(1px);
}

.nav-overlay-card-large {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(30, 58, 138, 0.08);
}

@media (max-width: 860px) {
  .nav-overlay-card-large {
    border-bottom: 1px solid rgba(30, 58, 138, 0.06);
  }
}

.nav-overlay-icon {
  display: none;
}

.nav-overlay-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.nav-overlay-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
  line-height: 1.4;
}

.nav-overlay-card-large .nav-overlay-title {
  font-size: 1.15rem;
  font-weight: 500;
}

.nav-overlay-desc {
  display: none;
}

.nav-overlay-card-arrow {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: rgba(30, 58, 138, 0.2);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.nav-overlay-card:hover .nav-overlay-card-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
  color: rgba(30, 58, 138, 0.6);
}

.v2 .projects {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 190ms ease;
  pointer-events: none;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.gallery-lightbox-container {
  position: relative;
  z-index: 1001;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.gallery-lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease;
  z-index: 1002;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.gallery-lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: none;
  fill: currentColor;
}

/* Hero: zdjęcie realizacji na całą szerokość, tekst na zdjęciu w lewym dolnym rogu. */
.hero-split {
  position: relative;
  display: grid;
  min-height: calc(100dvh - var(--header-h));
  background: var(--color-text);
  isolation: isolate;
}

.hero-split-media {
  grid-area: 1 / 1;
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--color-surface-strong);
}

.hero-split-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

/* Płaskie przyciemnienie dla czytelności tekstu (bez gradientu). */
.hero-split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.hero-split-panel {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  padding: 3rem clamp(1rem, 9vw, 10rem);
}

.hero-split-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: min(100%, 32rem);
  text-align: right;
}

.v2 .hero-split h1 {
  max-width: 16ch;
  margin: 0;
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.v2 .hero-split-lead {
  max-width: 42ch;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-split-link {
  margin-top: 2rem;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.hero-split-link:hover {
  border-bottom-color: #ffffff;
}

.hero-split-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-split-media img {
    animation: hero-split-settle 1400ms var(--ease-premium) both;
  }

  .hero-split-panel > * {
    animation: hero-split-rise 700ms var(--ease-premium) both;
  }

  .hero-split-panel > :nth-child(2) { animation-delay: 80ms; }
}

@keyframes hero-split-settle {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

@keyframes hero-split-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .v2 .hero-split h1 {
    font-size: 44px;
  }
}

@media (max-width: 768px) {
  .hero-split {
    min-height: min(78dvh, 620px);
  }

  .hero-split-panel {
    padding: 2rem 1rem 2.5rem;
  }

  .v2 .hero-split h1 {
    font-size: 2.1rem;
  }

  .v2 .hero-split-lead {
    font-size: 1rem;
  }
}

/* Portfolio Gallery - go.arch Style */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.portfolio-card {
  position: relative;
  aspect-ratio: 1 / 1.2;
  overflow: hidden;
  border-radius: 0;
}

.portfolio-card a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  filter: saturate(0.9) contrast(1.05);
  background-color: #2a2a2a;
}

.portfolio-card:hover .portfolio-image {
  filter: saturate(1) contrast(1.1);
}

.portfolio-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  min-height: 80px;
  display: flex;
  align-items: flex-end;
}

.portfolio-title {
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 500;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-family: var(--font-display);
}

@media (max-width: 768px) {
  .portfolio-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 10px;
  }
}

@keyframes of-unveil {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* reveal */

/* ---- Strona główna: kolejność sekcji 2026-10 ---- */

/* Pasek logotypów zaraz pod hero. */
.v2-logos {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 1.75rem 0;
}

.v2-logos-inner {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

.v2 .v2-logos h2 {
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.v2-logos-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-logos-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.v2-logos-row img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

/* Korzyści: wstęp po lewej, lista z liniami po prawej. */
.v2-benefits.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.v2-benefits-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.v2 .v2-benefits-intro h2 {
  margin: 0 0 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
}

.v2-benefits-intro p {
  max-width: 48ch;
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.v2-benefits-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-text);
}

.v2-benefits-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.v2 .v2-benefits-list h3 {
  margin: 0 0 0.5rem;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.v2-benefits-list p {
  max-width: 60ch;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Pozostałe budowy: krótka lista w dwóch kolumnach. */
.v2-builds .section-heading {
  text-align: left;
  margin: 0 0 2rem;
}

.v2 .v2-builds .section-heading h2 {
  text-align: left;
  font-size: 2rem;
}

.v2-builds .v2-build-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.v2-builds .v2-build-row,
.v2-builds .v2-build-row:first-child {
  border-top: 0;
  border-bottom: 1px solid var(--color-border);
}

.v2-builds .v2-build-head h3 {
  margin-bottom: 0;
}

.v2-builds-link {
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--color-accent);
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

.v2-builds-link:hover {
  color: var(--color-accent);
}

.v2-builds-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .v2-logos-inner,
  .v2-benefits-layout {
    grid-template-columns: 1fr;
  }

  .v2-logos-inner {
    gap: 1rem;
  }

  /* Logotypy przesuwane palcem, od krawędzi do krawędzi ekranu. Kolejny logotyp wystaje, co sygnalizuje przewijanie. */
  .v2-logos-row {
    display: flex;
    gap: 1.5rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
    scroll-padding-inline: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .v2-logos-row::-webkit-scrollbar {
    display: none;
  }

  .v2-logos-row li {
    flex: 0 0 7.5rem;
    scroll-snap-align: start;
  }

  .v2-logos-row .v2-logos-wide {
    flex-basis: 12rem;
  }

  .v2 .v2-benefits-intro h2 {
    font-size: 2rem;
  }

  .v2-builds .v2-build-list {
    grid-template-columns: 1fr;
  }
}

/* Tytuły sekcji: mniejszy Playfair z cienką poziomą linią po lewej, na wysokości środka napisu. */
main.v2 h2.title-rule {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--color-text);
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: left;
  justify-content: flex-start;
}

/* Linia na wysokości środka pierwszego wiersza (połowa line-height 1.15). */
main.v2 h2.title-rule::before {
  content: "";
  flex: 0 0 48px;
  height: 1px;
  margin-top: 0.575em;
  background: var(--color-text);
}

main.v2 .v2-news-head h2.title-rule {
  margin: 0;
}

main.v2 .projects-header {
  justify-content: flex-start;
  text-align: left;
}

@media (max-width: 768px) {
  main.v2 h2.title-rule {
    font-size: 28px;
  }

  main.v2 h2.title-rule::before {
    flex-basis: 32px;
  }
}

/* Strona główna: mniejsze odstępy między sekcjami. */
main#top.v2 > .v2-news,
main#top.v2 > .section,
main#top.v2 > .v2-builds {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

main#top.v2 > .projects {
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

/* Strona główna: sekcja „Grupa WiMaks” w układzie nagłówek po lewej, opis po prawej. */
.home-group-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.home-group-head h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--color-text);
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

.home-group-copy p {
  max-width: 60ch;
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.home-group-copy .inline-link {
  margin-top: 0.5rem;
}

@media (max-width: 767px) {
  .home-group-layout {
    grid-template-columns: 1fr;
  }
}

.home-group-head .home-group-copy {
  margin-top: 1.5rem;
}

.home-group-scope {
  margin: 0;
}

.home-group-scope > div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 0.35rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.home-group-scope > div:last-child {
  border-bottom: 1px solid var(--color-border);
}

.home-group-scope dt {
  color: var(--color-text);
  font-weight: 600;
}

.home-group-scope dd {
  margin: 0;
  color: var(--color-muted);
}

@media (max-width: 767px) {
  .home-group-scope > div {
    grid-template-columns: 1fr;
  }
}

/* ---- O nas: układ jak na stronie głównej ---- */
.about-v2 .about-hero-v2 {
  min-height: min(62dvh, 560px);
}

/* Bez tekstu na zdjęciu przyciemnienie nie jest potrzebne. */
.about-v2 .about-hero-v2 .hero-split-media::after {
  content: none;
}

main.about-v2 > .section {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

/* Ciemny pas bezpośrednio pod zdjęciem, bez karty i cienia. */
.about-facts-wrap {
  background: var(--color-text);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 2.5rem 0;
  list-style: none;
}

.about-facts li {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding-inline: 1.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.about-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.about-facts strong {
  margin-bottom: 0.5rem;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  line-height: 1.1;
}

.about-facts span {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}

.about-facts small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1.4;
}

.about-v2 .v2-benefits-list .inline-link {
  display: inline-flex;
  margin-top: 0.85rem;
}

.about-awards-text {
  max-width: 60ch;
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.about-registry-v2 .title-rule {
  margin: 0 0 1.5rem;
}

.about-v2 .about-registry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-flow: row;
  gap: 0 2rem;
  border-top: 1px solid var(--color-text);
}

.about-v2 .about-registry-entry {
  padding: 1.5rem 0;
}

.about-v2 .about-registry-entry h3 {
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.about-v2 .about-registry-entry p {
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .about-facts,
  .about-v2 .about-registry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-facts {
    row-gap: 1.5rem;
  }

  .about-facts li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 767px) {
  .about-facts {
    gap: 1.75rem 1rem;
    padding: 2rem 0;
  }

  .about-facts li {
    padding: 0;
    border-left: 0;
  }

  .about-facts strong {
    margin-bottom: 0.25rem;
    font-size: 2rem;
  }

  .about-v2 .v2-benefits-layout {
    grid-template-columns: 1fr;
  }

  .about-v2 .about-registry-grid {
    grid-template-columns: 1fr;
  }
}

/* Rozwijane menu „O nas” na komputerze: mała lista pod przyciskiem, bez przyciemnienia strony. */
@media (min-width: 861px) {
  .nav-overlay-backdrop,
  .nav-overlay.is-open .nav-overlay-backdrop {
    background: transparent;
  }

  .nav-overlay-panel {
    position: absolute;
    top: 0;
    left: var(--dd-left, 50%);
    width: max-content;
    min-width: 200px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 16px 32px -20px rgba(15, 23, 42, 0.25);
    transform: translateY(-4px);
  }

  .nav-overlay-close {
    display: none;
  }

  .nav-overlay-panel .nav-overlay-content {
    width: auto;
    padding: 0.5rem 0;
  }

  .nav-overlay-cards,
  .nav-overlay-cards-featured {
    display: grid;
    gap: 0;
    margin: 0;
  }

  .nav-overlay-card,
  .nav-overlay-card-large {
    padding: 0.6rem 1.25rem;
    border: 0;
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  .nav-overlay-card:hover,
  .nav-overlay-card:focus-visible,
  .nav-overlay-card:active {
    transform: none;
    background: var(--color-surface);
  }

  .nav-overlay-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
  }

  .nav-overlay-title,
  .nav-overlay-card-large .nav-overlay-title {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
  }

  .nav-overlay-card:hover .nav-overlay-title,
  .nav-overlay-card:focus-visible .nav-overlay-title {
    color: var(--color-primary);
  }

  .nav-overlay-desc,
  .nav-overlay-card-arrow {
    display: none;
  }
}

/* Konsorcjum: akapity w prawej kolumnie, jak lista korzyści na stronie głównej. */
.consortium-copy-v2 {
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-text);
}

.consortium-copy-v2 p {
  max-width: 60ch;
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.consortium-copy-v2 p:last-child {
  margin-bottom: 0;
}

/* Podstrony bez zdjęcia na górze: tytuł i wstęp do lewej. */
.page-intro-v2 {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.page-intro-v2 h1 {
  max-width: 22ch;
  margin: 0;
  color: var(--color-text);
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

.page-intro-v2 p {
  max-width: 56ch;
  margin: 1.25rem 0 0;
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Konsorcjum: dokonania jako tabela inwestor / zakres i kwota, budowy w toku w dwóch kolumnach. */
main.about-v2 .title-rule {
  margin: 0 0 1.5rem;
}

.consortium-works {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-text);
}

.consortium-works > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0.5rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.consortium-works h3 {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.consortium-works ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.consortium-works ul li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
}

.consortium-works span {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.consortium-works strong {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.consortium-now {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-text);
}

.consortium-now li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.consortium-now h3 {
  margin: 0 0 0.35rem;
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
}

.consortium-now p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .consortium-works > li,
  .consortium-works ul li,
  .consortium-now {
    grid-template-columns: 1fr;
  }
}

/* Sekcje obszarów: zdjęcie i opis na zmianę stron. */
.ofr-sector {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.ofr-sector + .ofr-sector {
  border-top: 1px solid var(--color-border);
}

.ofr-sector-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.ofr-sector-rev .ofr-sector-media {
  order: 2;
}

.ofr-sector-rev .ofr-sector-grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.ofr-sector-media {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  margin: 0;
}

.ofr-sector-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-surface-strong);
}

.ofr-sector-copy h2 {
  margin: 0.5rem 0 1rem;
  color: var(--color-text);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

.ofr-sector-lead {
  max-width: 60ch;
  margin: 0 0 2rem;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.ofr-sector-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-text);
}

.ofr-sector-cols h3 {
  margin: 0 0 0.85rem;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ofr-refs {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ofr-refs li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-border);
}

.ofr-refs li:last-child {
  border-bottom: 0;
}

.ofr-refs a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.ofr-refs a:hover,
.ofr-refs a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ofr-refs span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Pytania: akordeon z liniami. */
.ofr-faq {
  border-top: 1px solid var(--color-text);
}

.ofr-faq details {
  border-bottom: 1px solid var(--color-border);
}

.ofr-faq summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.ofr-faq summary::-webkit-details-marker {
  display: none;
}

.ofr-faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.ofr-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.ofr-faq summary:hover,
.ofr-faq summary:focus-visible {
  color: var(--color-primary);
}

.ofr-faq details p {
  max-width: 62ch;
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  line-height: 1.7;
}

@media (max-width: 960px) {
  .ofr-sector-grid,
  .ofr-sector-rev .ofr-sector-grid {
    grid-template-columns: 1fr;
  }

  .ofr-sector-rev .ofr-sector-media {
    order: 0;
  }

  .ofr-sector-media {
    position: static;
  }

  .ofr-sector-media img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767px) {
  .ofr-sector-cols,
  .page-offer-v2 .v2-benefits-layout {
    grid-template-columns: 1fr;
  }
}

.page-offer-v2 .ofr-sector + .ofr-sector {
  border-top: 0;
}

.page-offer-v2 .ofr-sector-media {
  position: static;
}

.page-offer-v2 .ofr-sector-media img {
  aspect-ratio: 4 / 3;
}

.page-offer-v2 .ofr-sector-cols {
  border-top-color: var(--color-border);
}

main.page-offer-v2 > .section:nth-of-type(odd) {
  background: transparent;
}

/* ---- Realizacje: lista i podstrony ---- */

.page-realizacje-list h1,
.page-realizacje-list h2,
.page-project h1,
.page-project h2,
.page-project h3 {
  text-wrap: balance;
}

.page-realizacje-list p,
.page-project p {
  text-wrap: pretty;
}

.realizacje-intro {
  padding: 3rem 0 1rem;
}

.realizacje-intro h1,
.project-page-intro h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.realizacje-lead,
.project-page-lead {
  margin: 1rem 0 0;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.realizacje-heading,
.project-page-heading {
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.realizacje-all {
  padding: 2.5rem 0 4rem;
}

.realizacje-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.realizacje-filter {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.realizacje-filter span {
  color: var(--color-muted);
  margin-left: 0.25rem;
}

.realizacje-filter:hover {
  border-color: var(--color-primary);
}

.realizacje-filter:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.realizacje-filter:active {
  transform: translateY(1px);
}

.realizacje-filter[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.realizacje-filter[aria-pressed="true"] span {
  color: rgba(255, 255, 255, 0.8);
}

.realizacje-count {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.realizacje-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-text);
}

.realizacje-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) 15rem;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.realizacje-row[hidden] {
  display: none;
}

.realizacje-years {
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.realizacje-main {
  display: grid;
  gap: 0.25rem;
}

.realizacje-link {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
}

.realizacje-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.realizacje-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.realizacje-investor {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.realizacje-cat {
  font-size: 0.875rem;
  color: var(--color-muted);
  display: grid;
  gap: 0.25rem;
}

.realizacje-status {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Podstrona realizacji */

.project-page-intro {
  padding: 2.5rem 0 1.5rem;
}

.project-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
}

.project-back::before {
  content: "< ";
}

.project-back:hover {
  color: var(--color-primary);
}

.project-back:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.project-page-intro h1 {
  max-width: 30ch;
}

.project-page-media .project-gallery-main img {
  border-radius: var(--radius);
}

.project-credits {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.project-credits a {
  color: inherit;
}

.project-page-body {
  padding: 2.5rem 0 4rem;
}

.project-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 3rem;
  align-items: start;
}

.project-page-text p {
  margin: 0 0 1rem;
  max-width: 68ch;
  line-height: 1.7;
  color: var(--color-text);
}

.project-page-text .project-page-heading:not(:first-child) {
  margin-top: 2.5rem;
}

.project-page-subheading {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
}

.project-page-list,
.project-sources {
  margin: 0;
  padding-left: 1.1rem;
  max-width: 68ch;
  display: grid;
  gap: 0.6rem;
  line-height: 1.6;
}

.project-sources {
  font-size: 0.925rem;
  color: var(--color-muted);
}

.project-sources a,
.project-page-text a {
  color: var(--color-primary);
}

.project-page-facts {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.project-page-facts dl {
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.project-page-facts dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.project-page-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
}

@media (max-width: 960px) {
  .realizacje-row {
    grid-template-columns: 6rem minmax(0, 1fr);
  }

  .realizacje-cat {
    grid-column: 2;
  }

  .project-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .realizacje-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .realizacje-cat {
    grid-column: auto;
  }
}

/* Realizacja bez zdjęć: pas z liczbami i rysunkiem poglądowym kategorii.
   Ciemne tło w kolorze marki zastępuje zdjęcie i odróżnia stronę od listy. */
.project-plate {
  position: relative;
  background-color: var(--color-text);
  color: #fff;
  overflow: hidden;
}

.project-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.project-plate-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem 4rem;
  align-items: end;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.project-plate-figures {
  margin: 0 0 1rem;
  display: grid;
  gap: 1.5rem;
}

.project-plate-figures > div {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.project-plate-figures dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.project-plate-figures dd {
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}

.project-plate-num {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.project-plate-unit {
  font-size: 1.05rem;
  font-weight: 500;
}

.project-plate-note {
  flex-basis: 100%;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.project-plate-drawing {
  margin: 0;
}

.project-plate-drawing img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.88;
}

/* Inne realizacje z tej samej kategorii, na dole strony realizacji. */
.project-related {
  padding: 0 0 4.5rem;
}

.project-related-list .realizacje-row {
  grid-template-columns: 7rem minmax(0, 1fr);
}

.project-related-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  text-underline-offset: 3px;
}

.project-related-more:hover {
  color: var(--color-primary-dark);
}

.project-related-more:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .project-plate-figures {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }
}

@media (max-width: 960px) {
  .project-plate-inner {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .project-plate-drawing {
    order: -1;
    max-width: 32rem;
  }
}

@media (max-width: 767px) {
  .project-plate-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }

  .project-related-list .realizacje-row {
    grid-template-columns: 1fr;
  }
}

/* Oferta: usługi jako siatka ikon z podpisami na początku strony. */
.ofr-services {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.ofr-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ofr-services-grid li {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  gap: 0.5rem;
  padding: 2rem 0 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.ofr-services-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.ofr-services-grid h3 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
}

.ofr-services-grid p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ofr-services-extra {
  margin: 1.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.ofr-services-extra strong {
  color: var(--color-text);
  font-weight: 600;
}

.ofr-services-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.ofr-services-actions .button {
  min-height: 46px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
}

.ofr-btn-dark {
  background: var(--color-text);
  color: #ffffff;
}

.ofr-btn-dark:hover,
.ofr-btn-dark:focus-visible {
  background: var(--color-primary);
}

.ofr-btn-ghost {
  border-color: var(--color-border);
  background: transparent;
  color: var(--color-text);
}

.ofr-btn-ghost:hover,
.ofr-btn-ghost:focus-visible {
  border-color: var(--color-text);
}

.ofr-services-actions .button:active {
  transform: translateY(1px);
}

.page-offer-v2 .ofr-sector:first-of-type {
  border-top: 1px solid var(--color-border);
}

@media (max-width: 960px) {
  .ofr-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ofr-services-grid {
    grid-template-columns: 1fr;
  }

  .ofr-services-actions {
    justify-content: flex-start;
  }
}

/* Oferta: nagłówek strony w stylu O nas i Konsorcjum, nad siatką usług. */
.ofr-services {
  padding-top: 0;
}

.ofr-services-intro {
  padding-inline: 0;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* Realizacje: nagłówki w stylu O nas i Konsorcjum (Playfair, linia przy tytułach sekcji). */
.page-realizacje-list .realizacje-intro {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.page-realizacje-list .realizacje-intro h1 {
  max-width: 22ch;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.page-realizacje-list .realizacje-lead {
  max-width: 56ch;
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.page-realizacje-list .realizacje-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
}

.page-realizacje-list .realizacje-heading::before {
  content: "";
  flex: 0 0 48px;
  height: 1px;
  margin-top: 0.575em;
  background: var(--color-text);
}

@media (max-width: 768px) {
  .page-realizacje-list .realizacje-heading {
    font-size: 28px;
  }

  .page-realizacje-list .realizacje-heading::before {
    flex-basis: 32px;
  }
}

/* Oferta: siatka usług wyśrodkowana. */
.ofr-services-grid li {
  justify-items: center;
  text-align: center;
}

.ofr-services-grid p {
  max-width: 32ch;
}

.ofr-services-extra {
  max-width: 70ch;
  margin-inline: auto;
  text-align: center;
}

/* Realizacje, lista „Wszystkie realizacje”: zakładki tekstowe zamiast pigułek,
   status zwykłym tekstem zamiast czerwonych wersalików. */
.page-realizacje-list .realizacje-filters {
  gap: 0.25rem 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.page-realizacje-list .realizacje-filter {
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-realizacje-list .realizacje-filter span {
  margin-left: 0.15rem;
  color: inherit;
  font-size: 0.75rem;
  opacity: 0.7;
  vertical-align: super;
}

.page-realizacje-list .realizacje-filter:hover {
  color: var(--color-text);
  border-color: transparent;
}

.page-realizacje-list .realizacje-filter[aria-pressed="true"] {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}

.page-realizacje-list .realizacje-filter[aria-pressed="true"] span {
  color: inherit;
}

/* Licznik zostaje dla czytników ekranu (aria-live), wizualnie ukryty. */
.page-realizacje-list .realizacje-count {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-realizacje-list .realizacje-list {
  margin-top: 0.5rem;
  border-top: 0;
}

.page-realizacje-list .realizacje-row {
  grid-template-columns: 6.5rem minmax(0, 1fr) 13rem;
  gap: 2rem;
  padding: 1.35rem 0;
}

.page-realizacje-list .realizacje-link {
  font-size: 1.02rem;
}

.page-realizacje-list .realizacje-cat {
  gap: 0.35rem;
  font-size: 0.85rem;
}

.page-realizacje-list .realizacje-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.page-realizacje-list .realizacje-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

@media (max-width: 960px) {
  .page-realizacje-list .realizacje-row {
    grid-template-columns: 6rem minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .page-realizacje-list .realizacje-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .page-realizacje-list .realizacje-filters {
    gap: 0.25rem 1.25rem;
  }
}

/* Strona główna, „Wybrane realizacje”: pięć zdjęć, pierwsze duże po lewej (2×2). */
main#top.v2 .projects-mosaic {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 18vw, 260px);
}

main#top.v2 .projects-mosaic .mosaic-card {
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
}

main#top.v2 .projects-mosaic .mosaic-card-lead {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 860px) {
  main#top.v2 .projects-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  main#top.v2 .projects-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  main#top.v2 .projects-mosaic .mosaic-card-lead {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Realizacje, „Wybrane realizacje”: pierwsze zdjęcie duże po lewej (2×2), cztery pozostałe 2×2 po prawej. */
.realizacje-featured .portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(200px, 19vw, 300px);
  gap: 8px;
}

.realizacje-featured .portfolio-card {
  aspect-ratio: auto;
}

.realizacje-featured .portfolio-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 767px) {
  .realizacje-featured .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 200px;
  }
}

/* Najechanie jak w „Wybranych realizacjach” na stronie głównej: lekkie przyciemnienie,
   ciemny pas od dołu i podpis wersalikami. Na ekranach dotykowych podpis widać od razu. */
.realizacje-featured .portfolio-card a::before,
.realizacje-featured .portfolio-card a::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.realizacje-featured .portfolio-card a::before {
  inset: 0;
  background: rgba(10, 15, 28, 0);
  transition: background 220ms ease;
}

.realizacje-featured .portfolio-card a::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.68) 0%, rgba(15, 23, 42, 0) 100%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.realizacje-featured .portfolio-image {
  filter: saturate(0.95) contrast(1.02);
  transition: filter 240ms ease;
}

.realizacje-featured .portfolio-label {
  z-index: 2;
  justify-content: center;
  padding: 12px;
  background: transparent;
  opacity: 0;
  transition: opacity 200ms ease;
}

.realizacje-featured .portfolio-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
}

.realizacje-featured .portfolio-card a:hover::before,
.realizacje-featured .portfolio-card a:focus-visible::before {
  background: rgba(10, 15, 28, 0.16);
}

.realizacje-featured .portfolio-card a:hover::after,
.realizacje-featured .portfolio-card a:focus-visible::after,
.realizacje-featured .portfolio-card a:hover .portfolio-label,
.realizacje-featured .portfolio-card a:focus-visible .portfolio-label {
  opacity: 1;
}

.realizacje-featured .portfolio-card a:hover .portfolio-image,
.realizacje-featured .portfolio-card a:focus-visible .portfolio-image {
  filter: saturate(0.92) contrast(1.02) brightness(0.9);
}

@media (hover: none) {
  .realizacje-featured .portfolio-card a::after,
  .realizacje-featured .portfolio-label {
    opacity: 1;
  }
}

/* Realizacje, „Wszystkie realizacje”: kategorie jako pionowa lista po lewej (przyklejona),
   lista realizacji po prawej. Status zwykłym tekstem, bez kropki. */
@media (min-width: 961px) {
  .page-realizacje-list .realizacje-all .container {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .page-realizacje-list .realizacje-all .realizacje-heading {
    grid-column: 1 / -1;
  }

  .page-realizacje-list .realizacje-filters {
    grid-column: 1;
    grid-row: 2 / span 2;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    display: grid;
    gap: 0;
    padding: 0;
    border-bottom: 0;
    border-top: 1px solid var(--color-text);
  }

  .page-realizacje-list .realizacje-list {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    border-top: 1px solid var(--color-text);
  }
}

.page-realizacje-list .realizacje-filter {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: left;
}

.page-realizacje-list .realizacje-filter span {
  margin: 0;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  vertical-align: baseline;
  opacity: 1;
}

.page-realizacje-list .realizacje-filter:hover {
  color: var(--color-text);
  border-color: var(--color-border);
}

.page-realizacje-list .realizacje-filter[aria-pressed="true"] {
  border-color: var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
}

.page-realizacje-list .realizacje-row:first-child {
  padding-top: 1.35rem;
}

.page-realizacje-list .realizacje-status {
  color: var(--color-primary);
  font-weight: 500;
}

.page-realizacje-list .realizacje-status::before {
  display: none;
}

/* Na węższych ekranach kategorie przewijane poziomo w jednym rzędzie. */
@media (max-width: 960px) {
  .page-realizacje-list .realizacje-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0;
    border-bottom: 1px solid var(--color-border);
    scrollbar-width: none;
  }

  .page-realizacje-list .realizacje-filters::-webkit-scrollbar {
    display: none;
  }

  .page-realizacje-list .realizacje-filter {
    flex: 0 0 auto;
    width: auto;
    gap: 0.35rem;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .page-realizacje-list .realizacje-filter[aria-pressed="true"] {
    border-color: var(--color-primary);
  }
}

/* Realizacje, lista: daty przeniesione do prawej kolumny, nad kategorią. */
.page-realizacje-list .realizacje-row {
  grid-template-columns: minmax(0, 1fr) 13rem;
  grid-template-rows: auto auto;
  column-gap: 2rem;
  row-gap: 0.2rem;
  align-items: start;
}

.page-realizacje-list .realizacje-main {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.page-realizacje-list .realizacje-years {
  grid-column: 2;
  grid-row: 1;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
}

.page-realizacje-list .realizacje-years:empty {
  display: none;
}

.page-realizacje-list .realizacje-cat {
  grid-column: 2;
  grid-row: 2;
}

.page-realizacje-list .realizacje-years:empty + .realizacje-main + .realizacje-cat {
  grid-row: 1;
}

@media (max-width: 767px) {
  .page-realizacje-list .realizacje-row {
    grid-template-columns: 1fr;
    row-gap: 0.35rem;
  }

  .page-realizacje-list .realizacje-main,
  .page-realizacje-list .realizacje-years,
  .page-realizacje-list .realizacje-cat {
    grid-column: 1;
    grid-row: auto;
  }

  .page-realizacje-list .realizacje-main {
    order: -1;
  }
}

/* Realizacje: lista kategorii przewija się razem ze stroną (bez przyklejenia). */
.page-realizacje-list .realizacje-filters {
  position: static;
}

/* Oferta: po usunięciu „Zakres” zostaje jedna kolumna z realizacjami. */
.page-offer-v2 .ofr-sector-cols {
  grid-template-columns: 1fr;
}

/* Dla podwykonawców, wersja 4: układ jak siatka usług na stronie Oferta. */
.page-pw .ofr-services {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-pw .ofr-services-extra + .ofr-services-extra {
  margin-top: 0.5rem;
}

/* Dla podwykonawców: 12 obszarów w czterech kolumnach. */
.page-pw .ofr-services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .page-pw .ofr-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .page-pw .ofr-services-grid {
    grid-template-columns: 1fr;
  }
}

/* Dla podwykonawców: dół strony w dwóch kolumnach, warunki i kontakt. */
.pw-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.pw-bottom h2 {
  margin: 0 0 1rem;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
}

.pw-bottom ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pw-bottom li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.95rem;
}

.pw-bottom li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.pw-bottom p {
  max-width: 46ch;
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.pw-bottom-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

.pw-bottom-contact a {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

.pw-bottom-contact a:hover,
.pw-bottom-contact a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pw-bottom .button {
  min-height: 44px;
  margin-top: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
}

@media (max-width: 767px) {
  .pw-bottom {
    grid-template-columns: 1fr;
  }
}

/* ---- Oferty pracy: lista ogłoszeń w wierszach z liniami, bez kart i cieni ---- */
main.page-jobs-v2 > .section {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

main.page-jobs-v2 > .section:nth-of-type(odd) {
  background: transparent;
}

.page-jobs-v2 .jobs-section-heading h2 {
  margin: 0 0 0.5rem;
}

.page-jobs-v2 .jobs-results-meta p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.page-jobs-v2 .jobs-list {
  gap: 0;
  border-top: 1px solid var(--color-text);
}

.page-jobs-v2 .job-card {
  padding: 1.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-jobs-v2 .job-card-header {
  align-items: center;
}

.page-jobs-v2 .job-card.is-expanded .job-card-header {
  border-bottom: 0;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.page-jobs-v2 .job-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.page-jobs-v2 .job-card-header h3 {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
}

.page-jobs-v2 .job-meta-chips {
  display: block;
  flex-basis: 100%;
}

.page-jobs-v2 .job-location {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.page-jobs-v2 .job-toggle {
  height: auto;
  padding: 0.5rem 0;
}

.page-jobs-v2 .job-toggle:hover,
.page-jobs-v2 .job-toggle:focus-visible {
  transform: none;
}

.page-jobs-v2 .job-toggle-text {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.page-jobs-v2 .job-toggle:hover .job-toggle-text,
.page-jobs-v2 .job-toggle:focus-visible .job-toggle-text {
  color: var(--color-primary);
}

.page-jobs-v2 .job-summary {
  max-width: 68ch;
  margin: 0;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-jobs-v2 .job-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-top: 1rem;
}

.page-jobs-v2 .job-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.page-jobs-v2 .job-panel h4 {
  margin: 0 0 0.75rem;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-jobs-v2 .job-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.page-jobs-v2 .job-list li + li {
  margin-top: 0.35rem;
}

.page-jobs-v2 .job-card-actions .job-link {
  width: auto;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border: 0;
  background: var(--color-text);
  font-weight: 500;
}

.page-jobs-v2 .job-card-actions .job-link:hover,
.page-jobs-v2 .job-card-actions .job-link:focus-visible {
  background: var(--color-primary);
  transform: none;
}

.page-jobs-v2 .job-card-actions .job-link:active {
  transform: translateY(1px);
}

.jobs-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
}

.jobs-info-v2 .title-rule {
  margin: 0 0 1.25rem;
}

.jobs-steps-v2 {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--color-text);
}

.jobs-steps-v2 li {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  counter-increment: step;
}

.jobs-steps-v2 li::before {
  content: counter(step) ".";
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.jobs-info-note {
  margin: 0 0 0.75rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

.jobs-info-consent {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .page-jobs-v2 .job-card-grid,
  .jobs-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .page-jobs-v2 .job-card-header {
    grid-template-columns: 1fr;
  }

  .page-jobs-v2 .job-toggle {
    justify-self: start;
  }
}

/* Formularz aplikacyjny: nad nagłówkiem strony, mniejszy, pola w dwóch kolumnach. */
.apply-modal {
  z-index: 60;
}

.apply-modal-dialog {
  width: min(calc(100% - 1.5rem), 640px);
  max-height: calc(100dvh - 3rem);
  margin: 1.5rem auto;
  padding: 1.75rem;
  border-radius: 6px;
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.35);
}

.apply-modal-close {
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--color-muted);
  font-size: 1.35rem;
}

.apply-modal-close:hover,
.apply-modal-close:focus-visible {
  color: var(--color-text);
}

.apply-modal-copy {
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.apply-modal-copy h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0;
}

.apply-modal-copy p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.apply-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.apply-form label {
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.apply-form input[readonly] {
  border-color: transparent;
  background: var(--color-surface);
}

.apply-form input[type="file"] {
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
}

.apply-form label:has(textarea),
.apply-form label:has(input[type="file"]),
.apply-form .apply-locations,
.apply-form .apply-consent,
.apply-form .apply-note,
.apply-form button {
  grid-column: 1 / -1;
}

.apply-locations {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.apply-locations legend {
  margin-bottom: 0.4rem;
  padding: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.apply-locations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.apply-form .apply-locations-list label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}

.apply-form .apply-locations-list input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}

.apply-form textarea {
  min-height: 0;
  resize: vertical;
}

.apply-form .apply-consent {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
}

.apply-form .apply-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.apply-form button {
  justify-self: start;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: var(--color-text);
  font-weight: 500;
}

.apply-form button:hover,
.apply-form button:focus-visible {
  background: var(--color-primary);
}

@media (max-width: 600px) {
  .apply-form {
    grid-template-columns: 1fr;
  }
}

/* Strona główna, realizacje w toku: cały wiersz prowadzi do podstrony realizacji. */
.v2-build-row {
  position: relative;
}

.v2-build-link {
  color: inherit;
  text-decoration: none;
}

.v2-build-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.v2-build-row:has(.v2-build-link):hover .v2-build-link,
.v2-build-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.v2-build-link:focus-visible {
  outline: none;
}

.v2-build-row:has(.v2-build-link:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Strona główna, hero: przyciemnienie przechodzące od prawej (pod tekstem) do lewej.
   Wyjątek od zasady „bez gradientów” na prośbę klienta, dla czytelności tekstu. */
main#top .hero-split-media::after {
  background: linear-gradient(
    to left,
    rgba(15, 23, 42, 0.78) 0%,
    rgba(15, 23, 42, 0.45) 40%,
    rgba(15, 23, 42, 0.08) 75%
  );
}

/* ---- Kontakt: dane biura po lewej, formularz po prawej, mapa pod spodem ---- */
.contact-v2 {
  padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.contact-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-v2-info h1 {
  margin: 0 0 1.75rem;
  color: var(--color-text);
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
}

.contact-v2-info address {
  margin: 0 0 1.5rem;
  color: var(--color-text);
  font-style: normal;
  line-height: 1.7;
}

.contact-v2-info address strong {
  display: block;
  font-weight: 600;
}

.contact-v2-lines {
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--color-border);
}

.contact-v2-lines > div {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-v2-lines dt {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.contact-v2-lines dd {
  margin: 0;
  color: var(--color-text);
}

.contact-v2-lines a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}

.contact-v2-lines a:hover,
.contact-v2-lines a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-v2-registry {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-v2-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.contact-v2-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-v2-wide {
  grid-column: 1 / -1;
}

.contact-v2-form input:not([type="checkbox"]),
.contact-v2-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
}

.contact-v2-form textarea {
  resize: vertical;
}

.contact-v2-form input:focus-visible,
.contact-v2-form textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.contact-v2-form .contact-v2-consent {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.55;
}

.contact-v2-consent input {
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
}

.contact-v2-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.contact-v2-submit {
  justify-self: start;
  min-height: 46px;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-text);
  color: #ffffff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-v2-submit:hover,
.contact-v2-submit:focus-visible {
  background: var(--color-primary);
}

.contact-v2-submit:active {
  transform: translateY(1px);
}

.contact-v2-map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 40vw, 460px);
  border: 0;
}

@media (max-width: 860px) {
  .contact-v2-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-v2-form {
    grid-template-columns: 1fr;
  }
}

/* Oferty pracy: zdjęcie zespołu obok wstępu, przycięte skośnie z lewej (trapez prostokątny). */
/* Oferty pracy: zdjęcie z placu budowy na całą szerokość, tekst po lewej.
   Przyciemnienie od lewej, lustrzane do hero strony głównej (ten sam wyjątek od zasady „bez gradientów”). */
.hero-split--left {
  min-height: min(calc(100dvh - var(--header-h)), 640px);
}

.hero-split--left .hero-split-media img {
  object-position: 70% 50%;
}

.hero-split--left .hero-split-media::after {
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.8) 0%,
    rgba(15, 23, 42, 0.5) 40%,
    rgba(15, 23, 42, 0.08) 75%
  );
}

.hero-split--left .hero-split-panel {
  align-items: flex-start;
}

.hero-split--left .hero-split-copy {
  align-items: flex-start;
  width: min(100%, 30rem);
  text-align: left;
}

.v2 .hero-split--left h1 {
  max-width: 18ch;
  font-size: 44px;
}

@media (max-width: 1024px) {
  .v2 .hero-split--left h1 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .hero-split--left .hero-split-media::after {
    background: rgba(15, 23, 42, 0.6);
  }

  .v2 .hero-split--left h1 {
    font-size: 2rem;
  }
}

/* Polityka prywatności */
.legal-page {
  padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.legal-content {
  max-width: 72ch;
}

.legal-content h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 500;
}

.legal-content .legal-updated {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.legal-content h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
}

.legal-content p,
.legal-content ul {
  margin: 0 0 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content li + li {
  margin-top: 0.35rem;
}

.legal-content a,
.contact-v2-consent a,
.apply-consent a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover,
.legal-content a:focus-visible,
.contact-v2-consent a:hover,
.contact-v2-consent a:focus-visible,
.apply-consent a:hover,
.apply-consent a:focus-visible {
  color: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .legal-content h1 {
    font-size: 2rem;
  }
}

.legal-nowrap {
  white-space: nowrap;
}

/* ---- Ujednolicenie podstron ---- */
/* H1: Playfair 400 wszędzie. Strony realizacji i tekst prawny są o stopień mniejsze, bo mają długie tytuły. */
:root main h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:root main.page-project h1,
:root main.page-legal h1 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.15;
}

/* Śródtytuły w kolumnie tekstu, bez linii z title-rule. */
main.page-project .project-page-heading,
main.page-legal .legal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}

.contact-v2-submit {
  min-height: 46px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Bez okruszków tytuł zaczyna się na tej samej wysokości co na innych podstronach. */
.contact-v2,
.legal-page {
  padding-top: clamp(3rem, 7vw, 5rem);
}

/* Podpisy zdjęć: poziomo i bez wersalików, jak reszta tekstu na stronie. */
.portfolio-label {
  min-height: 0;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.62);
}

.portfolio-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  writing-mode: horizontal-tb;
  transform: none;
  white-space: normal;
}

/* H2 sekcji: ten sam rozmiar co title-rule, także bez linii. */
main.v2 #group-title,
.ofr-sector-copy h2 {
  font-size: 2rem;
  letter-spacing: 0;
}

/* Śródtytuły kolumn na stronie dla podwykonawców. */

.page-pw .pw-bottom h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
}

@media (max-width: 767px) {
  main.v2 #group-title,
  .ofr-sector-copy h2 {
    font-size: 1.75rem;
  }

  /* Zakres lat musi zmieścić się obok liczby miesięcy na 375px. */
  .project-plate-num {
    font-size: 1.75rem;
  }
}

/* Oferta bez zdjęć sektorów: jedna kolumna, wszystko do lewej (Podwykonawcy bez zmian). */
.page-offer-v2:not(.page-pw) .ofr-sector-grid {
  grid-template-columns: minmax(0, 1fr);
}

.page-offer-v2:not(.page-pw) .ofr-services-grid li {
  justify-items: start;
  text-align: left;
}

.page-offer-v2:not(.page-pw) .ofr-services-extra {
  margin-inline: 0;
  text-align: left;
}

.page-offer-v2:not(.page-pw) .ofr-services-actions {
  justify-content: flex-start;
}

/* Oferta: sekcje branżowe na białym tle z szarym rysunkiem kategorii
   (tym samym co w realizacjach bez zdjęć). Rysunek leży w tle i zachodzi pod tekst. */
.page-offer-v2:not(.page-pw) .ofr-sector {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.page-offer-v2:not(.page-pw) .ofr-sector + .ofr-sector {
  border-top: 1px solid var(--color-border);
}

/* Rysunki mają biały kontur; invert zmienia go na ciemny, opacity daje szary. */
.page-offer-v2:not(.page-pw) .ofr-sector-drawing {
  position: absolute;
  z-index: -1;
  right: max(1rem, calc((100% - var(--container)) / 2));
  bottom: 0;
  width: min(38rem, 56%);
  height: auto;
  filter: invert(1);
  opacity: 0.14;
  pointer-events: none;
}

.page-offer-v2:not(.page-pw) .ofr-sector-copy {
  max-width: 38rem;
}

.page-offer-v2:not(.page-pw) .ofr-sector-lead {
  margin-bottom: 0;
}

/* Na telefonie rysunek zasłaniałby tekst, więc go chowamy. */
@media (max-width: 767px) {
  .page-offer-v2:not(.page-pw) .ofr-sector-drawing {
    display: none;
  }
}

/* Oferta: link „Więcej” pod opisem sekcji branżowej. Leży poza przepływem
   (w dolnym odstępie sekcji), żeby nie zmieniał wysokości sekcji ani położenia rysunku. */
.page-offer-v2:not(.page-pw) .ofr-sector-copy {
  position: relative;
}

.ofr-sector-more {
  position: absolute;
  top: 100%;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

.ofr-sector-more::after {
  content: "→";
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ofr-sector-more:hover {
  color: var(--color-primary-dark);
}

.ofr-sector-more:hover::after {
  transform: translateX(3px);
}

.ofr-sector-more:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Na telefonie nie ma rysunku, więc link wraca do przepływu i nie wychodzi poza sekcję. */
@media (max-width: 767px) {
  .ofr-sector-more {
    position: static;
  }
}

/* Podstrona obszaru oferty: nagłówek z rysunkiem w tle i cztery realizacje ze zdjęciami. */
.area-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--color-border);
}

.area-intro-drawing {
  position: absolute;
  z-index: -1;
  right: max(1rem, calc((100% - var(--container)) / 2));
  bottom: 0;
  width: min(34rem, 48%);
  height: auto;
  filter: invert(1);
  opacity: 0.14;
  pointer-events: none;
}

.area-intro h1 {
  max-width: 22ch;
  margin: 0;
  color: var(--color-text);
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

.area-lead {
  max-width: 56ch;
  margin: 1.25rem 0 0;
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.area-projects {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.area-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
}

.area-heading::before {
  content: "";
  flex: 0 0 48px;
  height: 1px;
  margin-top: 0.575em;
  background: var(--color-text);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-card-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface-strong);
}

.area-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.area-card-meta {
  margin: 1rem 0 0.35rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.area-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.area-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.area-card h3 a:hover {
  color: var(--color-primary);
}

.area-card h3 a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.area-card-investor {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.area-all {
  display: inline-block;
  margin-top: 3rem;
}

@media (prefers-reduced-motion: no-preference) {
  .area-card-media img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .area-card:hover .area-card-media img {
    transform: scale(1.03);
  }
}

@media (max-width: 767px) {
  .area-intro-drawing {
    display: none;
  }

  .area-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .area-heading {
    font-size: 28px;
  }

  .area-heading::before {
    flex-basis: 32px;
  }
}

/* Nieparzysta liczba realizacji: pierwsza zajmuje cały wiersz, żeby ostatnia nie została sama. */
@media (min-width: 768px) {
  .area-card:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
  }

  .area-card:first-child:nth-last-child(odd) .area-card-media img {
    aspect-ratio: 21 / 9;
  }
}

/* Galeria pionowych zdjęć: główne zdjęcie prawie kwadratowe, miniatury obok,
   żeby pionowe kadry nie były przycinane do szerokiego paska. */
.project-gallery--portrait {
  grid-template-columns: minmax(0, 36rem) minmax(0, 1fr);
}

.project-gallery--portrait .project-gallery-main img {
  height: auto;
  aspect-ratio: 4 / 5;
}

.project-gallery--portrait .project-gallery-thumbs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-gallery--portrait .project-thumb {
  aspect-ratio: 4 / 5;
}

@media (max-width: 767px) {
  .project-gallery--portrait {
    grid-template-columns: 1fr;
  }

  .project-gallery--portrait .project-gallery-main img {
    aspect-ratio: 1 / 1;
  }

  .project-gallery--portrait .project-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Komunikat po wysłaniu formularza FormSubmit (site.js, initFormSubmit). */
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-status.is-error {
  border-left-color: var(--color-accent);
}

.form-status a {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

form[aria-busy="true"] button[type="submit"] {
  cursor: progress;
  opacity: 0.7;
}

/* O nas: tekst o firmie wyjustowany do obu krawędzi (na prośbę klienta).
   Dzielenie wyrazów ogranicza duże przerwy między słowami. */
main.page-about .v2-benefits-intro p,
main.page-about .v2-benefits-list p,
main.page-about .about-awards-text {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: wrap;
}
