.sekcja {
  position: relative;
  padding-block: var(--section);
}

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 72px)) 0 clamp(48px, 6vw, 88px);
  background: var(--pole) url('../img/team/piksele-zielone.svg') center / cover no-repeat;
  color: var(--bialy);
  overflow: hidden;
  isolation: isolate;
}

.hero-uklad {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

.hero-tytul {
  font-size: inherit;
  font-weight: 400;
}

.hero-napis {
  width: min(100%, 540px);
  height: auto;
  margin-left: calc(min(100%, 540px) * -0.0286);
  animation: napis-wejscie 1.2s var(--ease-in-out) 0.1s both;
}

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

.hero-haslo {
  display: block;
  margin-top: clamp(10px, 1.4vw, 18px);
  font-family: var(--font-sans);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  animation: wejscie 0.9s var(--ease-out) 0.55s both;
}

.hero-lead {
  margin-top: clamp(16px, 2vw, 24px);
  max-width: 33em;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  text-wrap: pretty;
  animation: wejscie 0.9s var(--ease-out) 0.68s both;
}

.hero-lead strong {
  font-weight: 700;
  color: var(--bialy);
}

.hero-akcje {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: wejscie 0.9s var(--ease-out) 0.8s both;
}

@keyframes wejscie {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-mozaika {
  position: relative;
  justify-self: end;
  width: min(100%, 500px);
  aspect-ratio: 14 / 16;
}

.hero-mozaika-tyl,
.hero-mozaika-przod {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}

.hero-mozaika-tyl {
  animation: mozaika-tyl 1.1s var(--ease-out) 0.15s both;
}

.hero-mozaika-przod {
  z-index: 2;
  animation: pojaw 0.8s var(--ease-out) 1s both;
}

@keyframes mozaika-tyl {
  from {
    opacity: 0;
    transform: translate(6%, -5%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pojaw {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-mozaika-foto {
  position: absolute;
  z-index: 1;
  left: calc(100% / 14);
  top: calc(100% / 8);
  width: calc(100% * 11 / 14);
  height: calc(100% * 13 / 16);
  overflow: hidden;
  background: var(--pole-ciemne);
  animation: mozaika-foto 1.2s var(--ease-in-out) 0.3s both;
}

.hero-mozaika-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  animation: mozaika-zoom 2.4s var(--ease-out) 0.3s both;
}

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

@keyframes mozaika-zoom {
  from {
    transform: scale(1.16);
  }
  to {
    transform: none;
  }
}

.hero-kafle {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-kafle i {
  position: absolute;
  width: calc(100% / 14);
  height: calc(100% / 16);
  background: var(--k, var(--zolty-tekst));
  animation: kafel-pop 0.5s var(--ease-out) both;
  animation-delay: calc(1.1s + var(--n, 0) * 0.09s);
}

.hero-kafle i:nth-child(1) {
  left: calc(100% * 13 / 14);
  top: calc(100% * 5 / 16);
}

.hero-kafle i:nth-child(2) {
  --n: 1;
  --k: var(--mieta);
  left: 0;
  top: calc(100% * 9 / 16);
}

.hero-kafle i:nth-child(3) {
  --n: 2;
  --k: var(--pole-jasne);
  left: calc(100% * 12 / 14);
  top: calc(100% * 10 / 16);
}

.hero-kafle i:nth-child(4) {
  --n: 3;
  --k: var(--bialy);
  left: calc(100% * 13 / 14);
  top: calc(100% * 12 / 16);
  animation:
    kafel-pop 0.5s var(--ease-out) both,
    kafel-miga 7s ease-in-out 3s infinite;
  animation-delay: calc(1.1s + 3 * 0.09s), 3s;
}

.hero-kafle i:nth-child(5) {
  --n: 4;
  --k: var(--mieta);
  left: calc(100% * 8 / 14);
  top: 0;
}

.hero-kafle i:nth-child(6) {
  --n: 5;
  left: 0;
  top: calc(100% * 3 / 16);
  animation:
    kafel-pop 0.5s var(--ease-out) both,
    kafel-miga 7s ease-in-out 5s infinite;
  animation-delay: calc(1.1s + 5 * 0.09s), 5s;
}

@keyframes kafel-pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kafel-miga {
  0%,
  40%,
  100% {
    opacity: 1;
  }
  50%,
  90% {
    opacity: 0;
  }
}

.hero-podpis {
  position: absolute;
  z-index: 3;
  left: calc(100% * 2 / 14);
  bottom: calc(100% * 3 / 16 + 12px);
  padding: 7px 12px 4px;
  background: var(--bialy);
  color: var(--pole);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: wejscie 0.8s var(--ease-out) 1.3s both;
}

.hero-podpis span + span::before {
  content: '';
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  margin: 0 0.55em;
  vertical-align: 0.24em;
  background: var(--zolty);
}

.liczby {
  margin-top: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.liczba {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: clamp(118px, 11vw, 150px);
  padding: clamp(16px, 1.8vw, 24px);
  background: rgba(4, 40, 26, 0.34);
}

.liczba:first-child {
  background: var(--zolty-tekst);
  color: var(--czern);
}

.liczba dt {
  font-family: var(--font-display);
  font-size: clamp(46px, 4.8vw, 72px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--bialy);
  font-variant-numeric: tabular-nums;
}

.liczba dt small {
  margin-left: 0.08em;
  font-family: var(--font-sans);
  font-size: 0.34em;
  font-weight: 700;
  letter-spacing: 0;
}

.liczba:first-child dt {
  color: var(--czern);
}

.liczba dd {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.84);
}

.liczba:first-child dd {
  color: rgba(15, 15, 15, 0.78);
}

@media (max-width: 1080px) {
  .hero-uklad {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-mozaika {
    justify-self: center;
    width: min(100%, 460px);
  }
}

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

  .hero-akcje .btn {
    flex: 1 1 100%;
  }

  .hero-mozaika {
    width: min(100%, 400px);
  }
}

.historia {
  position: relative;
  background: var(--pole-ciemne);
  color: var(--bialy);
  overflow: hidden;
}

.historia-uklad {
  display: grid;
  grid-template-columns:
    [pelna-start] minmax(var(--gutter), 1fr)
    [tekst-start] minmax(0, calc(var(--shell) / 2))
    [srodek] minmax(0, calc(var(--shell) / 2))
    [tekst-end] minmax(var(--gutter), 1fr)
    [pelna-end];
}

.historia-uklad > .historia-shell {
  grid-column: tekst-start / srodek;
  width: auto;
  margin: 0;
  align-self: center;
  padding-block: var(--section);
  padding-right: clamp(24px, 5vw, 80px);
}

.historia-tytul span {
  display: block;
}

.historia-etykieta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--bialy);
}

.historia-etykieta::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--zolty-tekst);
}

.historia-opis {
  margin-top: 14px;
  max-width: 34em;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}

.historia-lista-tytul {
  margin-top: 26px;
  font-size: 17px;
  font-weight: 700;
}

.historia-lista {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.historia-lista li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16.5px;
  color: var(--bialy);
}

.historia-lista svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  flex: none;
  background: rgba(255, 255, 255, 0.08);
  fill: none;
  stroke: var(--zolty-tekst);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.historia-tekst .btn {
  margin-top: 30px;
}

.historia-foto {
  grid-column: srodek / pelna-end;
  min-height: 560px;
}

.historia-foto picture,
.historia-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.historia-foto img {
  object-fit: cover;
  object-position: 50% 62%;
}

.historia-foto::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(4, 21, 15, 0.78) 0%, rgba(4, 21, 15, 0.2) 38%, rgba(4, 21, 15, 0) 60%);
  pointer-events: none;
}

