.firma-page {
  --firma-yellow: #FEFE06;
  --firma-yellow-dark: #BABA02;
  --firma-dark: #282826;
  --firma-text: #333333;
  --firma-muted: #666666;
  --firma-border: #eeeeee;
  --firma-soft-yellow: #fffef0;
  --firma-radius: 22px;

  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 15px 60px;
  color: var(--firma-text);
  font-size: 16px;
  line-height: 1.7;
}

.firma-page * {
  box-sizing: border-box;
}

.firma-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.firma-page h1,
.firma-page h2,
.firma-page h3 {
  margin: 0 0 16px;
  line-height: 1.2;
  color: var(--firma-dark);
}

.firma-page h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 300;
  letter-spacing: 0.3px;
}

.firma-page h2 {
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: 0.2px;
}

.firma-page h3 {
  font-size: 20px;
  font-weight: 700;
}

.firma-page p {
  margin: 0 0 15px;
}

.firma-page a {
  color: var(--firma-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--firma-yellow);
}

.firma-page a:hover {
  color: #000000;
  border-bottom-color: var(--firma-yellow-dark);
}

.firma-eyebrow {
  margin-bottom: 10px !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.firma-section__heading .firma-eyebrow {
  color: #8a8376 !important;
}

.firma-hero .firma-eyebrow,
.firma-cta .firma-eyebrow {
  color: var(--firma-yellow) !important;
}

/* HERO */

.firma-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
  margin: 24px 0 42px;
  padding: 48px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(40,40,38,0.98), rgba(20,20,18,0.96));
  box-shadow: 0 22px 55px rgba(0,0,0,0.22);
  overflow: hidden;
}

.firma-hero h1 {
  color: #ffffff;
}

.firma-lead {
  font-size: 17px;
  line-height: 1.75;
  color: #d9d9d9;
}

.firma-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.firma-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
}

/* BUTTONS */

.firma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: all 0.2s ease;
}

.firma-btn:hover {
  transform: translateY(-2px);
}

.firma-btn--primary {
  background: var(--firma-yellow);
  color: var(--firma-dark) !important;
  border: 2px solid var(--firma-yellow);
}

.firma-btn--primary:hover {
  background: #ffffff;
  color: var(--firma-dark) !important;
  border-color: #ffffff;
}

.firma-btn--secondary {
  background: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.65);
}

.firma-btn--secondary:hover {
  background: var(--firma-yellow);
  color: var(--firma-dark) !important;
  border-color: var(--firma-yellow);
}

/* SECTIONS */

.firma-section {
  margin: 38px 0;
}

.firma-section__heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.firma-text,
.firma-card,
.firma-stat,
.firma-timeline article,
.firma-video {
  background: #ffffff;
  border: 1px solid var(--firma-border);
  border-radius: var(--firma-radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

/* INTRO */

.firma-intro {
  display: block;
}

.firma-intro .firma-text {
  max-width: 980px;
  margin: 0 auto 26px;
  padding: 30px 34px;
  border-radius: 22px;
}

.firma-intro .firma-text h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 28px;
  line-height: 1.22;
}

.firma-intro .firma-text p {
  margin-bottom: 14px;
  line-height: 1.62;
}

.firma-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.firma-checklist li {
  position: relative;
  margin: 0;
  padding-left: 26px;
  line-height: 1.45;
}

.firma-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--firma-yellow-dark);
  font-weight: 900;
}

/* VIDEO */

.firma-video {
  width: 100%;
  overflow: hidden;
  background: var(--firma-dark);
  border-radius: 22px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 42px rgba(0,0,0,0.16);
}

.firma-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 360px;
  border: 0;
  border-radius: 14px;
  background: #000000;
}

.firma-intro .firma-video {
  max-width: 980px;
  margin: 0 auto;
}

.firma-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* STATS */

.firma-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.firma-stat {
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.firma-stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--firma-dark);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.firma-stat span {
  display: block;
  color: var(--firma-muted);
  font-size: 14px;
  line-height: 1.35;
}

.firma-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.11);
}

/* TIMELINE */

.firma-timeline {
  position: relative;
  display: grid;
  gap: 24px;
  margin-top: 30px;
  padding: 10px 0;
}

.firma-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--firma-yellow), var(--firma-yellow-dark), transparent);
  transform: translateX(-50%);
}

