/* QA polish: calmer typography and safer responsive layout */
.hero {
  min-height: 520px;
  height: min(660px, calc(100svh - 76px));
  max-height: 660px;
}

.hero:before {
  background:
    linear-gradient(90deg, rgba(16, 28, 24, .94), rgba(16, 28, 24, .76) 48%, rgba(16, 28, 24, .32)),
    linear-gradient(0deg, rgba(16, 28, 24, .48), rgba(16, 28, 24, 0));
}

.hero img {
  opacity: .82;
}

.hero-content {
  width: min(780px, 100%);
}

.eyebrow {
  margin-bottom: 22px;
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.45;
}

.eyebrow:before {
  flex: 0 0 48px;
}

h1 {
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero p {
  width: min(650px, 100%);
  font-size: 18px;
  line-height: 1.58;
}

.stat {
  min-height: 128px;
  padding: 30px 26px;
}

.stats-grid {
  grid-template-columns: minmax(170px, .9fr) minmax(170px, .9fr) minmax(320px, 1.35fr) minmax(280px, 1.25fr);
}

.stat strong {
  font-size: clamp(24px, 2.35vw, 33px);
  line-height: 1.05;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

section {
  padding: 76px 0;
}

.page-hero {
  padding: 58px 0 64px;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.page-hero p {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.65;
}

.section-head {
  margin-bottom: 46px;
}

.label {
  font-size: 11px;
  letter-spacing: .14em;
}

h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  text-wrap: balance;
}

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

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

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

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

.card {
  padding: 26px;
}

.card-top {
  margin-bottom: 22px;
}

.card h3 {
  font-size: 20px;
  line-height: 1.18;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.card p {
  line-height: 1.65;
}

a.card[href*="/produkty/"] {
  display: flex;
  min-height: 464px;
  flex-direction: column;
}

a.card[href*="/produkty/"] p {
  display: none;
}

a.card[href*="/produkty/"] .figure {
  width: 100%;
  margin-bottom: 20px;
}

a.card[href*="/produkty/"] h3 {
  margin-bottom: 22px;
}

a.card[href*="/produkty/"] .more {
  margin-top: auto;
}

.figure {
  margin: 18px 0 16px;
  background: var(--soft);
}

.figure img {
  object-fit: contain;
}

.product-media-slider {
  height: auto;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}

.product-media-slider:after {
  display: none;
}

.product-media-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--soft);
  overflow: hidden;
}

.product-media-open {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.product-media-open img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  transition: transform .28s ease;
}

.product-media-open:hover img {
  transform: scale(1.018);
}

.product-media-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 56px;
  border: 1px solid rgba(15, 39, 31, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font: 800 18px/1 var(--font);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease;
}

.product-media-arrow:hover {
  background: var(--green);
  color: #fff;
}

.product-media-prev {
  left: 14px;
}

.product-media-next {
  right: 14px;
}

.product-media-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  min-width: 76px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 39, 31, .14);
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  font-size: 11px;
  text-align: center;
}

.product-media-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82px;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.product-media-thumb {
  aspect-ratio: 4 / 3;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 4px;
  cursor: pointer;
  opacity: .68;
  transition: border-color .2s ease, opacity .2s ease;
}

.product-media-thumb:first-child {
  margin-left: 0;
}

.product-media-thumb.is-active,
.product-media-thumb:hover {
  border-color: var(--green);
  opacity: 1;
}

.product-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card:hover .figure img {
  transform: scale(1.025);
}

.split {
  gap: 58px;
}

.product-source-copy {
  display: grid;
  gap: 16px;
}

.product-source-copy .muted {
  margin: 0;
}

.product-source-heading {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.16;
  font-weight: 800;
  text-wrap: balance;
}

.plain-list,
.checks {
  gap: 12px;
}

.industry-inline-scope {
  margin: -2px 0 26px;
}

.industry-inline-scope li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.industry-inline-scope li:before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-top: .68em;
  border-radius: 50%;
  background: var(--ink);
}

.footer {
  padding: 72px 0 30px;
}

.footer-grid {
  gap: 48px;
  margin-bottom: 58px;
}