.historia-foto > i {
  --k: var(--pole-ciemne);
}

.historia-foto .k1 {
  left: 0;
  top: 0;
}

.historia-foto .k2 {
  left: var(--kafel);
  top: 0;
}

.historia-foto .k3 {
  left: 0;
  top: var(--kafel);
}

.historia-foto .k4 {
  --k: var(--zolty-tekst);
  left: calc(var(--kafel) * -1);
  top: calc(var(--kafel) * 3);
}

.historia-foto .k5 {
  --k: var(--mieta);
  left: 0;
  bottom: calc(var(--kafel) * 2);
}

.historia-nakladka {
  position: absolute;
  z-index: 3;
  left: calc(var(--kafel) + clamp(16px, 2vw, 28px));
  right: 24px;
  bottom: clamp(22px, 3vw, 40px);
}

.historia-nakladka strong {
  display: block;
  font-size: clamp(44px, 5vw, 72px);
  color: var(--bialy);
}

.historia-nakladka span {
  display: block;
  margin-top: 8px;
  max-width: 24em;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.drzewka-pasek {
  padding-block: clamp(48px, 6vw, 80px) clamp(64px, 8vw, 104px);
}

.drzewka-pasek-tytul {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--bialy);
}

.drzewka-lista {
  margin-top: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
}

