/**
 * Hero - cała sekcja mieści się „above the fold” (100dvh / 100svh) bez wewnętrznego scrollu.
 * Obejmuje typowe 13" (niski viewport) dzięki mniejszym odstępom i clamp czcionek.
 */

:root {
  --pc-site-header-height: 3.75rem;
}

#hero.pc-hero-viewport {
  box-sizing: border-box;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#hero.pc-hero-viewport > .pc-hero-viewport__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  justify-content: center;
  min-height: 0;
  /* Dynamiczna wysokość nagłówka (JS: --pc-site-header-height) */
  padding-top: max(0.5rem, calc(var(--pc-site-header-height, 3.75rem) + env(safe-area-inset-top, 0px) + 0.35rem));
  padding-bottom: clamp(0.25rem, 0.8dvh, 0.75rem);
  width: 100%;
  max-width: 100%;
}

#hero.pc-hero-viewport .pc-hero-headline {
  margin-bottom: 0.75rem;
}

#hero.pc-hero-viewport .pc-hero-eyebrow {
  flex-shrink: 0;
}

#hero.pc-hero-viewport .pc-hero-headline .pc-hero-line,
#hero.pc-hero-viewport h1 .pc-hero-line {
  display: block;
  font-size: clamp(1.55rem, 4.2vw + 0.4rem, 4.5rem) !important;
  line-height: 1.06;
}

#hero.pc-hero-viewport .pc-hero-sub {
  font-size: 0.95rem !important;
  line-height: 1.45;
}

@media (min-width: 640px) {
  #hero.pc-hero-viewport .pc-hero-sub {
    font-size: 1.05rem !important;
  }
}

@media (min-width: 768px) {
  #hero.pc-hero-viewport .pc-hero-headline {
    margin-bottom: 1.25rem;
  }
  #hero.pc-hero-viewport .pc-hero-line {
    font-size: clamp(1.85rem, 4.8vw + 0.5rem, 5.5rem) !important;
  }
  #hero.pc-hero-viewport .pc-hero-sub {
    font-size: 1.1rem !important;
  }
}

#hero.pc-hero-viewport .pc-hero-bottom {
  margin-top: clamp(0.75rem, 2.5dvh, 1.5rem) !important;
  padding-top: clamp(0.4rem, 1.2dvh, 0.9rem) !important;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

#hero.pc-hero-viewport .pc-hero-cta {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

#hero.pc-hero-viewport .pc-hero-cta a {
  padding: 0.7rem 1.35rem;
  font-size: 0.8125rem;
  white-space: nowrap;
  flex-shrink: 0;
}

#hero.pc-hero-viewport .pc-hero-cta a[href^='#'] {
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.1);
}
#hero.pc-hero-viewport .pc-hero-cta a[href^='kontakt'] {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Krótsze ekrany (MacBook, małe wysokości) - ciaśniej, wciąż czytelnie */
@media (max-height: 820px) {
  #hero.pc-hero-viewport .pc-hero-eyebrow {
    margin-bottom: 0.4rem;
  }
  #hero.pc-hero-viewport .pc-hero-headline {
    margin-bottom: 0.6rem;
  }
  #hero.pc-hero-viewport .pc-hero-line {
    font-size: clamp(1.35rem, 3.6vw + 0.3rem, 3.75rem) !important;
  }
  #hero.pc-hero-viewport .pc-hero-sub {
    font-size: 0.88rem !important;
  }
  @media (min-width: 768px) {
    #hero.pc-hero-viewport .pc-hero-sub {
      font-size: 0.95rem !important;
    }
  }
  #hero.pc-hero-viewport .pc-hero-bottom {
    margin-top: 0.5rem !important;
    padding-top: 0.4rem !important;
  }
}