.product-gallery-section {
  display: none;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.product-gallery-section.is-product-source {
  display: none;
}

.industry-gallery-source {
  display: none;
}

.industry-extra {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.industry-source-copy {
  margin-bottom: 24px;
}

.industry-source-copy .muted {
  margin-bottom: 0;
}

.industry-source-title {
  max-width: 860px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  font-weight: 800;
}

.industry-source-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.industry-source-section--tight {
  padding-top: 44px;
}

.industry-source-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.industry-source-tech-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  padding: 26px;
}

.industry-source-tech-card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.industry-source-tech-card h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.industry-source-tech-card p,
.industry-source-list li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.industry-source-list {
  max-width: 620px;
  gap: 8px;
}

.industry-source-list li:before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-top: .72em;
  border-radius: 50%;
  background: var(--ink);
}

.industry-video-frame {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
  background: #050505;
}

.industry-video-frame img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: .82;
}

.industry-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
}

.industry-video-play:after {
  content: "";
  position: absolute;
  left: 30px;
  top: 23px;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid var(--ink);
}

.industry-extra .section-head {
  align-items: end;
}

.industry-process-grid,
.industry-tech-grid,
.industry-scope-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.industry-process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.industry-process-card,
.industry-tech-card,
.industry-scope-card {
  background: #fff;
  padding: 28px;
}

.industry-process-card h3,
.industry-tech-card h3,
.industry-scope-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.industry-reference-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

.industry-reference-table th,
.industry-reference-table td {
  padding: 16px;
  border: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
  line-height: 1.45;
}

.industry-reference-table th {
  color: var(--ink);
  font-weight: 800;
}

.technology-section {
  background: var(--paper);
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.technology-card {
  display: flex;
  min-height: 360px;
  min-width: 0;
  flex-direction: column;
  background: #fff;
  padding: 28px;
  transition: background .18s ease, transform .18s ease;
}

.technology-card:hover {
  background: #fbfdfb;
}

.technology-card-media {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.technology-card-media img {
  max-width: 78px;
  max-height: 78px;
  object-fit: contain;
}

.technology-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.14;
  font-weight: 800;
  text-wrap: balance;
}

.technology-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.technology-spec {
  display: grid;
  gap: 1px;
  margin: auto 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.technology-spec div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  background: #fff;
  padding: 12px 14px;
}

.technology-spec dt,
.technology-spec dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.technology-spec dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.technology-spec dd {
  color: var(--ink);
  font-weight: 800;
}

.source-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.source-section:nth-of-type(even) {
  background: #fff;
}

.source-copy {
  display: grid;
  gap: 15px;
}

.source-copy h2,
.source-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  font-weight: 800;
  text-wrap: balance;
}

.source-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.source-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-copy li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.source-copy li:before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-top: .72em;
  border-radius: 50%;
  background: var(--ink);
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.source-gallery {
  min-width: 0;
}

.source-gallery-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--soft);
  overflow: hidden;
}

.source-gallery-main {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.source-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.source-gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82px;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.source-gallery-thumbs a {
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--paper);
  opacity: .68;
  transition: border-color .2s ease, opacity .2s ease;
}

.source-gallery-thumbs a.is-active,
.source-gallery-thumbs a:hover {
  border-color: var(--green);
  opacity: 1;
}

.source-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-lead-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.split .reference-lead-grid {
  grid-template-columns: 1fr;
}

.reference-lead-card {
  background: #fff;
  padding: 28px;
}

.reference-lead-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.08;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.reference-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.reference-list-card {
  background: #fff;
  padding: 28px;
}

.reference-list-card h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 20px;
}

.reference-list-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-list-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.reference-list-card li:before {
  content: "- ";
  color: var(--ink);
}

.product-gallery-section .section-head {
  align-items: end;
}

.product-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: -12px 0 18px;
}

.product-gallery-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 800 18px/1 var(--font);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.product-gallery-arrow:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.product-gallery-count {
  min-width: 84px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.product-gallery-section.is-slider .product-gallery-grid {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.product-gallery-section.is-slider .product-gallery-grid::-webkit-scrollbar {
  display: none;
}

.product-gallery-item {
  min-width: 0;
  margin: 0;
  background: var(--paper);
}

.product-gallery-section.is-slider .product-gallery-item {
  flex: 0 0 calc((100% - 3px) / 4);
  scroll-snap-align: start;
}

.product-gallery-item a {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--soft);
  overflow: hidden;
  cursor: zoom-in;
}

.product-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .28s ease;
}

