* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: #10292b;
  color: #f1f6ee;
  font:
    16px/1.55 "Instrument Sans",
    Arial,
    sans-serif;
}
a,
summary,
button {
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #44bfa5;
  outline-offset: 4px;
}
button {
  background: transparent;
  border: 0;
}
.wrap {
  width: min(90%, 1320px);
  margin: auto;
}
.bar,
nav,
.actions,
figcaption,
.switch,
.viewerHead {
  display: flex;
  align-items: center;
}
.bar {
  justify-content: space-between;
  gap: 20px;
}
header {
  position: sticky;
  top: 0;
  background: #0d2224;
  z-index: 10;
  border-bottom: 1px solid #385051;
}
.bar {
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 23px;
  letter-spacing: -1.3px;
  font-weight: 800;
}
.brand span {
  font-weight: 400;
  color: #b5d4cd;
}
.brand i {
  width: 34px;
  height: 28px;
  display: inline-block;
  margin-right: 11px;
  background: repeating-linear-gradient(125deg, transparent 0 4px, #b3e9bc 5px 9px, transparent 10px 12px);
  clip-path: polygon(34% 0, 100% 0, 66% 100%, 0 100%);
}
nav {
  gap: 32px;
  font-size: 15px;
}
nav details {
  position: relative;
}
nav summary {
  list-style: none;
}
nav summary:after {
  content: "⌄";
  padding-left: 8px;
  color: #b2d9c6;
}
nav details > div {
  position: absolute;
  top: 35px;
  min-width: 220px;
  max-height: 65vh;
  overflow: auto;
  background: #173738;
  border: 1px solid #48615a;
  padding: 8px;
}
nav details a {
  display: block;
  padding: 7px 12px;
}
nav a:hover,
summary:hover {
  color: #86bba5;
}
.toplink,
.ghost,
.primary {
  border: 1px solid #668781;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
}
.toplink {
  padding: 8px 18px;
}
#toggle {
  display: none;
}
section {
  padding: 80px 0;
}
.hero {
  background: radial-gradient(ellipse at 75% 45%, #214549, #102a2d 65%, #10292b);
  padding: 65px 0 70px;
}
.heroGrid {
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  align-items: center;
  gap: 6%;
}
small {
  display: block;
  font:
    600 12px/1.4 "IBM Plex Mono",
    monospace;
  letter-spacing: 2px;
  color: #b7e1be;
}
.lead small:before,
section > .wrap > small:before,
.ctaInner small:before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 12px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1 {
  font-size: clamp(55px, 6.2vw, 100px);
  line-height: 0.97;
  letter-spacing: -0.045em;
  font-weight: 550;
  margin: 25px 0 20px;
}
h1 span {
  color: #b1dfad;
}
.sub {
  font-size: clamp(21px, 2.2vw, 34px);
  line-height: 1.15;
  color: #b6d9cd;
  letter-spacing: -0.02em;
}
.intro,
.desc,
.steps p,
.twocol p {
  color: #c3d1ce;
}
.intro {
  max-width: 510px;
  margin: 20px 0 27px;
}
.actions {
  gap: 12px;
  flex-wrap: wrap;
}
.primary {
  background: #c4ebad;
  color: #18332e;
  border-color: #c4ebad;
}
.primary:hover,
.ghost:hover,
.toplink:hover {
  filter: brightness(0.9);
  background: #b8d7bf;
  color: #18332e;
}
.viewer {
  border: 1px solid #55716c;
  border-radius: 8px;
  overflow: hidden;
  background: #191b1a;
  box-shadow: 0 20px 60px #0715163b;
}
.viewerHead,
figcaption {
  justify-content: space-between;
  padding: 13px 20px;
  background: #193132;
}
.viewerHead {
  font:
    600 12px "IBM Plex Mono",
    monospace;
  letter-spacing: 1.6px;
  border-bottom: 1px solid #405754;
}
.picture {
  position: relative;
  background: #1b1b1b;
}
.picture:after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #77958d44;
  pointer-events: none;
  clip-path: polygon(
    0 0,
    5% 0,
    5% 1%,
    1% 1%,
    1% 5%,
    0 5%,
    0 0,
    100% 0,
    100% 5%,
    99% 5%,
    99% 1%,
    95% 1%,
    95% 0,
    100% 0,
    100% 100%,
    95% 100%,
    95% 99%,
    99% 99%,
    99% 95%,
    100% 95%,
    100% 100%,
    0 100%,
    0 95%,
    1% 95%,
    1% 99%,
    5% 99%,
    5% 100%,
    0 100%
  );
}
.picture img {
  display: block;
  width: 100%;
  height: clamp(245px, 24vw, 360px);
  object-fit: contain;
}
figcaption {
  border-top: 1px solid #405754;
}
figcaption small {
  font-size: 11px;
}
figcaption strong {
  font-size: 18px;
  font-weight: 500;
}
.switch {
  gap: 6px;
}
.switch button {
  font-size: 25px;
  line-height: 1;
  border: 1px solid #65807a;
  width: 36px;
  height: 36px;
  border-radius: 3px;
}
.light {
  background: #f0f4ef;
  color: #183536;
}
.light small {
  color: #487568;
}
h2 {
  font-size: clamp(35px, 4vw, 62px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 550;
  margin: 16px 0 32px;
}
h3 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.cards,
.steps,
.twocol {
  display: grid;
  gap: 18px;
}
.cards {
  grid-template-columns: repeat(4, 1fr);
}
.cards article {
  border: 1px solid #bfcec4;
  background: #fafcf8;
  padding: 25px;
  border-radius: 4px;
}
.icon {
  width: 38px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #357569;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 25px;
}
.twocol {
  grid-template-columns: 1fr 1fr;
  margin-top: 42px;
  gap: 6%;
}
.twocol article,
.steps article {
  border-top: 1px solid #64847d;
  padding-top: 22px;
}
.light p {
  color: #445e56;
}
.desc {
  max-width: 780px;
  font-size: 18px;
}
.steps {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
}
.caseBody {
  padding: 2px 8px 22px;
}
.caseBody p {
  max-width: 760px;
}
.caseBody img {
  width: auto;
  max-width: 100%;
  height: 210px;
  object-fit: contain;
  margin: 16px 8px 0 0;
}
.caseBody a:focus-visible {
  display: inline-block;
}
footer {
  border-top: 1px solid #4a6361;
}
footer a {
  font-size: 14px;
}
@media (max-width: 800px) {
  .bar {
    min-height: 64px;
  }
  .toplink {
    display: none;
  }
  #toggle {
    display: block;
    border: 1px solid #67837a;
    padding: 5px 12px;
    border-radius: 4px;
  }
  nav {
    display: none;
  }
  nav.open {
    display: grid;
    position: absolute;
    background: #143234;
    top: 64px;
    left: 0;
    right: 0;
    padding: 20px 5%;
    gap: 18px;
    max-height: 80vh;
    overflow: auto;
  }
  nav details > div {
    position: static;
    max-height: 40vh;
  }
  .heroGrid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero,
  section {
    padding: 45px 0;
  }
  .cards,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .wide {
    display: none;
  }
  .picture img {
    height: 280px;
  }
}
@media (max-width: 530px) {
  .cards,
  .steps,
  .twocol {
    grid-template-columns: 1fr;
  }
  .twocol {
    gap: 25px;
  }
  .case summary {
    font-size: 17px;
  }
  .actions a {
    padding: 10px 13px;
  }
  .picture img {
    height: 215px;
  }
  .cards article {
    padding: 19px;
  }
  .icon {
    margin-bottom: 10px;
  }
}
body {
  background: #deefea;
  color: #123e40;
}
header {
  background: #f4faf7;
  border-color: #b8d8ce;
}
.brand span {
  color: #277367;
}
.brand i {
  background: repeating-linear-gradient(125deg, transparent 0 4px, #267c67 5px 9px, transparent 10px 12px);
}
.hero {
  background: linear-gradient(110deg, #e3f4da 0%, #d9f0e6 50%, #b8dedd 100%);
}
h1 span {
  color: #348d78;
}
.sub {
  color: #346962;
}
.intro,
.desc,
.steps p,
.twocol p {
  color: #365c59;
}
small,
.light small {
  color: #286d60;
}
.light {
  background: #f6faf5;
}
.primary {
  background: #216959;
  color: #fff;
  border-color: #216959;
}
.ghost,
.toplink {
  border-color: #78a396;
}
.viewer {
  color: #f4faf7;
}
.viewer small {
  color: #b7e1be;
}
nav details > div,
nav.open {
  background: #f2faf6;
  border-color: #aacbbd;
}
nav summary:after {
  color: #3d7169;
}
nav a:hover,
summary:hover {
  color: #1c6953;
  text-decoration: underline;
}
.contact {
  background: linear-gradient(115deg, #edf7df, #d4efea);
}
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 34px 0 16px;
}
.people article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: #fbfdf9;
  border: 1px solid #b9d3c9;
}
.people img {
  width: 140px;
  aspect-ratio: 4/5;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 30%;
}
.people article > div {
  padding: 0;
}
.people h3 {
  font-size: 30px;
  margin: 9px 0;
}
.people p {
  color: #395d59;
}
.note {
  font-size: 13px;
  color: #47695e;
}
footer {
  background: #c7e5dc;
  border-color: #a2c9bf;
}
@media (max-width: 650px) {
  .people {
    grid-template-columns: 1fr;
  }
  .people article {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }
  .people img {
    width: 96px;
  }
}
.tech {
  align-self: start;
  border: 1px solid #b7d1c6;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.tech summary {
  list-style: none;
  display: block;
  position: relative;
}
.tech summary::-webkit-details-marker {
  display: none;
}
.tech summary img {
  width: 100%;
  display: block;
  aspect-ratio: 1.9;
  object-fit: cover;
}
.tileText {
  display: grid;
  padding: 15px 45px 17px 18px;
  color: #375850;
}
.tileText strong {
  font-size: 26px;
  line-height: 1.25;
  color: #163e37;
}
.tech summary:after {
  content: "+";
  position: absolute;
  bottom: 24px;
  right: 16px;
  border: 1px solid #9fbfb2;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  text-align: center;
  line-height: 25px;
  color: #205d4e;
}
.tech[open] {
  grid-column: 1/-1;
}
.tech[open] summary {
  display: flex;
  align-items: center;
  background: #dfefe5;
}
.tech[open] summary img {
  width: clamp(110px, 21%, 225px);
  height: 110px;
}
.tech[open] summary:after {
  content: "−";
  bottom: 40%;
}
.techBody {
  padding: clamp(15px, 3vw, 40px);
}
.techBody > p:first-child {
  max-width: 85ch;
  font-size: 18px;
}
.techBody > small {
  letter-spacing: 0;
  font:
    13px/1.5 "Instrument Sans",
    Arial,
    sans-serif;
  margin-top: 12px;
}
.techData {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.tech h4 {
  font-size: 20px;
  margin: 22px 0 12px;
  line-height: 1.25;
}
.tech table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.tech th,
.tech td {
  padding: 9px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #cbded3;
}
.tech th {
  background: #e8f3ee;
}
.measure {
  display: grid;
  grid-template-columns: minmax(90px, 1.4fr) 2fr 70px;
  gap: 7px;
  align-items: center;
  margin: 9px 0;
  font-size: 14px;
}
.measure i {
  background: #edf4ef;
  height: 11px;
}
.measure b {
  display: block;
  background: #458675;
  height: 100%;
}
.tech figure p,
.techRefs {
  margin-top: 15px;
  font-size: 14px;
}
.techRefs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tech summary:focus-visible {
  outline-offset: -3px;
}
@media (max-width: 850px) {
  .techData {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
@media (max-width: 530px) {
  .tech th,
  .tech td {
    padding: 5px;
    font-size: 14px;
  }
  .tech[open] summary img {
    width: 85px;
  }
  .tech[open] .tileText {
    padding-left: 12px;
  }
}
.trace-guide {
  margin-top: 38px;
  border-top: 1px solid #9dbdb1;
}
.trace-guide details {
  border-bottom: 1px solid #9dbdb1;
}
.trace-guide summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
  font-weight: 600;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.25;
  padding: 19px 4px;
}
.trace-guide summary::-webkit-details-marker {
  display: none;
}
.trace-guide summary:after {
  content: "+";
  color: #266c58;
}
.trace-guide details[open] > summary:after {
  content: "−";
}
.trace-copy {
  background: #f6fbf7;
  padding: clamp(16px, 2.5vw, 32px);
  margin: 0 0 16px;
  border-radius: 5px;
  color: #254c45;
}
.trace-copy p,
.trace-copy ul,
.trace-copy ol {
  max-width: 88ch;
  margin: 0 0 13px;
}
.trace-copy li {
  margin-bottom: 7px;
}
.trace-copy ul,
.trace-copy ol {
  padding-left: 22px;
}
.trace-copy a {
  color: #1e6152;
  text-decoration: underline;
}
.trace-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 15px 0;
}
.trace-scroll table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 15px;
}
.trace-scroll td,
.trace-scroll th {
  text-align: left;
  vertical-align: top;
  padding: 12px;
  border-bottom: 1px solid #c3d8ce;
}
.trace-scroll thead {
  background: #deeee3;
}
.trace-scroll tbody th {
  width: 16%;
}
.direct-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-top: 1px solid #c6d9ce;
  margin-top: 20px;
  padding-top: 15px;
}
.direct-contact,
.contact-legal address {
  font-style: normal;
}
.direct-contact a,
.privacy-link,
.privacy-page article a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #215e50;
}
.contact-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid #abc8ba;
  margin-top: 35px;
  padding-top: 28px;
}
.contact-legal p {
  margin: 10px 0;
}
.privacy-link {
  font-size: 14px;
}
.privacy-page {
  padding: 56px 5%;
  background: #f4f9f4;
}
.privacy-page article {
  max-width: 760px;
  margin: auto;
}
.privacy-page h1 {
  font-size: clamp(38px, 6vw, 64px);
  margin: 16px 0 40px;
}
.privacy-page h2 {
  font-size: 27px;
  margin: 32px 0 12px;
}
.privacy-page p {
  margin-bottom: 12px;
}
@media (max-width: 680px) {
  .contact-legal {
    grid-template-columns: 1fr;
  }
}
#dobor-parametrow {
  background: #e1efe8;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}