/* Bardzo wąski mobile - treść dopasowuje się do viewportu bez ucinania */
@media (max-width: 639px) {
  #hero.pc-hero-viewport {
    min-height: 100dvh;
    min-height: 100svh;
  }
  #hero.pc-hero-viewport .pc-hero-headline {
    min-height: clamp(3.25rem, 22vw, 6.5rem);
  }
  #hero.pc-hero-viewport #hero-sub {
    min-height: 3.25em;
  }
  #hero.pc-hero-viewport #hero-stats {
    min-height: 2.75rem;
  }
  #hero.pc-hero-viewport .pc-hero-cta {
    width: 100%;
    flex-wrap: wrap;
  }
  #hero.pc-hero-viewport .pc-hero-cta a {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }
}

#hero.pc-hero-viewport .min-w-\[11ch\] {
  min-width: min(11ch, 100%);
}

#hero.pc-hero-viewport .hero-rotate-inner--wide,
#hero.pc-hero-viewport .hero-rotate-wrap--wide .min-w-\[11ch\] {
  min-width: min(16ch, 100%);
}

#hero.pc-hero-viewport .pc-hero-headline {
  min-height: clamp(4.5rem, 14vw, 9.5rem);
}

#hero.pc-hero-viewport #hero-sub {
  min-height: 4.5em;
}

#hero.pc-hero-viewport #hero-stats {
  min-height: 3.25rem;
}

/* Slajdy usług - stałe sloty (bez skakania między pakietami) */
#hero.pc-hero-viewport.pc-hero--service .pc-hero-headline {
  min-height: clamp(5.25rem, 17vw, 10.5rem);
  margin-bottom: 0.75rem;
}

#hero.pc-hero-viewport.pc-hero--service #hero-line1 {
  min-height: 1.15em;
}

#hero.pc-hero-viewport.pc-hero--service #hero-line2-row {
  display: block;
  min-height: clamp(2.35rem, 5.5vw, 3.75rem);
}

#hero.pc-hero-viewport.pc-hero--service #hero-rotate-wrap,
#hero.pc-hero-viewport.pc-hero--service #hero-rotate-inner {
  display: block;
  width: 100%;
  min-width: 0 !important;
  max-width: 100%;
}

#hero.pc-hero-viewport.pc-hero--service #hero-rotating-word {
  display: block;
  overflow: hidden;
}

#hero.pc-hero-viewport.pc-hero--service #hero-sub {
  min-height: 5.75em;
  max-height: 5.75em;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

#hero.pc-hero-viewport.pc-hero--service .pc-hero-body-row {
  min-height: clamp(10.5rem, 22vh, 12.5rem);
  align-items: flex-start !important;
}

#hero.pc-hero-viewport.pc-hero--service .pc-hero-cta {
  width: auto;
  max-width: none;
  min-width: 0;
  flex-shrink: 0;
}

#hero.pc-hero-viewport.pc-hero--service .pc-hero-cta a {
  min-height: 2.85rem;
  justify-content: center;
}

#hero.pc-hero-viewport.pc-hero--service #hero-stats {
  min-height: 3.25rem;
  align-items: flex-start;
}

#hero.pc-hero-viewport.pc-hero--service .pc-hero-stat {
  min-width: 6.5rem;
}

#hero.pc-hero-viewport.pc-hero--service .pc-hero-bottom {
  margin-top: clamp(0.75rem, 2.5dvh, 1.5rem) !important;
}

/* -- Płynne przejścia tekstu hero (slajdy) -- */
#hero.pc-hero-viewport #hero-line1,
#hero.pc-hero-viewport #hero-rotating-word,
#hero.pc-hero-viewport #hero-sub,
#hero.pc-hero-viewport #hero-stats {
  backface-visibility: hidden;
}