.drzewka-lista li {
  padding-block: 8px;
}

.drzewka-lista img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--pole);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
  transition:
    box-shadow 0.5s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.drzewka-lista li.is-aktywne img {
  box-shadow:
    0 0 0 4px var(--zolty-tekst),
    0 18px 30px -16px rgba(0, 0, 0, 0.6);
  transform: translateY(-6px) scale(1.04);
}

@media (max-width: 960px) {
  .historia-uklad {
    grid-template-columns: minmax(0, 1fr);
  }

  .historia-uklad > .historia-shell {
    grid-column: auto;
    width: min(100% - 2 * var(--gutter), var(--shell));
    margin-inline: auto;
    padding-right: 0;
    padding-bottom: clamp(48px, 7vw, 72px);
  }

  .historia-foto {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 4 / 3.4;
  }

  .historia-foto .k4 {
    left: 0;
  }

  .drzewka-lista {
    display: flex;
    gap: 16px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .drzewka-lista::-webkit-scrollbar {
    display: none;
  }

  .drzewka-lista li {
    flex: 0 0 clamp(96px, 22vw, 128px);
    scroll-snap-align: start;
  }
}

.drzewko {
  background: var(--bialy);
  overflow: hidden;
}

.drzewko-uklad {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.drzewko-tekst .naglowek {
  margin-top: 16px;
}

.drzewko-tekst .lead {
  margin-top: 20px;
  max-width: 33em;
}

.kroki {
  margin-top: 36px;
  display: grid;
  gap: 12px;
}

.krok {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  padding: 18px 20px 22px;
  border: 1.5px solid var(--linia);
  background: var(--bialy);
  text-align: left;
  overflow: hidden;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.krok:hover {
  border-color: var(--linia-mocna);
}

.krok[aria-selected='true'] {
  border-color: var(--pole);
  background: var(--jasne-2);
  box-shadow: var(--shadow-s);
}

.krok-nr {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding-top: 3px;
  background: var(--jasne);
  font-size: 30px;
  color: var(--tekst-3);
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

.krok[aria-selected='true'] .krok-nr {
  background: var(--zolty-tekst);
  color: var(--czern);
}

.krok-tytul {
  display: block;
  margin-top: 2px;
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--tekst);
}

.krok-opis {
  display: block;
  margin-top: 6px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--tekst-2);
}

.krok-postep {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  overflow: hidden;
}

.krok[aria-selected='true'] .krok-postep {
  background: rgba(11, 106, 66, 0.1);
}

.krok-postep i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--pole);
  transform: scaleX(0);
  transform-origin: left;
}

.krok.is-odliczanie .krok-postep i {
  animation: krok-postep var(--czas, 6s) linear forwards;
}

.kroki.is-pauza .krok-postep i {
  animation-play-state: paused;
}

@keyframes krok-postep {
  to {
    transform: scaleX(1);
  }
}

.telefon-scena {
  --pol: min(180px, 41vw);
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: clamp(28px, 4vw, 56px);
  perspective: 1600px;
  isolation: isolate;
}

.telefon-blok {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(96%, 470px);
  aspect-ratio: 1;
  transform: translate(-28%, -46%);
  background: var(--pole) url('../img/team/piksele-zielone.svg') 30% 20% / 1100px auto no-repeat;
}

.telefon-blok::after {
  content: '';
  position: absolute;
  right: calc(var(--kafel) * -1);
  bottom: calc(var(--kafel) * -1);
  width: calc(var(--kafel) * 3);
  height: calc(var(--kafel) * 2);
  background: var(--zolty-tekst);
}

.telefon-kafle i {
  position: absolute;
  z-index: 2;
  width: var(--kafel);
  height: var(--kafel);
  background: var(--k, var(--zolty-tekst));
  transition:
    transform 0.5s var(--ease-out),
    opacity 0.5s ease;
  transition-delay: calc(0.5s + var(--n, 0) * 0.08s);
}

.telefon-scena.is-pending .telefon-kafle i {
  opacity: 0;
  transform: scale(0);
}

.telefon-kafle i:nth-child(1) {
  left: calc(50% - var(--pol) - var(--kafel) * 2);
  top: 16%;
}

.telefon-kafle i:nth-child(2) {
  --n: 1;
  --k: var(--mieta);
  left: calc(50% - var(--pol) - var(--kafel));
  top: calc(16% + var(--kafel));
}