.product-gallery-item:hover img {
  transform: scale(1.025);
}

.product-gallery-item figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.has-open-lightbox {
  overflow: hidden;
}

.eco-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-columns: minmax(52px, 1fr) minmax(0, 1180px) minmax(52px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: rgba(6, 15, 12, .88);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

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

.eco-lightbox-frame {
  grid-column: 2;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.eco-lightbox-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 116px);
  object-fit: contain;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.eco-lightbox-frame figcaption {
  max-width: 760px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.eco-lightbox-close,
.eco-lightbox-nav {
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.eco-lightbox-close:hover,
.eco-lightbox-nav:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

.eco-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.eco-lightbox-nav {
  width: 52px;
  height: 72px;
  border-radius: 999px;
  font-size: 26px;
  font-weight: 800;
}

.eco-lightbox-prev {
  justify-self: end;
}

.eco-lightbox-next {
  justify-self: start;
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .button {
    padding: 0 16px;
  }
}

@media (max-width: 1050px) {
  .cols-2,
  .cols-3,
  .cols-4,
  .cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .product-gallery-section.is-slider .product-gallery-item {
    flex-basis: calc((100% - 1px) / 2);
  }

  .industry-process-grid,
  .industry-tech-grid,
  .industry-scope-grid,
  .industry-source-tech-grid,
  .technology-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 34px;
  }

  .nav .button {
    width: auto;
    min-height: 40px;
    padding: 0 13px;
    font-size: 10px;
    letter-spacing: .08em;
  }

  .hero {
    min-height: 0;
    height: auto;
    padding: 64px 0 58px;
  }

  .hero:before {
    background: rgba(16, 28, 24, .78);
  }

  .eyebrow {
    gap: 10px;
    font-size: 10px;
    letter-spacing: .14em;
  }

  .eyebrow:before {
    width: 36px;
    flex-basis: 36px;
  }

  h1 {
    font-size: clamp(31px, 9.4vw, 38px);
    line-height: 1.03;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.55;
  }

  .page-hero {
    padding: 48px 0 54px;
  }

  .page-hero h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.08;
  }

  .page-hero p {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .cols-2,
  .cols-3,
  .cols-4,
  .cols-5 {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 104px;
    padding: 24px 22px;
  }

  .stat strong {
    white-space: normal;
  }

  section {
    padding: 58px 0;
  }

  .card {
    padding: 22px;
  }

  .card h3 {
    font-size: 19px;
  }

  .technology-card {
    min-height: 0;
    padding: 22px;
  }

  .technology-card h3 {
    font-size: 19px;
  }

  .reference-lead-grid,
  .reference-list-grid {
    grid-template-columns: 1fr;
  }

  .source-actions {
    display: grid;
  }

  .technology-spec div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .split {
    gap: 34px;
  }

  .product-media-arrow {
    width: 38px;
    height: 50px;
  }

  .product-media-prev {
    left: 8px;
  }

  .product-media-next {
    right: 8px;
  }

  .product-media-thumbs {
    grid-auto-columns: 72px;
  }

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

  .product-gallery-controls {
    justify-content: space-between;
    margin-top: 0;
  }

.product-gallery-section.is-slider .product-gallery-item {
    flex-basis: 86%;
  }

  .eco-lightbox {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 8px;
    padding: 18px 10px;
  }

  .eco-lightbox-frame img {
    max-height: calc(100vh - 120px);
  }

  .eco-lightbox-nav {
    width: 42px;
    height: 58px;
  }

}

.home-effect-card {
  position: relative;
  padding: 28px 0 0 28px;
}

.home-award {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid rgba(22, 36, 29, .12);
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(241,247,244,.92));
  box-shadow: 0 18px 50px rgba(16, 28, 24, .08);
}

.home-award img {
  width: 118px;
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(32, 28, 16, .18));
}

.home-award span {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-award strong {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.08;
}

@media (max-width: 640px) {
  .home-effect-card {
    padding-left: 20px;
  }

  .home-award {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .home-award img {
    width: 86px;
  }
}