.firma-timeline article {
  position: relative;
  width: calc(50% - 34px);
  padding: 24px 26px;
  background: #ffffff;
  border: 1px solid var(--firma-border);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.firma-timeline article:nth-child(odd) {
  justify-self: start;
}

.firma-timeline article:nth-child(even) {
  justify-self: end;
}

.firma-timeline article::before {
  content: "";
  position: absolute;
  top: 28px;
  width: 14px;
  height: 14px;
  background: var(--firma-yellow);
  border: 3px solid var(--firma-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(254,254,6,0.22);
}

.firma-timeline article:nth-child(odd)::before {
  right: -42px;
}

.firma-timeline article:nth-child(even)::before {
  left: -42px;
}

.firma-timeline article::after {
  content: "";
  position: absolute;
  top: 34px;
  width: 28px;
  height: 2px;
  background: var(--firma-yellow);
}

.firma-timeline article:nth-child(odd)::after {
  right: -28px;
}

.firma-timeline article:nth-child(even)::after {
  left: -28px;
}

.firma-timeline time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: var(--firma-dark);
  color: var(--firma-yellow);
  border: 1px solid var(--firma-dark);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.firma-timeline article p {
  margin: 0;
  color: #3f3f3f;
  font-size: 15.5px;
  line-height: 1.65;
}

.firma-timeline article:hover {
  transform: translateY(-4px);
  border-color: #f1efc0;
  box-shadow: 0 22px 48px rgba(0,0,0,0.13);
}

.firma-timeline article:hover time {
  background: var(--firma-yellow);
  color: var(--firma-dark);
  border-color: var(--firma-yellow-dark);
}

/* PROCESS CARDS */

.firma-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.firma-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.firma-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--firma-yellow);
  color: var(--firma-dark);
  border: 1px solid var(--firma-yellow-dark);
  font-weight: 900;
}

.firma-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.11);
}

/* GALLERY */

.firma-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.firma-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.firma-gallery img:hover {
  transform: scale(1.025);
  box-shadow: 0 18px 42px rgba(0,0,0,0.16);
}

/* CTA */

.firma-cta {
  margin-top: 54px;
  padding: 46px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(40,40,38,0.98), rgba(20,20,18,0.96));
  border: 0;
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(0,0,0,0.22);
}

.firma-cta h2,
.firma-cta p {
  color: #ffffff;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .firma-hero {
    grid-template-columns: 1fr;
  }

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

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

  .firma-video iframe {
    min-height: 300px;
  }
}

@media (max-width: 800px) {
  .firma-timeline {
    padding-left: 28px;
  }

  .firma-timeline::before {
    left: 7px;
    transform: none;
  }

  .firma-timeline article,
  .firma-timeline article:nth-child(odd),
  .firma-timeline article:nth-child(even) {
    width: 100%;
    justify-self: stretch;
  }

  .firma-timeline article::before,
  .firma-timeline article:nth-child(odd)::before,
  .firma-timeline article:nth-child(even)::before {
    left: -28px;
    right: auto;
  }

  .firma-timeline article::after,
  .firma-timeline article:nth-child(odd)::after,
  .firma-timeline article:nth-child(even)::after {
    left: -14px;
    right: auto;
    width: 14px;
  }
}