.telefon-kafle i:nth-child(3) {
  --n: 2;
  --k: var(--pole-jasne);
  left: calc(50% + var(--pol));
  top: 34%;
}

.telefon-kafle i:nth-child(4) {
  --n: 3;
  left: calc(50% + var(--pol) + var(--kafel));
  top: calc(34% - var(--kafel));
}

.telefon-kafle i:nth-child(5) {
  --n: 4;
  --k: var(--krem);
  left: calc(50% + var(--pol) - var(--kafel) * 0.5);
  top: 70%;
}

.telefon-kafle i:nth-child(6) {
  --n: 5;
  --k: var(--pole);
  left: calc(50% - var(--pol) - var(--kafel));
  top: 78%;
}

.telefon-kafle i:nth-child(7) {
  --n: 6;
  left: calc(50% - var(--pol) - var(--kafel) * 2);
  top: calc(78% + var(--kafel));
}

.telefon {
  position: relative;
  z-index: 1;
  width: min(360px, 82vw);
  aspect-ratio: 9 / 19.2;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(145deg, #1d2a24, #07100c 60%, #17221d);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08) inset,
    0 0 0 5px #0c1511,
    0 50px 100px -40px rgba(4, 21, 15, 0.7),
    0 30px 60px -30px rgba(4, 21, 15, 0.5);
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform 1.2s var(--ease-out);
}

.telefon-scena:hover .telefon {
  transform: rotateY(-3deg) rotateX(1deg);
}

.telefon-ekran {
  position: relative;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: var(--bialy);
  isolation: isolate;
}

.telefon-pasek {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 34px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bialy);
}

.telefon-wyspa {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  border-radius: 999px;
  background: #050907;
}

.telefon-ikony {
  display: inline-flex;
  gap: 4px;
  align-items: flex-end;
}

.telefon-ikony i {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: currentColor;
}

.telefon-ikony i:nth-child(1) {
  height: 6px;
}

.telefon-ikony i:nth-child(2) {
  height: 9px;
}

.telefon-ikony i:nth-child(3) {
  height: 12px;
}

.ekran {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  animation: ekran-wejscie 0.7s var(--ease-out) both;
}

.ekran[hidden] {
  display: none !important;
}

@keyframes ekran-wejscie {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ekran-gora {
  padding: 56px 18px 18px;
  background: var(--pole) url('../img/team/piksele-zielone.svg') 80% 0 / 900px auto no-repeat;
  color: var(--bialy);
}

.ekran-naglowek {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ekran-naglowek img {
  width: auto;
  height: 17px;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  box-sizing: content-box;
}

.ekran-naglowek span {
  padding-top: 2px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.ekran-dla {
  margin-top: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zolty-tekst);
}

.ekran-imie {
  margin-top: 5px;
  font-size: 36px;
  line-height: 0.95;
  color: var(--bialy);
}

.ekran-firma {
  margin-top: 5px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.84);
}

.ekran-foto {
  position: relative;
  margin: 14px 16px 0;
  aspect-ratio: 4 / 3.3;
  overflow: hidden;
  flex: none;
}

.ekran-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ekran-foto::before,
.ekran-foto::after {
  content: '';
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
}

.ekran-foto::after {
  right: 0;
  background: var(--bialy);
}

.ekran-foto::before {
  right: 16px;
  background: var(--zolty-tekst);
}

.ekran-foto-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--zolty-tekst);
  font-size: 11px;
  font-weight: 700;
  color: var(--czern);
}

.ekran-dane {
  margin: 12px 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: var(--jasne-2);
}

.ekran-dane dt {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tekst-3);
}

.ekran-dane dd {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--tekst);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ekran-przyciski {
  margin: auto 16px 20px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 8px;
}

.ekran-btn {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 100px;
  border: 1.5px solid var(--linia-mocna);
  font-size: 13px;
  font-weight: 600;
  color: var(--tekst);
  white-space: nowrap;
}

.ekran-btn--glowny {
  background: var(--zolty);
  border-color: var(--zolty);
  color: var(--czern);
}

.ekran-btn--szeroki {
  margin-top: auto;
}

.ekran--mapa {
  background: #1c2e22;
}

.ekran-mapa-tlo {
  position: absolute;
  inset: 0;
}

.ekran-mapa-gora {
  position: absolute;
  top: 54px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
}