.hero-word-enter {
  animation: heroWordIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-word-exit {
  animation: heroWordOut 0.62s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroWordIn {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(0.28em) scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes heroWordOut {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(-0.2em) scale(0.99);
  }
}

.hero-block-enter {
  animation: heroBlockIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-block-enter--soft {
  animation: heroBlockInSoft 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroBlockIn {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes heroBlockInSoft {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-word-enter,
  .hero-word-exit,
  .hero-block-enter,
  .hero-block-enter--soft {
    animation: none !important;
  }
}

@media (min-width: 1024px) {
  #hero.pc-hero-viewport.pc-hero--service .pc-hero-body-row {
    min-height: 7.5rem;
    align-items: flex-end !important;
  }

  #hero.pc-hero-viewport.pc-hero--service .pc-hero-cta {
    width: auto;
    min-width: 20rem;
  }
}

@media (max-height: 820px) {
  #hero.pc-hero-viewport.pc-hero--service .pc-hero-headline {
    min-height: clamp(4.5rem, 14vw, 8.5rem);
  }

  #hero.pc-hero-viewport.pc-hero--service #hero-sub {
    min-height: 4.75em;
    max-height: 4.75em;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  #hero.pc-hero-viewport.pc-hero--service .pc-hero-body-row {
    min-height: 9rem;
  }
}

/* Strzałki nawigacji - wyśrodkowane pod tekstem hero, nad statystykami */
.pc-hero-slidenav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin-top: clamp(0.85rem, 2.2dvh, 1.35rem);
  margin-bottom: clamp(0.15rem, 0.6dvh, 0.4rem);
  flex-shrink: 0;
}

.pc-hero-slidenav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pc-hero-slidenav__btn:hover {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(129, 140, 248, 0.55);
  color: #fff;
}

.pc-hero-slidenav__btn:active {
  transform: scale(0.96);
}

.pc-hero-slidenav__btn:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.85);
  outline-offset: 2px;
}

html.pc-light #hero .pc-hero-slidenav__btn {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(148, 163, 184, 0.45);
  color: #334155;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

html.pc-light #hero .pc-hero-slidenav__btn:hover {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.45);
  color: #4338ca;
}

#hero.pc-hero-viewport .pc-hero-bottom {
  margin-top: clamp(0.5rem, 1.5dvh, 1rem) !important;
}

/* -- Hero podstron (Tjenester, Portfolio, Blog, Kontakt) - jak strona główna, bez filmu logo -- */
.pc-subpage-hero-viewport.pc-hero-viewport {
  box-sizing: border-box;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pc-subpage-hero-viewport > .pc-subpage-hero-viewport__inner,
.pc-subpage-hero-viewport > .pc-hero-viewport__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  justify-content: center;
  min-height: 0;
  padding-top: max(0.4rem, calc(3.25rem + env(safe-area-inset-top, 0px)));
  padding-bottom: clamp(0.25rem, 0.8dvh, 0.75rem);
  width: 100%;
  max-width: 100%;
}

.pc-subpage-hero-viewport .pc-hero-headline {
  margin-bottom: 0.75rem;
}

.pc-subpage-hero-viewport .pc-hero-eyebrow {
  flex-shrink: 0;
}

.pc-subpage-hero-viewport .pc-hero-headline .pc-hero-line {
  display: block;
  font-size: clamp(1.55rem, 4.2vw + 0.4rem, 4.5rem) !important;
  line-height: 1.06;
}

.pc-subpage-hero-viewport .pc-hero-sub {
  font-size: 0.95rem !important;
  line-height: 1.45;
}

.pc-subpage-hero-viewport .pc-subpage-hero-lead2 {
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .pc-subpage-hero-viewport .pc-hero-sub {
    font-size: 1.05rem !important;
  }

  .pc-subpage-hero-viewport .pc-subpage-hero-lead2 {
    font-size: 0.9375rem;
  }
}

@media (min-width: 768px) {
  .pc-subpage-hero-viewport .pc-hero-headline {
    margin-bottom: 1.25rem;
  }

  .pc-subpage-hero-viewport .pc-hero-line {
    font-size: clamp(1.85rem, 4.8vw + 0.5rem, 5.5rem) !important;
  }

  .pc-subpage-hero-viewport .pc-hero-sub {
    font-size: 1.1rem !important;
  }

  .pc-subpage-hero-viewport .pc-subpage-hero-lead2 {
    font-size: 1rem;
  }
}

