body.light-theme.kontakt-page .background-container {
  background-image: url("../images/optimized_all/mezczyzna-trzymajacy-smartfon-pod-wysokim-katem.webp") !important;
  background-image: image-set(
    url("../images/optimized_all/mezczyzna-trzymajacy-smartfon-pod-wysokim-katem.webp")
      type("image/webp"),
    url("../images/optimized_all/mezczyzna-trzymajacy-smartfon-pod-wysokim-katem.webp")
      type("image/webp")
  ) !important;
}

body.light-theme.kontakt-page .background-overlay {
  background-color: white;
}

body.light-theme.oferta-page .background-container {
  background-image: url("../images/optimized_all/tlo-jasne-do-stron.webp") !important;
  background-image: image-set(
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp"),
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp")
  ) !important;
}

/* Specjalne tło dla strony blog w trybie jasnym */
body.light-theme.blog-page .background-container {
  background-image: url("../images/optimized_all/tlo-jasne-do-stron.webp") !important;
  background-image: image-set(
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp"),
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp")
  ) !important;
}

body.light-theme.blog-page .background-overlay {
  background-color: white;
}

body.blog-article-page .background-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.96) 20%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.9) 85%,
    rgba(0, 0, 0, 0.98) 100%
  ) !important;
}

body.blog-article-page .article-hero,
body.blog-article-page .article-layout,
body.blog-article-page .article-cta,
body.blog-article-page .article-meta-footer {
  position: relative;
  z-index: 2;
}

body.light-theme.blog-article-page .background-container {
  background-image: url("../images/optimized_all/tlo-jasne-do-stron.webp") !important;
  background-image: image-set(
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp"),
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp")
  ) !important;
}

body.light-theme.blog-article-page .background-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.96) 20%,
    rgba(255, 255, 255, 0.35) 60%,
    rgba(252, 252, 253, 0.9) 85%,
    rgba(245, 245, 247, 0.98) 100%
  ) !important;
}

/* Stylizacja sekcji hero-content-below na stronie blog */
body.blog-page .hero-content-below {
  padding: 5rem 5%;
  text-align: center;
  position: relative;
  z-index: 3;
  background: transparent;
}

body.blog-page .hero-content-below .container {
  max-width: 800px;
  margin: 0 auto;
}

body.blog-page .hero-content-below .section-lede {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.6;
}

body.blog-page .hero-content-below .page-hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

body.blog-page .hero-content-below .cta-button {
  margin: 0;
}

/* Specjalne tło dla strony o-mnie w trybie jasnym */
body.light-theme.o-mnie-page .background-container {
  background-image: url("../images/optimized_all/tlo-jasne-do-stron.webp") !important;
  background-image: image-set(
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp"),
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp")
  ) !important;
}

body.light-theme.o-mnie-page .background-overlay {
  background-color: white;
}

/* Stylizacja sekcji hero-content-below na stronie o-mnie */
body.o-mnie-page .hero-content-below {
  padding: 5rem 5%;
  text-align: center;
  position: relative;
  z-index: 3;
  background: transparent;
}

body.o-mnie-page .hero-content-below .container {
  max-width: 800px;
  margin: 0 auto;
}

body.o-mnie-page .hero-content-below .section-lede {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.6;
}