.ekran-wroc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--bialy);
  font-size: 12px;
  font-weight: 600;
  color: var(--tekst);
  box-shadow: var(--shadow-s);
}

.ekran-wroc::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.ekran-mapa-karta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 3;
  padding: 14px 16px 16px;
  background: var(--bialy);
  border-left: 6px solid var(--zolty);
  box-shadow: var(--shadow-m);
}

.ekran-mapa-karta .ekran-dla {
  margin-top: 0;
  color: var(--pole);
}

.ekran-mono {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--tekst);
}

.ekran-male {
  margin-top: 4px;
  font-size: 12px;
  color: var(--tekst-3);
}

.ekran--certyfikat {
  padding: 58px 16px 20px;
  background: var(--pole) url('../img/team/piksele-zielone.svg') 20% 30% / 900px auto no-repeat;
}

.ekran--certyfikat .ekran-dla {
  margin-top: 8px;
}

.ekran-cert {
  margin-top: 16px;
  overflow: hidden;
  background: var(--bialy);
  aspect-ratio: 842 / 595;
  transform: rotate(-2deg);
  box-shadow: 0 18px 40px -18px rgba(4, 21, 15, 0.7);
}

.ekran-cert svg {
  width: 100%;
  height: auto;
}

.ekran-plik {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bialy);
}

.ekran-plik svg {
  width: 36px;
  height: 36px;
  padding: 7px;
  flex: none;
  background: var(--zolty-tekst);
  fill: none;
  stroke: var(--czern);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ekran-plik strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tekst);
}

.ekran-plik small {
  display: block;
  font-size: 11.5px;
  color: var(--tekst-3);
}

@media (max-width: 980px) {
  .drzewko-uklad {
    grid-template-columns: minmax(0, 1fr);
  }

  .telefon {
    transform: rotateY(-4deg) rotateX(2deg);
  }
}

.mapa {
  background: var(--ciemna) url('../img/team/piksele-ciemne.svg') center / cover no-repeat;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  isolation: isolate;
}

.mapa::before,
.mapa::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.mapa::before {
  background:
    radial-gradient(ellipse 50% 60% at 12% 30%, rgba(92, 225, 184, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 96% 96%, rgba(255, 204, 102, 0.08), transparent 70%);
}

.mapa::after {
  background: repeating-linear-gradient(118deg, rgba(92, 225, 184, 0.09) 0 1px, transparent 1px 24px);
  mask-image: radial-gradient(ellipse 45% 55% at 88% 18%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 45% 55% at 88% 18%, #000 0%, transparent 70%);
}

.mapa-iskra {
  position: absolute;
  z-index: 0;
  fill: var(--mieta);
  pointer-events: none;
  animation: iskra 4.8s ease-in-out infinite;
}

.mapa-iskra--1 {
  width: 34px;
  height: 34px;
  top: 9%;
  right: 7%;
}

.mapa-iskra--2 {
  width: 18px;
  height: 18px;
  top: 17%;
  right: 13%;
  fill: var(--zolty-tekst);
  animation-delay: -1.6s;
}

.mapa-iskra--3 {
  width: 24px;
  height: 24px;
  bottom: 7%;
  left: 47%;
  animation-delay: -3.2s;
}

@keyframes iskra {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(20deg);
  }
}

.mapa .naglowek {
  color: var(--bialy);
}

.mieta {
  color: var(--mieta);
}

.mapa .lead {
  color: rgba(255, 255, 255, 0.78);
}

.mapa-uklad {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.mapa-lotnicza {
  position: relative;
}

.mapa-obraz {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #16261c;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.85);
}

.mapa-obraz picture,
.mapa-obraz img,
.mapa-kropki {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mapa-obraz img {
  object-fit: cover;
  filter: saturate(0.6) brightness(0.6) contrast(1.05);
  transition: filter 2.4s var(--ease-out);
}

.mapa-lotnicza.is-widoczna .mapa-obraz img {
  filter: saturate(0.8) brightness(0.8) contrast(1.05);
}

.mapa-obraz::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 21, 15, 0.4) 0%, transparent 22%, transparent 70%, rgba(4, 21, 15, 0.6) 100%);
  pointer-events: none;
}

.mapa-obraz > i {
  z-index: 5;
  --k: var(--ciemna);
}

.mapa-obraz .k1 {
  left: 0;
  bottom: 0;
}

.mapa-obraz .k2 {
  left: var(--kafel);
  bottom: 0;
}

.mapa-obraz .k3 {
  left: 0;
  bottom: var(--kafel);
}

