/* Silnik ruchu: style intro i przejść (działają tylko z klasą html.ruch) */
html.ruch { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* intro */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; cursor: pointer; perspective: 1400px; }
.intro-szczeka { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); }
.intro-szczeka.gora { top: 0; }
.intro-szczeka.dol { bottom: 0; }
.intro-szczeka.gora::after, .intro-szczeka.dol::before { content: ''; position: absolute; left: 0; right: 0; height: 34px; background: var(--ink);
  -webkit-mask: linear-gradient(135deg, #000 50%, transparent 50%) 0 0/34px 34px repeat-x, linear-gradient(-135deg, #000 50%, transparent 50%) 0 0/34px 34px repeat-x;
          mask: linear-gradient(135deg, #000 50%, transparent 50%) 0 0/34px 34px repeat-x, linear-gradient(-135deg, #000 50%, transparent 50%) 0 0/34px 34px repeat-x; }
.intro-szczeka.gora::after { bottom: -33px; }
.intro-szczeka.dol::before { top: -33px; transform: scaleY(-1); }
.intro-rekin { position: relative; z-index: 2; width: min(620px, 82vw); filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.intro-logo { position: absolute; z-index: 2; bottom: 24%; width: min(360px, 60vw); }
.intro-haslo { position: absolute; z-index: 2; bottom: 17%; color: var(--akcent-2); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; text-align: center; padding: 0 16px; }
.intro.typ-okno { background: transparent; }
.intro-skrzydlo { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--ink); border: 14px solid #e9e6df; box-shadow: inset 0 0 0 3px rgba(0,0,0,.25); }
.intro-skrzydlo::after { content: ''; position: absolute; top: 50%; width: 10px; height: 70px; margin-top: -35px; border-radius: 6px; background: #d9d6cf; }
.intro-skrzydlo.lewe { left: 0; transform-origin: 0 50%; }
.intro-skrzydlo.lewe::after { right: 18px; }
.intro-skrzydlo.prawe { right: 0; transform-origin: 100% 50%; }
.intro-skrzydlo.prawe::after { left: 18px; }
.intro-srodek { position: relative; z-index: 2; text-align: center; color: #fff; }
.intro-duze { font-family: var(--display); font-size: clamp(90px, 22vw, 220px); line-height: .9; color: var(--akcent); text-transform: uppercase; }
.intro-srodek .intro-haslo { position: static; margin-top: 12px; }

/* hero: duży znak firmy */
.hero-znak { opacity: var(--krycie, 1); position: absolute; z-index: 1; right: -6vw; top: 14vh; width: min(58vw, 820px); pointer-events: none; filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); }
@media (max-width: 860px) { .hero-znak { top: auto; bottom: 30vh; right: -28vw; width: 96vw; opacity: calc(var(--krycie, 1) * .9); } }

/* tytuły */
.sekcja-tytul .slowo { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .14em; margin-top: -.14em; }
.sekcja-tytul .slowo > span { display: inline-block; }

/* historia */
.historia-linia { position: absolute; left: calc(41.6% + 8px); top: clamp(72px, 12vw, 140px); bottom: clamp(72px, 12vw, 140px); width: 3px; background: var(--akcent); transform-origin: 50% 0; border-radius: 2px; }
@media (max-width: 860px) { .historia-linia { left: 6px; } .historia-kroki { padding-left: 18px; } }

/* oferta poziomo */
.oferta.poziomo { max-width: none; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 90px 40px; }
.oferta.poziomo .sekcja-tytul { max-width: 1180px; }
.oferta.poziomo .mozaika { display: flex; gap: 18px; width: max-content; margin-top: 30px; }
.oferta.poziomo .kafel { width: min(430px, 76vw); height: min(56svh, 520px); flex: none; grid-column: auto !important; grid-row: auto !important; opacity: 1; transform: none; }
.oferta.poziomo .kafel img { filter: none; }
.oferta.poziomo .kafel h3 { font-size: clamp(30px, 4vw, 46px); }
.oferta.poziomo .kafel:nth-child(even) { margin-top: 40px; }

/* intro: brama garażowa */
.intro.typ-brama { background: transparent; }
.intro-brama { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, #2a2c30 0 34px, #1c1d20 34px 38px, #34363b 38px 40px); box-shadow: inset 0 -14px 0 var(--akcent); }
.intro-brama::after { content: ''; position: absolute; left: 50%; bottom: 26px; width: 90px; height: 10px; margin-left: -45px; border-radius: 5px; background: #111; box-shadow: inset 0 2px 0 rgba(255,255,255,.1); }
.intro-znak { width: min(260px, 56vw); filter: drop-shadow(0 16px 30px rgba(0,0,0,.6)); }
.intro-nazwa { margin-top: 10px; font-family: var(--display); font-size: clamp(44px, 9vw, 92px); line-height: 1; color: #fff; text-transform: uppercase; }
.intro-nazwa b { color: var(--akcent); font-weight: 400; }