body.o-mnie-page .hero-content-below .page-hero-features {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

body.o-mnie-page .hero-content-below .hero-feature-pill {
  background-color: var(--accent-red);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 0 15px var(--glow-red);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

body.o-mnie-page .hero-content-below .hero-feature-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px var(--glow-red);
}

body.o-mnie-page .hero-content-below .page-hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

body.o-mnie-page .hero-content-below .cta-button {
  margin: 0;
}

/* Stylizacja sekcji hero-content-below na stronie realizacje */
body.realizacje-page .hero-content-below {
  padding: 5rem 5%;
  text-align: center;
  position: relative;
  z-index: 3;
  background: transparent;
}

body.realizacje-page .hero-content-below .container {
  max-width: 800px;
  margin: 0 auto;
}

body.realizacje-page .hero-content-below .section-lede {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.6;
}

body.realizacje-page .hero-content-below .page-hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

body.realizacje-page .hero-content-below .cta-button {
  margin: 0;
}

/* Specjalne tło dla strony realizacje w trybie jasnym */
body.light-theme.realizacje-page .background-container {
  background-image: url("../images/optimized_all/tlo-jasne-do-stron.webp") !important;
  background-image: image-set(
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp"),
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp")
  ) !important;
}

body.light-theme.realizacje-page .background-overlay {
  background-color: rgba(255, 255, 255, 0.92);
}

/* Specjalne tło dla strony realizacje w trybie ciemnym */
body:not(.light-theme).realizacje-page .background-overlay {
  background-color: #000;
}

/* Specjalne tło dla stron projektów (realizacji) w trybie jasnym */
body.project-page .background-container {
  background-image: url("../images/optimized_all/tlo-do-stron.webp") !important;
  background-image: image-set(
    url("../images/optimized_all/tlo-do-stron.webp") type("image/webp"),
    url("../images/optimized_all/tlo-do-stron.webp") type("image/webp")
  ) !important;
}

body.light-theme.project-page .background-container {
  background-image: url("../images/optimized_all/tlo-jasne-do-stron.webp") !important;
  background-image: image-set(
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp"),
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp")
  ) !important;
}

body.light-theme.project-page .background-overlay {
  background-color: rgba(255, 255, 255, 0.92);
}

/* Specjalne tło dla stron projektów (realizacji) w trybie ciemnym */
body:not(.light-theme).project-page .background-overlay {
  background-color: #000;
}

.oferta-page .problem-solution,
.oferta-page .comprehensive-approach,
.oferta-page .offer-details,
.oferta-page .transparent-cooperation,
.oferta-page .extensions,
.oferta-page .benefits-section,
.oferta-page .social-proof,
.oferta-page .pricing-section,
.oferta-page .guarantee-section,
.oferta-page .final-cta,
.oferta-page .trust-section,
.oferta-page .story-section,
.oferta-page .unique-approach,
.oferta-page .implementation-steps,
.oferta-page .project-quiz,
.oferta-page .faq-section {
  background: transparent !important;
}

.oferta-page .assurance-section {
  background: rgba(10, 10, 10, 0.5) !important;
}

/* Oferta Page Light Theme Overrides */
body.light-theme.oferta-page .investment-front h3,
body.light-theme.oferta-page .investment-front .investment-number {
  color: #ffffff !important;
}

body.light-theme.oferta-page .assurance-section {
  background-color: rgba(255, 255, 255, 0.5) !important;
  background-image: none !important;
}

body.light-theme.oferta-page .assurance-card {
  box-shadow:
    0 10px 30px rgba(255, 255, 255, 0.3),
    0 18px 45px rgba(0, 0, 0, 0.1),
    0 0 60px rgba(214, 0, 0, 0.25) !important;
}

body.light-theme.oferta-page .swiper-button-prev,
body.light-theme.oferta-page .swiper-button-next {
  background: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
}

body.light-theme.oferta-page .swiper-pagination {
  background: var(--accent-red) !important;
}

body.light-theme.kontakt-page .contact-section-title {
  color: var(--text-white);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 10px rgba(0, 0, 0, 0.15);
}

/* Zapewnienie dobrej czytelności dla innych tekstów na stronie kontakt w trybie jasnym */
body.light-theme.kontakt-page .section-lede,
body.light-theme.kontakt-page .rich-list,
body.light-theme.kontakt-page .quote-card,
body.light-theme.kontakt-page .form-card,
body.light-theme.kontakt-page .ampio-cta {
  color: var(--text-light);
}

/* Pull Quote Section */
.pull-quote-section {
  padding: 3rem 5%;
  position: relative;
}

.pull-quote-section .container {
  max-width: 880px;
  margin: 0 auto;
}

.pull-quote-card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 2.25rem;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 0, 0.2),
    rgba(255, 0, 0, 0.05)
  );
  border: 1px solid rgba(255, 0, 0, 0.35);
  box-shadow: 0 20px 45px rgba(255, 0, 0, 0.18);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pull-quote-card::before {
  content: "\201C";
  position: absolute;
  top: -36px;
  left: 26px;
  font-size: 6.5rem;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.pull-quote-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-red);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.14);
  border: 1px solid rgba(255, 0, 0, 0.28);
  box-shadow: 0 10px 26px rgba(255, 0, 0, 0.18);
}

body.light-theme .pull-quote-label {
  background: rgba(214, 0, 0, 0.08);
  border-color: rgba(214, 0, 0, 0.24);
  color: var(--accent-red);
}

.pull-quote-card blockquote {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 500;
}