.mapa-obraz .k4 {
  --k: var(--mieta);
  left: calc(var(--kafel) * 2);
  bottom: 0;
}

.znacznik--duzy {
  z-index: 3;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.znacznik--duzy.is-widoczny {
  opacity: 1;
  transform: none;
}

.mapa-podpis-drzewka {
  position: absolute;
  z-index: 4;
  left: var(--zx, 50%);
  top: var(--zy, 50%);
  transform: translate(22px, -50%);
  padding: 7px 12px;
  background: var(--bialy);
  color: var(--tekst);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-s);
  opacity: 0;
  transition: opacity 0.6s 0.3s var(--ease-out);
}

.mapa-podpis-drzewka.is-widoczny {
  opacity: 1;
}

.mapa-podpis-drzewka.is-lewy {
  transform: translate(calc(-100% - 22px), -50%);
}

.mapa-licznik {
  position: absolute;
  z-index: 4;
  left: 20px;
  top: 20px;
  padding: 12px 16px 10px;
  background: rgba(4, 21, 15, 0.72);
  border: 1px solid rgba(92, 225, 184, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mapa-licznik strong {
  display: block;
  font-size: 36px;
  line-height: 0.95;
  color: var(--bialy);
  font-variant-numeric: tabular-nums;
}

.mapa-licznik span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.mapa-roza {
  position: absolute;
  z-index: 4;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(4, 21, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mapa-roza svg {
  width: 26px;
  height: 26px;
}

.mapa-roza span {
  position: absolute;
  top: -20px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.mapa-skala {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 20px;
  display: grid;
  justify-items: end;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.mapa-skala i {
  display: block;
  width: var(--skala, 60px);
  height: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.86);
  border-top: 0;
}

.mapa-legenda {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
}

.mapa-legenda span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legenda-kropka {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mieta-2);
  box-shadow: 0 0 8px rgba(145, 244, 214, 0.8);
}

.legenda-znacznik {
  width: 10px;
  height: 10px;
  background: var(--zolty);
  box-shadow: 0 0 0 2px var(--bialy);
}

.mapa-zrodlo {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.46);
}

.mapa-tekst .naglowek {
  margin-top: 16px;
}

.mapa-tekst .lead {
  margin-top: 22px;
}

.mapa-cta {
  margin-top: 28px;
}

.mapa-polska {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 16px 22px 16px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(92, 225, 184, 0.2);
}

.mapa-polska img {
  width: 150px;
  height: auto;
}

.mapa-polska-tytul {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--bialy);
  text-wrap: balance;
}

.mapa-polska-legenda {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.legenda-wroclaw,
.legenda-las {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--bialy);
}

.legenda-las {
  margin-left: 10px;
  background: var(--zolty);
  box-shadow: 0 0 0 2px var(--bialy);
}

.mapa-fakty {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mapa-fakty div {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mapa-fakty div:nth-child(2n) {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mapa-fakty dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mieta);
}

.mapa-fakty dd {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--bialy);
}

.mapa-okolica {
  margin-top: 28px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 980px) {
  .mapa-uklad {
    grid-template-columns: minmax(0, 1fr);
  }

  .mapa-tekst {
    order: -1;
  }

  .mapa-lotnicza {
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .mapa-polska {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
  }

  .mapa-polska img {
    width: 104px;
  }

  .mapa-licznik strong {
    font-size: 28px;
  }

  .mapa-zrodlo {
    margin-left: 0;
    flex-basis: 100%;
  }
}

.co2 {
  background: var(--pole) url('../img/team/piksele-final.svg') center / cover no-repeat;
  color: var(--bialy);
  overflow: hidden;
}

.co2-naglowek {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

.co2 .naglowek {
  margin-top: 16px;
  color: var(--bialy);
}

.co2-lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}

.co2-siatka {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 16px;
}

.wzrost {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 36px);
  background: var(--pole-glebokie);
  overflow: hidden;
}

.wzrost-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 64 / 44;
  shape-rendering: crispEdges;
}

.wzrost-svg .k {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition:
    transform 0.45s var(--ease-out),
    opacity 0.45s ease;
  transition-delay: var(--d, 0ms);
}

.wzrost.is-pending .wzrost-svg .k {
  opacity: 0;
  transform: scale(0);
}

.wzrost-svg .czastka {
  fill: rgba(255, 255, 255, 0.85);
  animation: czastka 6s linear infinite;
  animation-delay: var(--d, 0ms);
}

@keyframes czastka {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  15% {
    opacity: 0.9;
  }
  75% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-9px, 7px);
  }
}

