/* Strona główna: hero process-offer (pełna szerokość, wideo, napisy od razu) + stopka */

.page-home-minimal #hero-ver1-stage,
.page-home-minimal #hero-sticky-bar,
.page-home-minimal .home-approach-video-dock {
  display: none !important;
}

.page-home-minimal.page-ver1 #hero.hero--ver1 {
  display: flex !important;
  position: relative;
  z-index: 4;
  min-height: 100dvh;
  min-height: 100svh;
  height: 100dvh;
  height: 100svh;
  pointer-events: none;
  isolation: isolate;
}

/* ver1.css ustawia panel na fixed — tu copy zostaje w sekcji hero i scrolluje z wideo */
.page-home-minimal.page-ver1 .hero--profile .hero-panel {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  z-index: 2 !important;
  width: min(100%, calc(clamp(22rem, 36vw, 44rem) + 7.5rem)) !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1.25rem, 5vw, 4rem) clamp(2rem, 6vh, 4rem) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  overflow: visible !important;
  transform: none !important;
  pointer-events: none;
}

.page-home-minimal.page-ver1 #hero .hero-panel > * {
  pointer-events: auto;
}

.page-home-minimal.page-ver1 #hero .hero-panel,
.page-home-minimal.page-ver1 #hero .hero-panel * {
  pointer-events: auto;
}

.page-home-minimal.page-ver1 main {
  margin-top: calc(-100dvh);
  margin-top: calc(-100svh);
  background: #0a0a0a !important;
  overflow: visible !important;
}

.page-home-minimal.page-ver1 main > div[id^="home-"],
.page-home-minimal.page-ver1 .home-process-offer-scroll {
  background: transparent !important;
}

.page-home-minimal.page-ver1 #portfolio-footer-slot,
.page-home-minimal.page-ver1:not(.is-footer-reveal-active) #portfolio-footer-slot,
.page-home-minimal.page-ver1 .home-footer-reveal-backdrop {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.page-home-minimal.page-ver1 .home-footer-scroll-pad {
  display: block !important;
}

.page-home-minimal.page-ver1 .promo-wrapper--home {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.page-home-minimal.page-ver1 .promo-header-slot {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.page-home-minimal.page-ver1 .promotion-bar--home {
  border-bottom: 1px solid rgba(0, 0, 0, 0.09) !important;
}

/* portfolio-home-deferred.css ma display:none na ::after — musi być !important */
.page-home-minimal .home-process-offer-scroll .home-process-offer__intro-bg::after,
.page-home-minimal .home-process-offer__intro-bg::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.18) 38%,
      rgba(0, 0, 0, 0.32) 72%,
      rgba(0, 0, 0, 0.42) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.38) 0%,
      rgba(0, 0, 0, 0.22) 32%,
      rgba(0, 0, 0, 0.08) 60%,
      rgba(0, 0, 0, 0) 100%
    ) !important;
}

.page-home-minimal [data-nav-viewport],
.page-home-minimal [data-nav-content],
.page-home-minimal #nav-menu-scrim {
  display: none !important;
}

.page-home-minimal .nav-menu__trigger .nav-menu__chevron {
  display: none;
}

@media (max-width: 860px) {
  .page-home-minimal.page-ver1 .hero--profile .hero-panel {
    position: absolute !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 clamp(0.85rem, 4vw, 1.1rem) calc(0.85rem + env(safe-area-inset-bottom, 0)) !important;
    display: block !important;
  }

  .page-home-minimal .home-process-offer-scroll .home-process-offer__intro-bg::after,
  .page-home-minimal .home-process-offer__intro-bg::after {
    background:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.22) 42%,
        rgba(0, 0, 0, 0.38) 78%,
        rgba(0, 0, 0, 0.48) 100%
      ) !important;
  }

  .page-home-minimal .home-process-offer__intro-video {
    object-position: center 38%;
  }
}

.page-home-minimal main {
  padding: 0;
  margin-top: 0;
  background: #0a0a0a;
}

.page-home-minimal .home-process-offer-mount,
.page-home-minimal .home-process-offer-mount--scroll-only {
  margin: 0;
  padding: 0;
  max-width: none;
}

.page-home-minimal .home-process-offer,
.page-home-minimal .home-process-offer-scroll {
  margin: 0;
  border-radius: 0 !important;
  overflow: hidden;
}

.page-home-minimal .home-process-offer-scroll {
  --process-offer-progress: 1;
  --process-offer-tone: 1;
  --process-offer-surface: #0a0a0a;
  min-height: 100dvh;
  min-height: 100svh;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.page-home-minimal .home-process-offer-scroll::after {
  display: none !important;
  height: 0 !important;
}

.page-home-minimal .home-process-offer__intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home-minimal .home-process-offer__intro-bg-gradient,
.page-home-minimal .home-process-offer__intro-bg-mesh,
.page-home-minimal .home-process-offer__intro-bg-blob,
.page-home-minimal .home-process-offer__intro-bg-fade {
  display: none !important;
}

.page-home-minimal .home-process-offer__intro-bg::before {
  display: none;
}

.page-home-minimal .home-process-offer__intro-bg .home-process-offer__intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.page-home-minimal .home-process-offer__intro--pinned {
  position: relative;
  top: auto;
  z-index: 2;
  min-height: 100dvh;
  min-height: 100svh;
  padding: 0;
  box-sizing: border-box;
}

.page-home-minimal .home-process-offer__intro-body,
.page-home-minimal [data-process-offer-reveal] .home-process-offer__intro-body {
  display: none !important;
}

.page-home-minimal .home-process-offer__intro {
  position: relative;
  z-index: 2;
  min-height: inherit;
}

/* Chrome przyklejony do góry, hero zaczyna się pod spodem (bez białej szczeliny) */
.page-home-minimal #promo-spacer {
  height: 0 !important;
  min-height: 0 !important;
}

html.promo-native-scroll .page-home-minimal #promo-spacer {
  height: 0 !important;
}

.page-home-minimal #promo-wrapper.promo-wrapper--home {
  top: 0;
}

.page-home-minimal .promo-wrapper--home {
  height: calc(var(--home-promo-h) + var(--home-header-h)) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.page-home-minimal .promotion-bar--home {
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.page-home-minimal .promo-header-slot {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.page-home-minimal .promo-wrapper--home .site-header.header--over-hero:not(.header--light) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.page-home-minimal .promo-wrapper--home .site-header.header--light {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