.pull-quote-card cite {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.pull-quote-card cite::before {
  content: "—";
  opacity: 0.6;
}

body.light-theme .pull-quote-card {
  background: linear-gradient(
    135deg,
    rgba(214, 0, 0, 0.14),
    rgba(214, 0, 0, 0.03)
  );
  border: 1px solid rgba(214, 0, 0, 0.35);
  box-shadow: 0 18px 42px rgba(214, 0, 0, 0.14);
  color: var(--text-light);
}

body.light-theme .pull-quote-card::before {
  color: rgba(214, 0, 0, 0.18);
}

body.light-theme .pull-quote-card cite {
  color: rgba(214, 0, 0, 0.75);
}

@media (max-width: 900px) {
  .pull-quote-section {
    padding: 2.75rem 1.75rem;
  }

  .pull-quote-card {
    padding: 2.25rem 1.9rem;
  }

  .pull-quote-card blockquote {
    font-size: 1.15rem;
  }
}

@media (max-width: 600px) {
  .pull-quote-section {
    padding: 2.25rem 1.25rem;
  }

  .pull-quote-card {
    padding: 2rem 1.6rem;
    border-radius: 18px;
  }

  .pull-quote-card blockquote {
    font-size: 1.05rem;
  }
}

h1 {
  font-size: 3.1rem;
  margin-bottom: 1.5rem;
}
body.realizacje-page .hero {
  background-image: url("../images/optimized_all/pixlr-image-generator-68d161a2362456480d4dc626 (1).webp");
  background-image: image-set(
    url("../images/optimized_all/pixlr-image-generator-68d161a2362456480d4dc626 (1).webp")
      type("image/webp"),
    url("../images/optimized_all/pixlr-image-generator-68d161a2362456480d4dc626 (1).webp")
      type("image/webp")
  );
  background-size: cover;
  background-position: right center;
}

/* Realizacje Page Light Theme Adjustments */
body.light-theme.realizacje-page .support-grid article h3 {
  color: #ffffff !important;
}

body.light-theme.realizacje-page .stat-card {
  color: #0a0a0c !important;
}

body.light-theme.realizacje-page .stat-card strong,
body.light-theme.realizacje-page .stat-card span {
  color: #0a0a0c !important;
}

/* Usuń tło z sekcji hero na stronie blog w trybie ciemnym */
/* Zastosuj nowy obraz tła dla strony blog w trybie ciemnym */
body:not(.light-theme).blog-page .hero {
  background-image: url("../images/optimized_all/blog-hero.webp");
  background-image: image-set(
    url("../images/optimized_all/blog-hero.webp") type("image/webp"),
    url("../images/optimized_all/blog-hero.webp") type("image/webp")
  );
  background-size: cover;
  background-position: right center;
}

/* Zastosuj nowy obraz tła dla strony blog w trybie jasnym */
body.light-theme.blog-page .hero {
  background-image: url("../images/optimized_all/blog-hero.webp");
  background-image: image-set(
    url("../images/optimized_all/blog-hero.webp") type("image/webp"),
    url("../images/optimized_all/blog-hero.webp") type("image/webp")
  );
  background-size: cover;
  background-position: right center;
}

/* Zastosuj nowy obraz tła dla strony o-mnie w trybie ciemnym */
body:not(.light-theme).o-mnie-page .hero {
  background-image: url("../images/optimized_all/o-nas-baner.webp");
  background-image: image-set(
    url("../images/optimized_all/o-nas-baner.webp") type("image/webp"),
    url("../images/optimized_all/o-nas-baner.webp") type("image/webp")
  );
  background-size: cover;
  background-position: 30% center;
}

/* Zastosuj nowy obraz tła dla strony o-mnie w trybie jasnym */
body.light-theme.o-mnie-page .hero {
  background-image: url("../images/optimized_all/o-nas-baner.webp");
  background-image: image-set(
    url("../images/optimized_all/o-nas-baner.webp") type("image/webp"),
    url("../images/optimized_all/o-nas-baner.webp") type("image/webp")
  );
  background-size: cover;
  background-position: 30% center;
}
.hero.contact-hero {
  background-image: url("../images/optimized_all/kontakt-baner.webp");
  background-image: image-set(
    url("../images/optimized_all/kontakt-baner.webp") type("image/webp"),
    url("../images/optimized_all/kontakt-baner.webp") type("image/webp")
  );
  background-size: cover;
  background-position: right center;
}

/* Dodatkowe style dla lepszej widoczności tekstu na nowym tle */
.hero.contact-hero h1 {
  text-shadow:
    0 12px 34px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(255, 0, 0, 0.28),
    0 0 2px rgba(255, 255, 255, 0.35);
  -webkit-text-stroke: 1.3px rgba(0, 0, 0, 0.6);
  paint-order: stroke fill;
}

body.light-theme.ampio-page .page-hero {
  background:
    image-set(
      url("../images/optimized_all/ampio-baner.webp") type("image/webp"),
      url("../images/optimized_all/ampio-baner.webp") type("image/webp")
    ),
    radial-gradient(circle at 18% 20%, rgba(214, 0, 0, 0.18), transparent 55%),
    radial-gradient(circle at 82% 15%, rgba(214, 0, 0, 0.12), transparent 45%),
    linear-gradient(
      120deg,
      rgba(246, 246, 248, 0.94),
      rgba(232, 232, 240, 0.96)
    );
  background-size: cover;
  background-position: right center;
}

/* Zapewnienie dobrej widoczności tekstu w sekcji hero na stronie ampio w trybie jasnym */
body.light-theme.ampio-page .page-hero h1 {
  color: var(--text-white);
  text-shadow:
    0 12px 34px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(214, 0, 0, 0.28),
    0 0 2px rgba(255, 255, 255, 0.35);
  -webkit-text-stroke: 1.3px rgba(0, 0, 0, 0.6);
  paint-order: stroke fill;
}

/* Tło strony ampio w trybie jasnym */
body.light-theme.ampio-page .background-container {
  background-image: url("../images/optimized_all/tlo-jasne-do-stron.webp") !important;
  background-image: image-set(
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp"),
    url("../images/optimized_all/tlo-jasne-do-stron.webp") type("image/webp")
  ) !important;
}

/* Specjalna nakładka dla strony ampio w trybie jasnym - dopasowana do ogólnego jasnego tła */
body.light-theme.ampio-page .background-overlay {
  background-color: rgba(255, 255, 255, 0.7);
}

/* Dodatkowe style dla zapewnienia dobrej czytelności na stronie ampio.html w trybie jasnym */
body.light-theme.ampio-page .section-kicker,
body.light-theme.ampio-page .section-lede,
body.light-theme.ampio-page .feature-description p,
body.light-theme.ampio-page .benefit-card p,
body.light-theme.ampio-page .timeline-step-content p,
body.light-theme.ampio-page .ampio-cta p {
  color: var(--text-light);
}

/* Poprawki dla czytelności tekstu na ciemnych kartach w trybie jasnym */
body.light-theme.ampio-page .ampio-prep p,
body.light-theme.ampio-page .ampio-assurance p,
body.light-theme.ampio-page .ampio-assurance ul {
  color: #ffffff;
}

/* Ustawienie czarnego koloru dla nagłówków w sekcji produktów na stronie Ampio w trybie jasnym */
body.light-theme.ampio-page #produkty h2 {
  color: #000000;
}