@media (max-width: 768px) {
  .firma-page {
    padding: 24px 12px 44px;
  }

  .firma-hero {
    padding: 26px;
    border-radius: 22px;
  }

  .firma-checklist,
  .firma-cards,
  .firma-videos {
    grid-template-columns: 1fr;
  }

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

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

  .firma-intro .firma-text {
    padding: 24px 20px;
  }

  .firma-video iframe {
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .firma-page h1 {
    font-size: 29px;
  }

  .firma-page h2 {
    font-size: 24px;
  }

  .firma-stats,
  .firma-gallery {
    grid-template-columns: 1fr;
  }

  .firma-card,
  .firma-text,
  .firma-cta {
    padding: 22px;
  }

  .firma-video {
    padding: 8px;
    border-radius: 18px;
  }

  .firma-video iframe {
    min-height: 200px;
    border-radius: 12px;
  }
}
```css
/* Korekta kontrastu i bardziej kompaktowa oś czasu */

/* Czytelne przyciski na ciemnym tle */
.firma-hero .firma-btn--primary,
.firma-cta .firma-btn--primary {
  background: #FEFE06;
  color: #282826 !important;
  border: 2px solid #FEFE06;
}

.firma-hero .firma-btn--primary:hover,
.firma-cta .firma-btn--primary:hover {
  background: #ffffff;
  color: #282826 !important;
  border-color: #ffffff;
}

.firma-hero .firma-btn--secondary {
  background: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.75);
}

.firma-hero .firma-btn--secondary:hover {
  background: #FEFE06;
  color: #282826 !important;
  border-color: #FEFE06;
}

/* Etykiety na białym tle nie mogą być żółte */
.firma-section__heading .firma-eyebrow {
  color: #6f6a60 !important;
}

/* Etykiety na ciemnym tle zostają żółte */
.firma-hero .firma-eyebrow,
.firma-cta .firma-eyebrow {
  color: #FEFE06 !important;
}

/* Linki w treści – czytelne, bez efektu żółty na białym */
.firma-text a,
.firma-checklist a {
  color: #282826 !important;
  border-bottom: 2px solid #FEFE06;
}

.firma-text a:hover,
.firma-checklist a:hover {
  color: #000000 !important;
  border-bottom-color: #BABA02;
}

.firma-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-left: 26px;
}

.firma-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, #FEFE06, #BABA02);
  transform: none;
}

.firma-timeline article,
.firma-timeline article:nth-child(odd),
.firma-timeline article:nth-child(even) {
  width: 100%;
  justify-self: stretch;
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-left: 4px solid #FEFE06;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.firma-timeline article::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -27px;
  right: auto;
  width: 13px;
  height: 13px;
  background: #FEFE06;
  border: 3px solid #282826;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(254,254,6,0.18);
}

.firma-timeline article::after,
.firma-timeline article:nth-child(odd)::after,
.firma-timeline article:nth-child(even)::after {
  display: none;
}

.firma-timeline time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 6px 10px;
  margin: 0;
  background: #282826;
  color: #FEFE06;
  border: 1px solid #282826;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.firma-timeline article p {
  margin: 0;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.55;
}

.firma-timeline article:hover {
  transform: translateY(-2px);
  border-left-color: #BABA02;
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
}

.firma-timeline article:hover time {
  background: #FEFE06;
  color: #282826;
  border-color: #BABA02;
}

@media (max-width: 650px) {
  .firma-timeline article,
  .firma-timeline article:nth-child(odd),
  .firma-timeline article:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


.firma-timeline {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: 30px;
  padding: 10px 0;
}

.firma-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, #FEFE06, #BABA02);
  transform: translateX(-50%);
}

.firma-timeline article,
.firma-timeline article:nth-child(odd),
.firma-timeline article:nth-child(even) {
  position: relative;
  width: calc(50% - 34px);
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-left: 4px solid #FEFE06;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.firma-timeline article:nth-child(odd) {
  justify-self: start;
}

.firma-timeline article:nth-child(even) {
  justify-self: end;
}

.firma-timeline article::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  background: #FEFE06;
  border: 3px solid #282826;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(254,254,6,0.18);
  transform: translateY(-50%);
}

.firma-timeline article:nth-child(odd)::before {
  right: -42px;
  left: auto;
}

.firma-timeline article:nth-child(even)::before {
  left: -42px;
  right: auto;
}

.firma-timeline article::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 2px;
  background: #FEFE06;
  transform: translateY(-50%);
}

.firma-timeline article:nth-child(odd)::after {
  right: -28px;
  left: auto;
}

.firma-timeline article:nth-child(even)::after {
  left: -28px;
  right: auto;
}

.firma-timeline time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 6px 10px;
  margin: 0;
  background: #282826;
  color: #FEFE06;
  border: 1px solid #282826;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.firma-timeline article p {
  margin: 0;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.55;
}

.firma-timeline article:hover {
  transform: translateY(-2px);
  border-left-color: #BABA02;
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
}

.firma-timeline article:hover time {
  background: #FEFE06;
  color: #282826;
  border-color: #BABA02;
}

@media (max-width: 800px) {
  .firma-timeline {
    gap: 14px;
    padding-left: 26px;
  }

  .firma-timeline::before {
    left: 7px;
    transform: none;
  }

  .firma-timeline article,
  .firma-timeline article:nth-child(odd),
  .firma-timeline article:nth-child(even) {
    width: 100%;
    justify-self: stretch;
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .firma-timeline article::before,
  .firma-timeline article:nth-child(odd)::before,
  .firma-timeline article:nth-child(even)::before {
    left: -27px;
    right: auto;
  }

  .firma-timeline article::after,
  .firma-timeline article:nth-child(odd)::after,
  .firma-timeline article:nth-child(even)::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .firma-timeline article,
  .firma-timeline article:nth-child(odd),
  .firma-timeline article:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


@media (min-width: 801px) {
  .firma-timeline {
    max-width: 1080px;
    margin: 34px auto 0;
    gap: 18px 0;
    padding: 8px 0;
  }

  .firma-timeline::before {
    width: 1px;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(254,254,6,0.75) 10%,
      rgba(186,186,2,0.85) 50%,
      rgba(254,254,6,0.75) 90%,
      transparent 100%
    );
  }

  .firma-timeline article,
  .firma-timeline article:nth-child(odd),
  .firma-timeline article:nth-child(even) {
    width: calc(50% - 42px);
    min-height: 96px;
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 18px 20px;
    border-radius: 18px;
    border-left: 3px solid #FEFE06;
    box-shadow: 0 10px 26px rgba(0,0,0,0.055);
  }

  .firma-timeline article:nth-child(odd) {
    margin-right: 42px;
  }

  .firma-timeline article:nth-child(even) {
    margin-left: 42px;
  }

  .firma-timeline article::before {
    width: 11px;
    height: 11px;
    border-width: 3px;
    box-shadow: 0 0 0 5px rgba(254,254,6,0.16);
  }

  .firma-timeline article:nth-child(odd)::before {
    right: -49px;
  }

  .firma-timeline article:nth-child(even)::before {
    left: -49px;
  }

  .firma-timeline article::after {
    width: 34px;
    height: 1px;
    opacity: 0.9;
  }

  .firma-timeline article:nth-child(odd)::after {
    right: -34px;
  }

  .firma-timeline article:nth-child(even)::after {
    left: -34px;
  }

  .firma-timeline time {
    min-width: 76px;
    padding: 7px 10px;
    font-size: 13px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  }

  .firma-timeline article p {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .firma-timeline article:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.10);
  }
}


.firma-stat strong {
  word-break: normal;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 2.4vw, 30px);
}

.firma-stat:last-child strong {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
}

@media (min-width: 1025px) {
  .firma-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .firma-stat {
    min-width: 0;
  }
}