.pc-subpage-hero-viewport .pc-hero-bottom {
  margin-top: clamp(0.75rem, 2.5dvh, 1.5rem) !important;
  padding-top: clamp(0.4rem, 1.2dvh, 0.9rem) !important;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.pc-subpage-hero-viewport .pc-hero-cta {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.pc-subpage-hero-viewport .pc-hero-cta a {
  padding: 0.7rem 1.35rem;
  font-size: 0.8125rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-height: 820px) {
  .pc-subpage-hero-viewport .pc-hero-eyebrow {
    margin-bottom: 0.4rem;
  }

  .pc-subpage-hero-viewport .pc-hero-headline {
    margin-bottom: 0.6rem;
  }

  .pc-subpage-hero-viewport .pc-hero-line {
    font-size: clamp(1.35rem, 3.6vw + 0.3rem, 3.75rem) !important;
  }

  .pc-subpage-hero-viewport .pc-hero-sub {
    font-size: 0.88rem !important;
  }

  @media (min-width: 768px) {
    .pc-subpage-hero-viewport .pc-hero-sub {
      font-size: 0.95rem !important;
    }
  }

  .pc-subpage-hero-viewport .pc-hero-bottom {
    margin-top: 0.5rem !important;
    padding-top: 0.4rem !important;
  }
}

@media (max-width: 639px) {
  .pc-subpage-hero-viewport {
    min-height: min(100dvh, 100svh);
  }

  .pc-subpage-hero-viewport .pc-hero-cta {
    width: 100%;
    flex-wrap: wrap;
  }

  .pc-subpage-hero-viewport .pc-hero-cta a {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }
}

html.pc-light .pc-subpage-hero-viewport .pc-hero-headline .text-white {
  color: #0f172a !important;
}

html.pc-light .pc-subpage-hero-viewport .pc-hero-sub {
  color: #334155 !important;
}

html.pc-light .pc-subpage-hero-viewport .pc-subpage-hero-lead2 {
  color: #64748b !important;
}

html.pc-light .pc-subpage-hero-viewport .pc-hero-cta a.border-dark-600 {
  color: #475569;
  border-color: rgba(100, 116, 139, 0.45);
  background: rgba(255, 255, 255, 0.55);
}

html.pc-light .pc-subpage-hero-viewport .pc-hero-bottom {
  border-color: rgba(148, 163, 184, 0.35);
}

html.pc-light .pc-subpage-hero-viewport .pc-hero-bottom a {
  color: #64748b;
}

html.pc-light #hero .pc-hero-bottom a:hover {
  color: #0f172a;
}

/* -- Slajdy usług hero: obrazy tła (desktop 1q–7q, mobile 1am–7am) -- */
#hero .hero-bg-slot {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

#hero .hero-bg-image-wrap {
  opacity: 0;
  transition: opacity 0.55s ease;
  z-index: 1;
}

#hero.pc-hero--service-bg .hero-bg-image-wrap {
  opacity: 1;
}

#hero .hero-bg-image {
  display: block;
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: 100%;
  max-width: none;
}

#hero .hero-bg-image-shade {
  opacity: 0;
  transition: opacity 0.55s ease;
  z-index: 2;
  background:
    linear-gradient(118deg, rgba(2, 6, 23, 0.72) 0%, rgba(2, 6, 23, 0.46) 42%, rgba(15, 23, 42, 0.32) 100%),
    radial-gradient(ellipse 80% 70% at 18% 72%, rgba(2, 6, 23, 0.48), transparent 62%);
}

#hero.pc-hero--service-bg .hero-bg-image-shade {
  opacity: 1;
}

#hero.pc-hero--service-bg #hero-bg-video,
#hero #hero-bg-video.hero-bg-video--hidden {
  opacity: 0 !important;
  visibility: hidden;
}

#hero.pc-hero--service-bg > .absolute.inset-0.bg-dark-950 {
  background-color: rgba(2, 6, 23, 0.28);
}

/* Eyebrow - jaśniejszy „Pixelcraft Works” w trybie ciemnym */
#hero .pc-hero-eyebrow .inline-flex.text-dark-500 {
  color: #e2e8f0 !important;
}

#hero .pc-hero-eyebrow .text-dark-600 {
  color: #a5b4fc !important;
}