.wzrost-etapy {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.24);
}

.wzrost-etapy li {
  display: grid;
  gap: 2px;
  text-align: center;
}

.wzrost-etapy strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--zolty-tekst);
}

.wzrost-etapy span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.74);
}

.wzrost-podpis {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.84);
}

.co2-metryki {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.metryka {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  isolation: isolate;
}

.metryka::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: var(--kafel);
  height: var(--kafel);
  background: var(--pole);
  box-shadow: calc(var(--kafel) * -1) 0 0 rgba(11, 106, 66, 0.35);
}

.metryka--biala {
  background: var(--bialy);
  color: var(--tekst);
}

.metryka--zolta {
  background: var(--zolty-tekst);
  color: var(--czern);
}

.metryka--zolta::after {
  box-shadow: calc(var(--kafel) * -1) 0 0 var(--bialy);
}

.metryka-etykieta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pole);
}

.metryka--zolta .metryka-etykieta {
  color: var(--czern);
}

.metryka-wartosc {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metryka-liczba {
  display: block;
  white-space: nowrap;
  font-size: clamp(80px, 34cqi, 150px);
  line-height: 0.84;
  color: var(--pole);
}

.metryka--zolta .metryka-liczba {
  color: var(--czern);
}

.metryka-okolo {
  margin-right: 0.06em;
  font-family: var(--font-sans);
  font-size: 0.24em;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: 0.2em;
  color: var(--tekst-2);
}

.metryka--zolta .metryka-okolo {
  color: rgba(15, 15, 15, 0.72);
}

.metryka-jednostka {
  display: block;
  white-space: nowrap;
  font-size: clamp(18px, 6.4cqi, 26px);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.metryka-opis {
  margin-top: 12px;
  max-width: 26em;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--tekst-2);
}

.metryka--zolta .metryka-opis {
  color: rgba(15, 15, 15, 0.76);
}

.korzysci {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.korzysc {
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--pole-ciemne);
}

.korzysc svg {
  width: 48px;
  height: 48px;
  padding: 11px;
  background: var(--zolty-tekst);
  fill: none;
  stroke: var(--czern);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.korzysc h3 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--bialy);
}