/* Ampio Page Light Theme Headings */
body.light-theme.ampio-page #produkty .product-card h3,
body.light-theme.ampio-page .ampio-prep article h3,
body.light-theme.ampio-page .ampio-assurance article h3 {
  color: #ffffff !important;
}

@media (max-width: 768px) {
  body:not(.index-page) .header-actions {
    position: relative;
  }

  body:not(.index-page) .mobile-menu-btn {
    position: relative;
    z-index: 1101;
  }

  body:not(.index-page) .header-nav-mobile {
    position: fixed;
    top: 4.5rem;
    right: 1.5rem;
    left: auto;
    min-width: 200px;
    width: auto;
    max-width: 280px;
    z-index: 1100;
  }
}

body.ampio-page .hero {
  background-image: url("../images/optimized_all/ampio-baner.webp");
  background-image: image-set(
    url("../images/optimized_all/ampio-baner.webp") type("image/webp"),
    url("../images/optimized_all/ampio-baner.webp") type("image/webp")
  );
  background-size: cover;
  background-position: right center;
}

body.light-theme .hero.contact-hero {
  background:
    image-set(
      url("../images/optimized_all/kontakt-baner.webp") type("image/webp"),
      url("../images/optimized_all/kontakt-baner.webp") type("image/webp")
    ),
    radial-gradient(circle at 18% 20%, rgba(214, 0, 0, 0.18), transparent 55%),
    radial-gradient(circle at 82% 15%, rgba(214, 0, 0, 0.12), transparent 45%),
    linear-gradient(
      120deg,
      rgba(246, 246, 248, 0.94),
      rgba(232, 232, 240, 0.96)
    );
  background-size: cover;
  background-position: right center;
}

.hero-mobile-visual {
  display: none;
  position: relative;
}

@keyframes heroMobileFloat {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
  40% {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.32);
  }
  70% {
    transform: translateY(6px) scale(0.995);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 768px) {
  body.realizacje-page .hero,
  body.blog-page .hero,
  body.o-mnie-page .hero,
  body.ampio-page .hero,
  .hero.contact-hero,
  body.light-theme.ampio-page .page-hero {
    background-position: center top;
  }

  .ampio-page .hero-background {
    background-position: center top !important;
  }

  .ampio-page .hero {
    background: none;
    background-color: #050507;
    min-height: auto;
    padding: clamp(12rem, 34vw, 16rem) 0 3rem;
    align-items: center;
    text-align: center;
    gap: 1.4rem;
    overflow: hidden;
    isolation: isolate;
  }

  .ampio-page .hero-content {
    align-items: center;
    justify-content: flex-start;
    padding: 0 1.5rem;
    gap: 0;
    width: 100%;
  }

  .ampio-page .hero-background {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: saturate(1.05);
    opacity: 0.65;
    z-index: 0 !important;
    pointer-events: none;
  }

  .ampio-page .hero-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block !important;
    background: linear-gradient(
      180deg,
      rgba(5, 5, 7, 0.82),
      rgba(5, 5, 7, 0.48)
    );
    z-index: 1 !important;
    opacity: 1;
    pointer-events: none;
  }

  .ampio-page .hero-text {
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 3;
  }

  .ampio-page .hero-text .hero-line.hero-line-1 {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .ampio-page .hero-text .hero-line.hero-line-1::after {
    content: "";
    width: 52px;
    height: 3px;
    margin-top: 0.25rem;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.85),
      rgba(255, 0, 0, 0.35)
    );
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.35);
  }

  .ampio-page .hero-text .hero-line.hero-line-2 {
    display: block;
    margin-top: 0.9rem;
    font-size: clamp(1.65rem, 6vw, 2.1rem);
  }

  body.o-mnie-page .hero,
  body.blog-page .hero,
  body.realizacje-page .hero,
  body.kontakt-page .hero.contact-hero {
    background: none;
    background-color: #050507;
    padding: clamp(11rem, 30vw, 14rem) 0 3rem;
    overflow: hidden;
  }

  body.o-mnie-page .hero-content,
  body.blog-page .hero-content,
  body.realizacje-page .hero-content,
  body.kontakt-page .hero-content {
    padding: 0 1.5rem;
    width: 100%;
  }

  body.o-mnie-page .hero-background,
  body.blog-page .hero-background,
  body.realizacje-page .hero-background,
  body.kontakt-page .hero-background {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: saturate(1.05);
    opacity: 0.65;
    z-index: 0 !important;
    pointer-events: none;
  }

  body.o-mnie-page .hero-overlay,
  body.blog-page .hero-overlay,
  body.realizacje-page .hero-overlay,
  body.kontakt-page .hero-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block !important;
    background: linear-gradient(
      180deg,
      rgba(5, 5, 7, 0.92) 0%,
      rgba(5, 5, 7, 0.82) 30%,
      rgba(5, 5, 7, 0) 60%,
      rgba(5, 5, 7, 0.7) 85%,
      rgba(5, 5, 7, 0.95) 100%
    );
    z-index: 1 !important;
    opacity: 1;
    pointer-events: none;
  }

  .ampio-page .hero::before,
  .ampio-page .hero::after {
    display: none;
  }

  .hero-mobile-visual {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 22px;
    padding: 1rem;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0)
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 4;
    animation: heroMobileFloat 9s ease-in-out infinite;
  }

  .hero-mobile-visual::before {
    content: "";
    position: absolute;
    inset: -14% -18% -24%;
    background-image: url("../images/optimized_all/ampio-baner.webp");
    background-size: cover;
    background-position: center;
    border-radius: 26px;
    filter: blur(26px) saturate(1.15);
    opacity: 0.45;
    z-index: 0;
  }

  .hero-mobile-visual picture,
  .hero-mobile-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    position: relative;
    z-index: 1;
  }
}