.method {
  align-self: start;
  background: #fbfdf8;
  border: 1px solid #adcabc;
  border-radius: 7px;
  overflow: hidden;
}
.method summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  gap: 12px;
  list-style: none;
}
.method summary:after {
  content: "+";
  font-size: 22px;
  color: #306958;
}
.method[open] summary:after {
  content: "−";
}
.method summary strong {
  font-size: 20px;
}
.method summary small {
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.method[open] {
  grid-column: 1/-1;
}
.method[open] summary {
  background: #ccdfd5;
}
.method-body,
.matrix-box {
  padding: clamp(16px, 3vw, 34px);
}
.method-body p,
.matrix-box > p {
  max-width: 90ch;
  margin-bottom: 10px;
}
.mx-figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.mx-figs figure {
  border: 1px solid #cee0d4;
  background: white;
  border-radius: 4px;
  overflow: hidden;
}
.mx-figs img {
  width: 100%;
  height: clamp(125px, 16vw, 230px);
  object-fit: contain;
  display: block;
}
.mx-figs figcaption {
  background: #f1f6ef;
  color: #355950;
  padding: 8px 12px;
  font-size: 14px;
  border-top: 1px solid #d5e3db;
}
.matrix-box {
  background: #f9fcf7;
  border: 1px solid #bbd3c6;
  border-radius: 7px;
}
.matrix-box h3 {
  font-size: clamp(23px, 3vw, 38px);
}
.matrix-box h4 {
  font-size: 21px;
  margin: 24px 0 8px;
}
.mx-reading {
  margin: 26px 0 0;
  display: flex;
  gap: 20px;
  align-items: center;
}
.mx-reading img {
  width: 160px;
  border-radius: 5px;
}
.mx-reading p {
  margin-top: 7px;
  font-size: 14px;
}
.mx-reading a {
  text-decoration: underline;
}
@media (min-width: 801px) and (max-width: 1180px) {
  header nav {
    gap: 12px;
  }
  header .toplink {
    display: none;
  }
}
@media (max-width: 750px) {
  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .method-grid,
  .mx-figs {
    grid-template-columns: 1fr;
  }
  .mx-reading {
    display: block;
  }
  .mx-reading img {
    margin-bottom: 12px;
  }
}
.caseBody > p + p {
  margin-top: 12px;
}
.caseGallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 16px;
  margin-top: 20px;
}
.caseGallery figure {
  background: #f9fcf8;
  border: 1px solid #bfd1c6;
  border-radius: 5px;
  overflow: hidden;
}
.caseGallery a {
  display: block;
}
.caseGallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  margin: 0;
  background: #e3e9e1;
}
.caseGallery figcaption {
  display: block;
  padding: 10px 14px;
  background: #f9fcf8;
  color: #36564e;
  border-color: #bfd1c6;
  font-size: 14px;
}