#hero .pc-hero-eyebrow #hero-dots .bg-primary-400 {
  background-color: #a5b4fc !important;
}

/* Slajdy usług - linia 2 jak Copilot (gradient fioletowy), ostry tekst */
#hero.pc-hero--service-bg .pc-hero-headline .pc-hero-line.text-white,
#hero.pc-hero--service-bg #hero-line1 {
  text-shadow: none;
  filter: none;
  -webkit-font-smoothing: antialiased;
}

#hero.pc-hero--service-bg #hero-rotating-word.gradient-text {
  background-image: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: none;
  -webkit-font-smoothing: antialiased;
}

#hero.pc-hero--service-bg .pc-hero-sub {
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.35);
}

#hero.pc-hero--service-bg .pc-hero-stat .text-dark-400 {
  text-shadow: none;
}

#hero.pc-hero--service-bg .pc-hero-stat .text-white {
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.3);
}

#hero.pc-hero--service-bg .pc-hero-eyebrow span {
  text-shadow: none;
}

#hero.pc-hero--service-bg #hero-cta-primary {
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.38);
}

#hero.pc-hero--service-bg #hero-cta-secondary {
  box-shadow: 0 4px 20px rgba(2, 6, 23, 0.28);
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
}

/* Tryb ciemny - półprzezroczysty panel pod treścią (czytelność gradientu linii 2) */
#hero.pc-hero--service-bg .pc-hero-viewport__inner > .max-w-6xl {
  position: relative;
  isolation: isolate;
}

html:not(.pc-light) #hero.pc-hero--service-bg .pc-hero-viewport__inner > .max-w-6xl::before {
  content: '';
  position: absolute;
  inset: -0.85rem -1.15rem;
  z-index: -1;
  border-radius: 1.35rem;
  background:
    linear-gradient(145deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.74) 52%, rgba(30, 27, 75, 0.58) 100%);
  border: 1px solid rgba(129, 140, 248, 0.24);
  box-shadow:
    0 18px 52px rgba(2, 6, 23, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Dodatkowy akcent za drugą linią nagłówka */
html:not(.pc-light) #hero.pc-hero--service-bg #hero-line2-row {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
}

html:not(.pc-light) #hero.pc-hero--service-bg #hero-line2-row::after {
  content: '';
  position: absolute;
  left: -0.55rem;
  right: -0.55rem;
  bottom: 0.15rem;
  height: 62%;
  z-index: -1;
  border-radius: 0.65rem;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.22), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(165, 180, 252, 0.14);
  pointer-events: none;
}

html:not(.pc-light) #hero.pc-hero--service-bg #hero-rotating-word.gradient-text {
  background-image: linear-gradient(135deg, #c7d2fe 0%, #ddd6fe 38%, #a5f3fc 100%);
}

html:not(.pc-light) #hero.pc-hero--service-bg .hero-bg-image-shade {
  background:
    linear-gradient(118deg, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.58) 38%, rgba(15, 23, 42, 0.34) 100%),
    radial-gradient(ellipse 72% 68% at 14% 68%, rgba(2, 6, 23, 0.62), transparent 60%);
}

html.pc-light #hero.pc-hero--service-bg .hero-bg-image {
  filter: brightness(1.18) saturate(1.06) contrast(1.04);
}

html.pc-light #hero.pc-hero--service-bg .hero-bg-image-shade {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.48) 0%, rgba(248, 250, 252, 0.34) 45%, rgba(241, 245, 249, 0.22) 100%),
    radial-gradient(ellipse 75% 65% at 16% 70%, rgba(255, 255, 255, 0.28), transparent 58%);
}

html.pc-light #hero.pc-hero--service-bg > .absolute.inset-0.bg-dark-950 {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Tryb jasny - panel pod tekstem + mocniejszy kontrast */
html.pc-light #hero.pc-hero--service-bg .pc-hero-viewport__inner > .max-w-6xl {
  position: relative;
  isolation: isolate;
}