.zoomable-cert {
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.certificate-card:hover .zoomable-cert {
  transform: scale(1.05);
} /* Podstrony realizacji */
body.project-page .hero-content-below {
  padding: 4rem 5%;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
}

.project-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-hero .hero-eyebrow::after {
  content: "";
  display: inline-block;
  height: 1px;
  width: 80px;
  background: var(--accent-red);
  opacity: 0.6;
}

.project-intro-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2.5rem;
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-stat {
  flex: 1 1 160px;
  background: rgba(20, 20, 20, 0.75);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.project-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-story {
  padding: 5rem 5%;
  position: relative;
  z-index: 3;
}

.project-story-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-story-card {
  background: rgba(20, 20, 20, 0.78);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.project-story-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.project-highlights {
  padding: 5rem 5%;
}

.project-highlights .content-list {
  margin-top: 1.25rem;
}

.project-system-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2.5rem;
}

.project-system-card {
  background: rgba(20, 20, 20, 0.78);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.project-system-card strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-red);
}

.project-timeline {
  padding: 5rem 5%;
}

.project-timeline-list {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.project-timeline-item {
  background: rgba(20, 20, 20, 0.78);
  border-radius: 18px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.project-timeline-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.project-gallery-section {
  padding: 5rem 5%;
}

.project-gallery-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.project-gallery-note {
  font-size: 0.9rem;
  opacity: 0.75;
}

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

.project-gallery figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.32);
  aspect-ratio: 4 / 3;
  position: relative;
  display: block;
}

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

.project-gallery figure.rotate-90 {
  --rotate-angle: 90deg;
  --rotate-scale: 1.34;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-gallery figure.rotate-90 picture {
  width: 100%;
  height: 100%;
  display: flex;
}

.project-gallery figure.rotate-90 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(var(--rotate-angle)) scale(var(--rotate-scale));
  transform-origin: center;
}

.gallery-slot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 0, 0.1),
    rgba(255, 0, 0, 0.02)
  );
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.project-gallery figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.75;
}

.project-next {
  padding: 5rem 5%;
}

.project-next-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-next-card {
  background: rgba(20, 20, 20, 0.78);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-next-card .cta-button {
  align-self: flex-start;
}

@media (max-width: 768px) {
  body.project-page .hero-content-below {
    padding: 3.5rem 1.5rem;
  }

  .project-story,
  .project-highlights,
  .project-timeline,
  .project-gallery-section,
  .project-next {
    padding: 3.5rem 1.5rem;
  }
}

/* Nowy layout storytelling dla podstron projektowych */
.project-showcase {
  padding: 7rem 5% 4rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.project-hero-lede {
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 1.75rem auto 2.5rem;
  color: var(--text-light);
  opacity: 0.9;
}

.project-highlight-pills {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.project-pill {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-light);
}

.project-emotions {
  padding: 5rem 5%;
}

.project-emotions-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.project-emotions-quote {
  background: rgba(20, 20, 20, 0.7);
  border-radius: 22px;
  padding: 2.2rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
}

.project-emotions-quote blockquote {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  color: var(--text-white);
  position: relative;
}

.project-emotions-quote blockquote::before {
  content: "“";
  font-size: 3rem;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  color: rgba(255, 255, 255, 0.12);
}

.project-emotions-quote cite {
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.project-emotions-story h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.project-emotions-story p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.project-story-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.project-story-list li {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
}

.project-story-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
}

.project-senses {
  padding: 5rem 5%;
}

.project-sense-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-sense-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.8rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.project-sense-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.project-sense-card p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.project-journey {
  padding: 5rem 5%;
}

.project-journey-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-journey-card {
  background: rgba(20, 20, 20, 0.72);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-journey-card h3 {
  font-size: 1.2rem;
  color: var(--text-white);
}

.project-journey-card p {
  color: rgba(255, 255, 255, 0.78);
}

.project-gallery-section {
  background: transparent;
}

body.light-theme .project-gallery-section {
  background: transparent;
}

.project-callout {
  padding: 5rem 5% 6rem;
}

.project-callout-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(
    140deg,
    rgba(28, 28, 28, 0.88),
    rgba(20, 20, 20, 0.9)
  );
  border-radius: 28px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.4);
}

.project-callout-card h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.project-callout-card p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.project-callout-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .project-showcase {
    padding-top: 5.5rem;
  }

  .project-hero-lede {
    font-size: 1.05rem;
  }

  .project-callout-card {
    padding: 2.4rem 1.8rem;
  }
}

.project-back-nav {
  padding: 3rem 5% 0;
  max-width: 1100px;
  margin: 0 auto;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent-red);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

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