.heroGalleries {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.heroGalleries .viewer {
  min-width: 0;
  scroll-margin-top: 85px;
}
.matrixTrack {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.matrixTrack::after {
  display: none;
}
.matrixTrack img {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

/* ===== Poprawki wizualne (Claude, 2026-11-30) ===== */
body {
  -webkit-font-smoothing: antialiased;
}
h1,
h2 {
  font-weight: 600;
}

/* Hero: jedna galeria z zakładkami */
.heroGalleries {
  gap: 0;
}
.viewerTabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 8px 8px 0;
  background: #0f2526;
  border: 1px solid #55716c;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.viewerTabs button {
  font:
    600 12px/1 "IBM Plex Mono",
    monospace;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9fc2b8;
  padding: 12px 16px;
  border-radius: 6px 6px 0 0;
}
.viewerTabs button[aria-selected="true"] {
  background: #193132;
  color: #f4faf7;
  box-shadow: inset 0 2px 0 #7fd3a6;
}
.viewerTabs button:hover {
  color: #f4faf7;
}
.viewerTabs span {
  margin-left: auto;
  align-self: center;
  padding-right: 10px;
  font:
    600 12px "IBM Plex Mono",
    monospace;
  color: #9fc2b8;
}
.heroGalleries .viewer {
  border-radius: 0 0 8px 8px;
}
.heroGalleries .picture img {
  height: clamp(280px, 30vw, 430px);
}
.matrixTrack img {
  object-fit: cover;
}

/* Ciemne sekcje */
.dark {
  background: radial-gradient(ellipse at 80% 0%, #1d4446, #0d2224 60%);
  color: #e9f3ef;
}
.dark small {
  color: #8fd8b0;
}
.dark h2,
.dark h3 {
  color: #f4faf7;
}
.dark .desc,
.dark .steps p,
.dark p {
  color: #b9cfc9;
}
.dark .steps article {
  border-color: #4d6d68;
}
.dark .trace-guide,
.dark .trace-guide details {
  border-color: #3f5d59;
}
.dark .trace-guide summary:after {
  color: #8fd8b0;
}
.dark .trace-copy,
.dark .trace-copy p {
  color: #254c45;
}
.dark .primary {
  background: #7fd3a6;
  border-color: #7fd3a6;
  color: #0d2224;
}
.dark .ghost {
  border-color: #5c7f78;
  color: #e9f3ef;
}

/* Aplikacje: siatka kart */
.caseGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
  margin-top: 35px;
}
.case {
  align-self: start;
  background: #fff;
  border: 1px solid #b7d1c6;
  border-radius: 8px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.case:not([open]):hover {
  box-shadow: 0 14px 34px #0d222418;
  transform: translateY(-2px);
}
.case summary {
  list-style: none;
  display: block;
}
.case:not([open]) {
  align-self: stretch;
}
.case:not([open]) summary {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.case:not([open]) .caseText {
  flex: 1;
}
.case:not([open]) .caseMore {
  margin-top: auto;
  padding-top: 6px;
}
.caseNote {
  color: #445e56;
  font-size: 16px;
  max-width: 60ch;
}
.case[open] .caseNote {
  display: none;
}
.case summary::-webkit-details-marker {
  display: none;
}
.case summary img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e3e9e1;
}
.caseText {
  display: grid;
  gap: 8px;
  padding: 18px 20px 20px;
}
.caseText strong {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #163e37;
}
.caseMore {
  font-size: 14px;
  font-weight: 600;
  color: #216959;
}
.caseMore:after {
  content: " →";
}
.case:last-child:not([open]) {
  grid-column: 1/-1;
}
.case:last-child:not([open]) summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
}
.case:last-child:not([open]) summary img {
  height: 100%;
  min-height: 0;
  aspect-ratio: 16/9;
}
.case:last-child:not([open]) .caseText {
  padding: 24px 32px;
}
.case[open] {
  grid-column: 1/-1;
}
.case[open] summary {
  display: flex;
  align-items: center;
  background: #dfefe5;
}
.case[open] summary img {
  width: clamp(90px, 16%, 180px);
  aspect-ratio: 4/3;
  height: auto;
  min-height: 0;
}
.case[open] .caseMore:after {
  content: "";
}
.case[open] .caseMore {
  font-size: 0;
}
.case[open] .caseMore:before {
  content: "Zwiń ↑";
  font-size: 14px;
}
.caseBody {
  padding: clamp(16px, 3vw, 34px);
}

/* O nas: liczby */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 0;
}
.stats div {
  background: #f6faf5;
  border: 1px solid #b9d3c9;
  border-radius: 8px;
  padding: 22px;
}
.stats dt {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #216959;
}
.stats dd {
  margin: 10px 0 0;
  color: #365c59;
  font-size: 15px;
}

/* Pasek CTA */
.cta {
  padding: 70px 0;
}
.ctaInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.ctaInner h2 {
  margin: 14px 0 14px;
}
.ctaInner p {
  max-width: 620px;
  font-size: 18px;
}
.ctaInner .actions {
  flex-shrink: 0;
}

/* Stopka */
footer {
  background: #0d2224;
  color: #b9cfc9;
  border-top: 0;
  padding: 56px 0 24px;
  font-size: 15px;
}
.footGrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 40px;
}
footer .brand {
  color: #f4faf7;
  margin-bottom: 14px;
}
footer .brand span {
  color: #8fd8b0;
}
footer .brand i {
  background: repeating-linear-gradient(125deg, transparent 0 4px, #7fd3a6 5px 9px, transparent 10px 12px);
}
footer p {
  max-width: 320px;
}
footer nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  align-content: start;
  font-size: 15px;
}
footer address {
  font-style: normal;
  line-height: 1.7;
}
footer address strong {
  color: #f4faf7;
}
footer a {
  font-size: inherit;
}
footer a:hover {
  color: #8fd8b0;
  text-decoration: underline;
}
.footBottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #2c4a4a;
  font-size: 13px;
}
@media (max-width: 800px) {
  footer nav {
    display: grid;
  }
}