html.pc-light #hero.pc-hero--service-bg .pc-hero-viewport__inner > .max-w-6xl::before {
  content: '';
  position: absolute;
  inset: -0.75rem -1rem;
  z-index: -1;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.pc-light #hero.pc-hero--service-bg .pc-hero-headline .pc-hero-line.text-white,
html.pc-light #hero.pc-hero--service-bg #hero-line1 {
  color: #0f172a !important;
  font-weight: 700;
}

html.pc-light #hero.pc-hero--service-bg #hero-rotating-word.gradient-text {
  background: none !important;
  -webkit-text-fill-color: #4338ca !important;
  color: #4338ca !important;
  font-weight: 700;
}

html.pc-light #hero.pc-hero--service-bg .pc-hero-sub {
  color: #1e293b !important;
  font-weight: 500;
}

html.pc-light #hero.pc-hero--service-bg .pc-hero-stat .text-white {
  color: #312e81 !important;
  font-weight: 700;
}

html.pc-light #hero.pc-hero--service-bg .pc-hero-stat .text-dark-400 {
  color: #475569 !important;
  font-weight: 600;
}

html.pc-light #hero.pc-hero--service-bg .pc-hero-headline .pc-hero-line,
html.pc-light #hero.pc-hero--service-bg #hero-rotating-word,
html.pc-light #hero.pc-hero--service-bg .pc-hero-sub,
html.pc-light #hero.pc-hero--service-bg .pc-hero-stat .text-white,
html.pc-light #hero.pc-hero--service-bg .pc-hero-stat .text-dark-400,
html.pc-light #hero.pc-hero--service-bg .pc-hero-eyebrow span {
  text-shadow: none;
  filter: none;
}

html.pc-light #hero.pc-hero--service-bg .pc-hero-eyebrow .inline-flex.text-dark-500 {
  color: #4338ca !important;
  font-weight: 700;
}

html.pc-light #hero.pc-hero--service-bg .pc-hero-eyebrow .text-dark-600 {
  color: #64748b !important;
}

html.pc-light #hero.pc-hero--service-bg #hero-cta-secondary {
  background-color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

html.pc-light #hero.pc-hero--service-bg .pc-hero-bottom {
  border-color: rgba(148, 163, 184, 0.4);
}

html.pc-light #hero.pc-hero--service-bg .pc-hero-slidenav__btn {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.4);
  color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Mobile - slajdy: tło tylko między menu a marquee (nie pod półprzezroczystymi elementami) */