.project-back-link:hover {
  transform: translateX(-2px);
  color: var(--accent-red-light);
}

/* Improvements for text visibility in light mode on project pages - updated with !important */
body.light-theme.project-page .project-hero-lede {
  color: #000000 !important;
}

body.light-theme.project-page .project-pill {
  color: #ffffff !important;
  background: rgba(
    214,
    0,
    0,
    0.8
  ) !important; /* More opaque background for better contrast */
  border: 1px solid rgba(214, 0, 0, 0.8) !important;
}

body.light-theme.project-page .project-emotions-quote blockquote {
  color: #ffffff !important; /* White text on dark background */
}

body.light-theme.project-page .project-emotions-quote cite {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.light-theme.project-page .project-emotions-story p {
  color: #000000 !important;
}

body.light-theme.project-page .project-story-list li {
  color: #000000 !important;
}

body.light-theme.project-page .project-sense-card p {
  color: #000000 !important;
}

body.light-theme.project-page .project-journey-card p {
  color: #000000 !important;
}

body.light-theme.project-page .project-callout-card p {
  color: #ffffff !important; /* White text on dark background */
}

body.light-theme.project-page .project-callout-card h2 {
  color: #ffffff !important; /* White text on dark background */
}

body.light-theme.project-page .project-emotions-story h2,
body.light-theme.project-page .project-senses h2,
body.light-theme.project-page .project-journey h2,
body.light-theme.project-page .project-showcase h1,
body.light-theme.project-page .project-callout h2 {
  color: #000000 !important; /* Ensure headings are dark in light mode */
}

body.light-theme.project-page .project-emotions-quote {
  background: rgba(
    214,
    0,
    0,
    0.15
  ) !important; /* Slightly darker background for better contrast */
}

body.light-theme.project-page .project-sense-card {
  background: rgba(
    214,
    0,
    0,
    0.08
  ) !important; /* Slightly darker background for better contrast */
  border: 1px solid rgba(214, 0, 0, 0.2) !important;
}

body.light-theme.project-page .project-journey-card {
  background: rgba(
    0,
    0,
    0,
    0.05
  ) !important; /* Darker background for better contrast */
}

body.light-theme.project-page .project-callout-card {
  background: linear-gradient(
    140deg,
    rgba(214, 0, 0, 0.8),
    rgba(180, 0, 0, 0.8)
  ) !important; /* Darker background for better contrast */
}

/* Adjust gallery section text */
body.light-theme.project-page .project-gallery figcaption {
  color: #000000 !important;
  opacity: 0.8;
}

/* Ensure list items are visible */
body.light-theme.project-page .content-list,
body.light-theme.project-page .project-story-list {
  color: #000000 !important;
}

/* Specific fix for project details */
body.light-theme.project-page .project-stat,
body.light-theme.project-page .project-story-card {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #000000 !important;
}

/* Timeline items */
body.light-theme.project-page .project-timeline-item {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #000000 !important;
}

/* Next project cards */
body.light-theme.project-page .project-next-card {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #000000 !important;
}

/* Specific improvements for project text in light mode - ensuring high specificity */
body.light-theme.project-page .project-emotions-story p {
  color: #000000 !important; /* Ensure text is black in light mode */
}

body.light-theme.project-page .project-sense-card p {
  color: #000000 !important; /* Ensure text is black in light mode */
}

body.light-theme.project-page .project-sense-card h3 {
  color: #000000 !important; /* Ensure headings are black in light mode */
}

/* Specific rules for the list items in emotions section */
body.light-theme.project-page .project-emotions-story .project-story-list li {
  color: #000000 !important;
}

/* Ensure all paragraph text on project pages is black in light mode */
body.light-theme.project-page p {
  color: #000000 !important;
}

/* Specific rule for quotes in project pages - making them black in light mode */
body.light-theme.project-page .project-emotions-quote blockquote,
body.light-theme.project-page blockquote {
  color: #000000 !important;
}

body.light-theme.project-page .project-emotions-quote cite,
body.light-theme.project-page cite {
  color: #000000 !important;
}

/* Specific rule for hero pills on product pages - making them black in light mode */
body.light-theme.project-page .hero-pill {
  color: #000000 !important;
  background: rgba(214, 0, 0, 0.15) !important;
}

/* Specific rule for spec cards - making text white on dark background in light mode */
body.light-theme.project-page .spec-card {
  background: rgba(20, 20, 20, 0.85) !important;
  color: #ffffff !important;
}

body.light-theme.project-page .spec-card h4,
body.light-theme.project-page .spec-card p,
body.light-theme.project-page .spec-card .spec-metric,
body.light-theme.project-page .spec-card .spec-metric strong,
body.light-theme.project-page .spec-card .spec-metric span {
  color: #ffffff !important;
}

body.lightbox-open {
  overflow: hidden;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.project-lightbox.is-visible {
  opacity: 1;
  visibility: visible;
}

.project-lightbox .lightbox-stage {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1;
  /* Używamy overflow: visible, aby zdjęcia nie były obcinane */
  overflow: visible;
}

.project-lightbox .lightbox-image {
  --rotate-angle: 90deg;
  border-radius: 18px;
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.45);
  object-fit: contain; /* Zmienione z 'cover' na 'contain', aby nie ucinać zdjęć */
  display: block;
  /* Ustawiamy ograniczenia maksymalne, ale pozwalamy na elastyczne dopasowanie */
  max-width: calc(95vw - 4rem);
  max-height: calc(90vh - 4rem);
  /* Centralizujemy obraz w kontenerze */
  margin: auto;
  /* Usuwamy sztywne wymagania szerokości i wysokości */
  width: auto;
  height: auto;
}

.project-lightbox .lightbox-image.is-rotated-90 {
  transform: rotate(var(--rotate-angle));
  object-fit: contain; /* Zmienione z 'cover' na 'contain', aby nie ucinać zdjęć po obrocie */
  width: auto;
  height: auto;
}

.project-lightbox.lightbox-portrait-compact .lightbox-stage {
  max-width: 60vh;
  max-height: 90vh;
  padding: 1rem;
}

/* Upewniamy się, że obraz w trybie kompaktowym również nie jest obcinany */
.project-lightbox.lightbox-portrait-compact .lightbox-image {
  max-width: calc(60vh - 2rem);
  max-height: calc(90vh - 2rem);
  width: auto;
  height: auto;
}

/* Dla dużych ekranów dodajemy dodatkowe ograniczenia szerokości */
@media (min-width: 1200px) {
  .project-lightbox .lightbox-stage {
    max-width: min(1080px, 95vw);
  }
}

.project-lightbox .lightbox-counter {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #fff;
}

.project-lightbox button {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.project-lightbox .lightbox-nav.show {
  opacity: 1;
}

.project-lightbox .lightbox-stage:hover .lightbox-nav,
.project-lightbox .lightbox-stage:focus-within .lightbox-nav {
  opacity: 1;
}

.project-lightbox .lightbox-nav {
  opacity: 0.85;
  z-index: 2;
}

@media (max-width: 768px) {
  .project-lightbox {
    padding: 1rem;
  }

  .project-lightbox .lightbox-nav {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}

body {
}

body.light-theme .certificate-card p {
  color: rgba(30, 30, 34, 0.75);
}

/* --- Animation Enhancements for Realizacje Page --- */

/* 1. Project Card Enhancements */
.project-card .project-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card .project-meta {
  margin-top: auto; /* Pushes meta to the bottom */
  padding-top: 1rem;
}

.project-card img {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover img {
  transform: scale(1.05);
}

/* Removed specific margin for project card CTA buttons to allow proper filling of space */

.project-card:hover .cta-button.secondary {
  /* No change on hover needed for visibility */
}

/* 2. Timeline Animations */
.ampio-timeline::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 2.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.ampio-timeline.animate::before {
  transform: scaleY(1);
}

.timeline-step {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.ampio-timeline.animate .timeline-step {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger the delay for timeline steps */
.ampio-timeline.animate .timeline-step:nth-child(1) {
  transition-delay: 0.2s;
}
.ampio-timeline.animate .timeline-step:nth-child(2) {
  transition-delay: 0.3s;
}
.ampio-timeline.animate .timeline-step:nth-child(3) {
  transition-delay: 0.4s;
}
.ampio-timeline.animate .timeline-step:nth-child(4) {
  transition-delay: 0.5s;
}
.ampio-timeline.animate .timeline-step:nth-child(5) {
  transition-delay: 0.6s;
}

/* 3. Stat Card Animations (Stagger will be handled by JS) */
.stat-card {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.stat-grid.stagger-activated .stat-card {
  opacity: 1;
  transform: translateY(0);
}

.support-grid article {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.support-grid.stagger-activated article {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .project-lightbox {
    padding: 1.5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.2rem;
  }

  .lightbox-close {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.2rem;
  }
}

.policy-page .background-overlay {
  opacity: 0.86;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

.policy-hero {
  padding: 9rem 0 4rem;
}

.policy-hero .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: left;
}

/* Sekcja kontaktowa nad treścią polityki prywatności */
.policy-contact {
  padding: 3rem 0 1rem;
}

.policy-contact .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.policy-contact-card {
  position: relative;
  background: rgba(18, 18, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 2.2rem 2.2rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  margin-bottom: 3rem;
}

.policy-contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    140% 130% at 85% 0%,
    rgba(214, 0, 0, 0.18) 0%,
    transparent 58%
  );
  opacity: 0.65;
  pointer-events: none;
  border-radius: 22px;
}

.policy-contact-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.policy-meta {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.policy-meta-label {
  display: inline-block;
  min-width: 90px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 0.75rem;
}

.policy-meta-value,
.policy-meta-link {
  color: rgba(255, 255, 255, 0.92);
}

.policy-meta-link {
  text-decoration: none;
  border-bottom: 1px solid rgba(214, 0, 0, 0.35);
  padding-bottom: 0.1rem;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.policy-meta-link:hover {
  color: var(--accent-red-light);
  border-color: var(--accent-red-light);
}

.policy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(214, 0, 0, 0.18);
  color: var(--accent-red-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.policy-hero h1 {
  margin-top: 1.8rem;
  font-size: 3.4rem;
  letter-spacing: -0.02em;
}

.policy-hero p {
  margin-top: 1.6rem;
  font-size: 1.1rem;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
}

.policy-content {
  padding: 0 0 6rem;
}

.policy-content .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.policy-card {
  position: relative;
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 3rem clamp(2rem, 3vw, 3.2rem);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
  overflow: visible; /* Zmienione z hidden na visible, aby dane kontaktowe nie były obcinane */
}

.policy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    140% 130% at 85% 0%,
    rgba(214, 0, 0, 0.25) 0%,
    transparent 58%
  );
  opacity: 0.75;
  pointer-events: none;
}

.policy-card-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2.4rem;
}

.policy-card-header h2 {
  font-size: 2.1rem;
  margin-bottom: 1.25rem;
}

.policy-meta {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 1.5rem 0 0; /* Dodano górny margines dla lepszego oddzielenia od nagłówka */
  list-style: none;
}

.policy-meta-label {
  display: inline-block;
  min-width: 90px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 0.75rem;
}

.policy-meta-value,
.policy-meta-link {
  color: rgba(255, 255, 255, 0.92);
}

.policy-meta-link {
  text-decoration: none;
  border-bottom: 1px solid rgba(214, 0, 0, 0.35);
  padding-bottom: 0.1rem;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.policy-meta-link:hover {
  color: var(--accent-red-light);
  border-color: var(--accent-red-light);
}

.policy-card-body {
  position: relative;
  z-index: 1;
}

.policy-list {
  counter-reset: policy-counter;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-list > li {
  position: relative;
  counter-increment: policy-counter;
  padding-left: 4rem;
}

.policy-list > li::before {
  content: counter(policy-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-red), rgba(214, 0, 0, 0.7));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.05rem;
  box-shadow: 0 12px 28px rgba(214, 0, 0, 0.35);
}

.policy-list h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.policy-list p,
.policy-list ul {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
}

.policy-list ul {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.policy-list ul li::marker {
  color: var(--accent-red-light);
}

@media (max-width: 1024px) {
  .policy-hero {
    padding: 7rem 0 3.5rem;
  }

  .policy-hero h1 {
    font-size: 3rem;
  }

  .policy-card {
    padding: 2.6rem 2.2rem;
    border-radius: 22px;
  }
}

@media (max-width: 768px) {
  .policy-hero {
    padding: 6rem 0 3rem;
  }

  .policy-hero h1 {
    font-size: 2.4rem;
  }

  .policy-list > li {
    padding-left: 3rem;
  }

  .policy-list > li::before {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.95rem;
    border-radius: 14px;
  }

  .policy-card {
    padding: 2.4rem 1.8rem;
  }
}

body.light-theme.policy-page .background-overlay {
  background: linear-gradient(
    180deg,
    rgba(245, 245, 247, 0.94) 0%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

body.light-theme .policy-hero p {
  color: rgba(32, 32, 32, 0.78);
}

body.light-theme .policy-contact-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(214, 0, 0, 0.18);
  box-shadow: 0 24px 40px rgba(214, 0, 0, 0.16);
}

body.light-theme .policy-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(214, 0, 0, 0.18);
  box-shadow: 0 32px 60px rgba(214, 0, 0, 0.16);
}

body.light-theme .policy-card::before {
  background: radial-gradient(
    140% 130% at 85% 0%,
    rgba(214, 0, 0, 0.18) 0%,
    transparent 60%
  );
}

body.light-theme .policy-meta-label {
  color: rgba(10, 10, 10, 0.6);
}

body.light-theme .policy-meta-value,
body.light-theme .policy-meta-link,
body.light-theme .policy-list p,
body.light-theme .policy-list ul {
  color: rgba(20, 20, 20, 0.85);
}

body.light-theme .policy-list > li::before {
  box-shadow: 0 18px 36px rgba(214, 0, 0, 0.25);
}

body.light-theme .policy-list ul li::marker {
  color: var(--accent-red);
}

@media (max-width: 768px) {
  .hero.hero--mobile-stack {
    background: none;
    background-color: #050507;
    min-height: auto;
    padding: clamp(12rem, 34vw, 16rem) 0 3rem;
    align-items: center;
    text-align: center;
    gap: 1.4rem;
    overflow: hidden;
    isolation: isolate;
  }

  .hero.hero--mobile-stack .hero-content {
    align-items: center;
    justify-content: flex-start;
    padding: 0 1.5rem;
    gap: 0;
    width: 100%;
  }

  .hero.hero--mobile-stack .hero-background {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    filter: saturate(1.05);
    opacity: 0.65;
    z-index: 0 !important;
    pointer-events: none;
  }

  .hero.hero--mobile-stack .hero-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block !important;
    background: linear-gradient(
      180deg,
      rgba(5, 5, 7, 0.82),
      rgba(5, 5, 7, 0.48)
    );
    z-index: 1 !important;
    opacity: 1;
    pointer-events: none;
  }

  .hero.hero--mobile-stack .hero-text {
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 3;
  }

  .hero.hero--mobile-stack .hero-text .hero-line.hero-line-1 {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .hero.hero--mobile-stack .hero-text .hero-line.hero-line-1::after {
    content: '';
    width: 52px;
    height: 3px;
    margin-top: 0.25rem;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.85),
      rgba(255, 0, 0, 0.35)
    );
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.35);
  }

  .hero.hero--mobile-stack .hero-text .hero-line.hero-line-2 {
    display: block;
    margin-top: 0.9rem;
    font-size: clamp(1.65rem, 6vw, 2.1rem);
  }
}