.korzysc p {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.co2-przypis {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 980px) {
  .co2-naglowek,
  .co2-siatka {
    grid-template-columns: minmax(0, 1fr);
  }

  .co2-metryki {
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .co2-metryki,
  .korzysci {
    grid-template-columns: minmax(0, 1fr);
  }

  .wzrost-etapy span {
    font-size: 13px;
  }
}

.certyfikat {
  background: var(--bialy);
  overflow: hidden;
}

.certyfikat-uklad {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.certyfikat-scena {
  padding: calc(var(--kafel) * 1.5) calc(var(--kafel) * 2) calc(var(--kafel) * 2) 0;
  perspective: 1800px;
}

.certyfikat-scena::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 74%;
  height: 80%;
  background: var(--pole) url('../img/team/piksele-zielone.svg') 60% 40% / 1200px auto no-repeat;
}

.certyfikat-kartka {
  position: relative;
  z-index: 1;
  aspect-ratio: 842 / 595;
  overflow: hidden;
  background: var(--bialy);
  box-shadow:
    0 1px 2px rgba(4, 21, 15, 0.1),
    0 40px 80px -30px rgba(4, 21, 15, 0.5),
    0 18px 30px -18px rgba(4, 21, 15, 0.3);
  transform: rotateX(4deg) rotateY(6deg) rotate(-1.5deg);
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease-out);
}

.certyfikat-scena:hover .certyfikat-kartka {
  transform: none;
}

.certyfikat-kartka > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certyfikat-kartka svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.certyfikat-svg text[font-weight='bold'] {
  font-weight: 600;
}

.certyfikat-scena .k1 {
  left: calc(var(--kafel) * -1);
  top: calc(var(--kafel) * 2.5);
}

.certyfikat-scena .k2 {
  --k: var(--mieta);
  left: 0;
  top: calc(var(--kafel) * 0.5);
}

.certyfikat-scena .k3 {
  --k: var(--krem);
  right: 0;
  bottom: 0;
}

.certyfikat-scena .k4 {
  right: var(--kafel);
  bottom: 0;
}

.certyfikat-scena .k5 {
  --k: var(--pole-jasne);
  right: 0;
  bottom: var(--kafel);
}

.certyfikat-tekst .naglowek {
  margin-top: 16px;
}

.certyfikat-tekst .lead {
  margin-top: 20px;
}

.certyfikat-lista {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.certyfikat-lista li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16.5px;
  color: var(--tekst);
}

.certyfikat-lista svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  flex: none;
  background: var(--zolty-tekst);
  fill: none;
  stroke: var(--czern);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.certyfikat-tekst .btn {
  margin-top: 32px;
}

@media (max-width: 980px) {
  .certyfikat-uklad {
    grid-template-columns: minmax(0, 1fr);
  }

  .certyfikat-tekst {
    order: -1;
  }

  .certyfikat-kartka {
    transform: rotate(-1deg);
  }

  .certyfikat-scena .k1 {
    left: 0;
    top: 0;
  }
}

.pytania {
  background: var(--jasne-2);
}

.pytania-uklad {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.pytania-naglowek {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.pytania-naglowek .naglowek {
  margin-top: 16px;
}

.pytania-naglowek::after {
  content: '';
  display: block;
  width: calc(var(--kafel) * 3);
  height: var(--kafel);
  margin-top: 32px;
  background: linear-gradient(90deg, var(--zolty-tekst) 0 33.34%, var(--pole) 33.34% 66.67%, var(--mieta) 66.67% 100%);
}

.pytania-lista {
  display: grid;
  gap: 10px;
}

.pytanie {
  position: relative;
  background: var(--bialy);
  border: 1px solid var(--linia);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.pytanie::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 6px;
  background: var(--zolty);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}

.pytanie[open] {
  border-color: var(--linia-mocna);
  box-shadow: var(--shadow-s);
}

.pytanie[open]::before {
  transform: scaleY(1);
}

.pytanie summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 20px 20px 26px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(17px, 1.45vw, 19px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--tekst);
  transition: color 0.2s ease;
}

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

.pytanie summary:hover {
  color: var(--pole);
}

.pytanie summary svg {
  width: 40px;
  height: 40px;
  padding: 10px;
  flex: none;
  background: var(--jasne-2);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.45s var(--ease-out),
    background-color 0.3s ease,
    color 0.3s ease;
}

.pytanie[open] summary svg {
  transform: rotate(180deg);
  background: var(--zolty-tekst);
  color: var(--czern);
}

.pytanie-odp {
  padding: 0 72px 24px 26px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--tekst-2);
}

.pytanie[open] .pytanie-odp {
  animation: odpowiedz 0.5s var(--ease-out);
}

@keyframes odpowiedz {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .pytania-uklad {
    grid-template-columns: minmax(0, 1fr);
  }

  .pytania-naglowek {
    position: static;
  }

  .pytania-naglowek::after {
    display: none;
  }

  .pytanie-odp {
    padding-right: 20px;
  }
}

.final {
  position: relative;
  padding-block: var(--section);
  background: var(--pole) url('../img/team/piksele-zielone.svg') center / cover no-repeat;
  color: var(--bialy);
  overflow: hidden;
}

.final-uklad {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.final-tytul {
  font-size: clamp(64px, 9vw, 148px);
  line-height: 0.86;
}

.final-tytul span {
  display: block;
}

.final-lead {
  margin-top: 26px;
  max-width: 30em;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}

.final-akcje {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.final-foto {
  aspect-ratio: 4 / 3.2;
}

.final-foto picture,
.final-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.final-foto img {
  object-fit: cover;
  object-position: 55% 50%;
}

.final-foto > i {
  --k: var(--pole);
}

.final-foto .k1 {
  left: 0;
  top: 0;
}

.final-foto .k2 {
  left: var(--kafel);
  top: 0;
}

.final-foto .k3 {
  left: 0;
  top: var(--kafel);
}

.final-foto .k4 {
  right: 0;
  bottom: 0;
}

.final-foto .k5 {
  --k: var(--zolty-tekst);
  right: var(--kafel);
  bottom: 0;
}

.final-foto .k6 {
  --k: var(--zolty-tekst);
  right: calc(var(--kafel) * -1);
  bottom: calc(var(--kafel) * 2);
}

@media (max-width: 960px) {
  .final-uklad {
    grid-template-columns: minmax(0, 1fr);
  }

  .final-foto .k6 {
    right: 0;
  }
}

@media (max-width: 680px) {
  .final-akcje .btn {
    flex: 1 1 100%;
  }
}