@media (max-width: 767px) {
  #hero.pc-hero--service-bg-mobile {
    isolation: isolate;
    --hero-mobile-bg-top: calc(3.35rem + env(safe-area-inset-top, 0px));
    --hero-mobile-bg-bottom: 4.35rem;
  }

  #hero.pc-hero--service-bg-mobile #hero-bg-slot {
    inset: var(--hero-mobile-bg-top) 0 var(--hero-mobile-bg-bottom) 0;
    width: auto;
    height: auto;
    min-height: 38vh;
    z-index: 2;
  }

  #hero.pc-hero--service-bg-mobile .hero-bg-image-wrap {
    opacity: 1;
  }

  /* Nieprzezroczyste pasy: strefa menu (góra) i marquee (dół) */
  #hero.pc-hero--service-bg-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--hero-mobile-bg-top);
    z-index: 4;
    pointer-events: none;
  }

  #hero.pc-hero--service-bg-mobile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--hero-mobile-bg-bottom);
    z-index: 4;
    pointer-events: none;
  }

  html:not(.pc-light) #hero.pc-hero--service-bg-mobile::before,
  html:not(.pc-light) #hero.pc-hero--service-bg-mobile::after {
    background: #020617;
  }

  html.pc-light #hero.pc-hero--service-bg-mobile::before,
  html.pc-light #hero.pc-hero--service-bg-mobile::after {
    background: #ffffff;
  }

  #hero.pc-hero--service-bg-mobile > .absolute.inset-0.overflow-hidden.pointer-events-none,
  #hero.pc-hero--service-bg-mobile > .absolute.inset-0.opacity-\[0\.02\] {
    display: none;
  }

  #hero.pc-hero--service-bg-mobile .hero-bg-image-wrap,
  #hero.pc-hero--service-bg-mobile .hero-bg-image-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  /* Rozmyte wypełnienie letterbox + pełny obraz bez ucinania boków */
  #hero.pc-hero--service-bg-mobile .hero-bg-image-wrap::before {
    content: '';
    position: absolute;
    inset: -28%;
    z-index: 0;
    background-image: var(--hero-bg-url, none);
    background-size: cover;
    background-position: center;
    filter: blur(26px) saturate(1.06);
    transform: scale(1.12);
    opacity: 0.62;
  }

  html:not(.pc-light) #hero.pc-hero--service-bg-mobile .hero-bg-image-wrap::before {
    filter: blur(22px) saturate(1.1) brightness(1.06);
    opacity: 0.45;
  }

  html.pc-light #hero.pc-hero--service-bg-mobile {
    background-color: #ffffff;
  }

  html.pc-light #hero.pc-hero--service-bg-mobile > .absolute.inset-0.bg-dark-950 {
    background-color: #ffffff !important;
  }

  html.pc-light #hero.pc-hero--service-bg-mobile .hero-bg-image-wrap {
    background-color: #ffffff;
  }

  /* Tryb jasny — białe letterboxy zamiast kolorowego rozmycia slajdu */
  html.pc-light #hero.pc-hero--service-bg-mobile .hero-bg-image-wrap::before {
    display: none;
  }

  html.pc-light #hero.pc-hero--service-bg-mobile > .absolute.inset-0.overflow-hidden.pointer-events-none {
    opacity: 0;
  }

  html.pc-light #hero.pc-hero--service-bg-mobile > .absolute.bottom-0.h-24,
  html.pc-light #hero.pc-hero--service-bg-mobile > .absolute.bottom-0.md\:h-32 {
    opacity: 1;
    background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%) !important;
  }

  html.pc-light #hero.pc-hero--service-bg-mobile .hero-bg-image {
    filter: none;
  }

  html.pc-light #hero.pc-hero--service-bg-mobile .hero-bg-image-shade {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0) 42%,
        rgba(255, 255, 255, 0) 62%,
        rgba(248, 250, 252, 0.18) 100%
      );
  }

  #hero.pc-hero--service-bg-mobile .hero-bg-image {
    position: relative;
    z-index: 1;
    object-fit: contain;
    object-position: center center;
    width: 100%;
    height: 100%;
  }

  #hero.pc-hero--service-bg-mobile > .absolute.inset-0.bg-dark-950 {
    background-color: rgba(2, 6, 23, 0.08) !important;
  }

  html:not(.pc-light) #hero.pc-hero--service-bg-mobile > .absolute.inset-0.bg-dark-950 {
    background-color: rgba(2, 6, 23, 0.04) !important;
  }

  #hero.pc-hero--service-bg-mobile > .absolute.bottom-0.h-24,
  #hero.pc-hero--service-bg-mobile > .absolute.bottom-0.md\:h-32 {
    opacity: 0.2;
    z-index: 4;
  }

  #hero.pc-hero--service-bg-mobile #home-marquee-strip.pc-hero-marquee-strip {
    background: #020617 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top-color: rgba(51, 65, 85, 0.55) !important;
    box-shadow: none;
    position: relative;
    z-index: 6;
  }

  html.pc-light #hero.pc-hero--service-bg-mobile #home-marquee-strip.pc-hero-marquee-strip {
    background: #ffffff !important;
    border-top-color: rgba(226, 232, 240, 0.85) !important;
    box-shadow: none !important;
    position: relative;
    z-index: 6;
  }

  html.pc-light #hero.pc-hero--service-bg-mobile #home-marquee-strip .marquee-edge-fade {
    opacity: 0;
  }

  #hero.pc-hero--service-bg-mobile .hero-bg-image-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  #hero.pc-hero--service-bg-mobile .pc-hero-viewport__inner {
    position: relative;
    z-index: 5;
  }

  #hero.pc-hero--service-bg-mobile .pc-hero-marquee-anchor {
    position: relative;
    z-index: 6;
  }

  #hero.pc-hero--service-bg-mobile #home-marquee-strip .marquee-edge-fade {
    opacity: 0;
  }

  html:not(.pc-light) #hero.pc-hero--service-bg-mobile .hero-bg-image {
    filter: brightness(1.1) saturate(1.12) contrast(1.03);
  }

  html:not(.pc-light) #hero.pc-hero--service-bg-mobile .hero-bg-image-shade {
    opacity: 0.78;
    background:
      linear-gradient(
        180deg,
        rgba(2, 6, 23, 0.34) 0%,
        rgba(2, 6, 23, 0.08) 36%,
        rgba(2, 6, 23, 0.14) 58%,
        rgba(15, 23, 42, 0.36) 100%
      ),
      radial-gradient(ellipse 92% 72% at 50% 52%, rgba(2, 6, 23, 0.1), transparent 70%);
  }

  html:not(.pc-light) #hero.pc-hero--service-bg-mobile .pc-hero-viewport__inner > .max-w-6xl::before {
    inset: -0.45rem -0.55rem;
    border-radius: 1.1rem;
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: rgba(129, 140, 248, 0.3);
    box-shadow:
      0 12px 36px rgba(2, 6, 23, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  html:not(.pc-light) #hero.pc-hero--service-bg-mobile #hero-line1,
  html:not(.pc-light) #hero.pc-hero--service-bg-mobile .pc-hero-sub {
    text-shadow: 0 1px 3px rgba(2, 6, 23, 0.5);
  }

  html:not(.pc-light) #hero.pc-hero--service-bg-mobile .pc-hero-stat .text-white {
    text-shadow: 0 1px 2px rgba(2, 6, 23, 0.45);
  }

  html:not(.pc-light) #hero.pc-hero--service-bg-mobile #hero-cta-secondary {
    background: rgba(15, 23, 42, 0.72) !important;
    border-color: rgba(148, 163, 184, 0.45) !important;
  }

  html.pc-light #hero.pc-hero--service-bg-mobile .pc-hero-viewport__inner > .max-w-6xl::before {
    inset: -0.45rem -0.55rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  }

  #hero.pc-hero--service-bg-mobile .pc-hero-cta {
    width: 100%;
    flex-wrap: wrap;
  }

  #hero.pc-hero--service-bg-mobile .pc-hero-cta a {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  #hero.pc-hero--service-bg-mobile #hero-cta-primary {
    box-shadow: 0 6px 22px rgba(2, 6, 23, 0.42);
  }

  html.pc-light #hero.pc-hero--service-bg-mobile #hero-cta-secondary {
    background-color: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(100, 116, 139, 0.45) !important;
    color: #1e293b !important;
  }

  /* Mobile slajdy usług — wideo MP4 (jak slajd AI), bez obrazów tła */
  #hero.pc-hero--service-video-mobile #hero-bg-slot {
    display: none;
  }

  #hero.pc-hero--service-video-mobile #hero-bg-video {
    opacity: 0.3 !important;
    visibility: visible !important;
  }

  html.pc-light #hero.pc-hero--service-video-mobile #hero-bg-video {
    opacity: 0.58 !important;
  }

  html:not(.pc-light) #hero.pc-hero--service-video-mobile #hero-rotating-word.gradient-text {
    background-image: linear-gradient(135deg, #c7d2fe 0%, #ddd6fe 38%, #a5f3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  /* Bez ramki/panelu za tekstem — wideo w tle wystarczy */
  #hero.pc-hero--service-video-mobile .pc-hero-viewport__inner > .max-w-6xl::before,
  #hero.pc-hero--service-video-mobile #hero-line2-row::after {
    display: none !important;
    content: none !important;
  }

  #hero.pc-hero--service-video-mobile .pc-hero-cta {
    width: 100%;
    flex-wrap: wrap;
  }

  #hero.pc-hero--service-video-mobile .pc-hero-cta a {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }
}