/* Tablet i telefon */
@media (max-width: 1000px) {
  .caseGrid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ctaInner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footGrid {
    grid-template-columns: 1fr 1fr;
  }
  .footGrid > div:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 530px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .tech summary img {
    aspect-ratio: 1.25;
  }
  .tileText {
    padding: 11px 12px 13px;
  }
  .tileText strong {
    font-size: 20px;
  }
  .tileText > span {
    font-size: 13px;
    line-height: 1.35;
    padding-right: 26px;
  }
  .tech summary:after {
    bottom: 12px;
    right: 10px;
    width: 24px;
    height: 24px;
    line-height: 22px;
  }
  .tech[open] .tileText > span {
    padding-right: 40px;
  }
  .caseGrid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .case summary,
  .case:not([open]) summary,
  .case:last-child:not([open]) summary {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
  }
  .case summary img,
  .case:last-child:not([open]) summary img {
    width: 104px;
    height: 100%;
    min-height: 96px;
    aspect-ratio: auto;
  }
  .case[open] summary img {
    width: 104px;
  }
  .caseText {
    padding: 12px 14px;
    gap: 4px;
  }
  .caseText small {
    font-size: 10px;
    letter-spacing: 1.2px;
  }
  .caseText strong {
    font-size: 16px;
  }
  .caseMore,
  .caseNote {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stats div {
    padding: 16px;
  }
  .stats dd {
    font-size: 14px;
  }
  .footGrid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .viewerTabs button {
    padding: 11px 10px;
    letter-spacing: 0.8px;
  }
  .viewerTabs span {
    display: none;
  }
  .heroGalleries .picture img {
    height: 240px;
  }
}
.case summary:hover,
.tech summary:hover,
.method summary:hover,
.trace-guide summary:hover {
  text-decoration: none;
}
.case summary:hover .caseMore {
  text-decoration: underline;
}
