/* Navbar w formie „pigułki”: mała, unosi się nad treścią. Na hero przezroczysta, niżej z ciemnym, rozmytym tłem.
   Przycisk pobierania z hero przechodzi do pigułki, gdy dojeżdża pod nią (przekazanie sterowane przewijaniem, nav.js). */
.landing-experience { padding-top: 0; }

.pm-nav {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  transition: width .6s cubic-bezier(.2, .75, .25, 1);
  font-family: "Instrument Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.pm-nav-bar {
  position: relative;
  display: flex;
  height: 56px;
  padding: 0 8px 0 22px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(22, 22, 23, 0);
  transition: background .45s ease, border-color .45s ease, box-shadow .45s ease, backdrop-filter .45s ease;
}
.pm-nav.is-solid { width: min(660px, calc(100% - 32px)); }
.pm-nav.is-solid .pm-nav-bar {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(24, 24, 25, .74);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}
.pm-nav-brand { display: block; flex: 0 0 auto; opacity: .95; transition: opacity .2s ease; }
.pm-nav-brand:hover { opacity: 1; }
.pm-nav-brand img { display: block; width: 86px; height: auto; transition: width .6s cubic-bezier(.2, .75, .25, 1); }
.pm-nav.is-solid .pm-nav-brand img { width: 64px; }

.pm-nav-end { display: flex; align-items: center; gap: 6px; }

/* miejsce na CTA: rozsuwa się, gdy przycisk do niego przylatuje */
/* miejsce na przycisk: rozsuwa się, gdy przycisk przechodzi do pigułki (klasa is-docked z nav.js) */
.pm-nav-slot {
  display: flex;
  width: 0;
  justify-content: flex-end;
  transition: width .75s cubic-bezier(.2, .75, .25, 1);
}
.pm-nav.is-docked .pm-nav-slot { width: var(--slot-w, 200px); }

.pm-nav-cta {
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px 0 14px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(239, 116, 53, .88);
  box-shadow: 0 6px 18px rgba(239, 116, 53, .22);
  color: #fff5ee;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  opacity: 0;
  transform: scale(.5);
  transform-origin: center;
  pointer-events: none;
  transition: opacity .55s ease, transform .7s cubic-bezier(.34, 1.3, .64, 1), background .2s ease;
}
.pm-nav.is-docked .pm-nav-cta { opacity: 1; transform: none; pointer-events: auto; transition-delay: .18s, .18s, 0s; }
/* przycisk w hero po przekazaniu: zapada się do własnego środka i gaśnie (wraca tak samo, od środka) */
.pmx-hero .btn-main { transform-origin: center; transition: background .2s ease, opacity .55s ease, transform .7s cubic-bezier(.34, 1.3, .64, 1); }
.pmx-hero .btn-main.pm-handed { opacity: 0; transform: scale(.5); transform-origin: center; pointer-events: none; }
.pm-nav-cta svg { width: 15px; height: 17px; flex: 0 0 auto; }
.pm-nav-cta .s { display: none; }
.pm-nav-cta:hover { background: rgba(239, 116, 53, 1); }

.pm-nav-burger {
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-content: center;
  gap: 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, width .6s cubic-bezier(.2, .75, .25, 1), height .6s cubic-bezier(.2, .75, .25, 1);
}
.pm-nav.is-solid .pm-nav-burger { width: 42px; height: 42px; }
.pm-nav-burger:hover, .pm-nav-burger:focus-visible { background: rgba(255, 255, 255, .08); }
.pm-nav-burger:focus-visible { outline: 2px solid #ed9452; outline-offset: 2px; }
.pm-nav-burger i {
  display: block;
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: #ed9452;
  transition: transform .28s cubic-bezier(.2, .75, .25, 1), opacity .2s ease, width .6s cubic-bezier(.2, .75, .25, 1);
}
.pm-nav.is-solid .pm-nav-burger i { width: 20px; height: 2px; }
.pm-nav-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pm-nav-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.pm-nav-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* spis treści */
.pm-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, 100%);
  padding: 12px 8px 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: rgba(24, 24, 25, .94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-6px) scale(.985);
  transform-origin: top right;
  transition: opacity .22s ease, transform .26s cubic-bezier(.2, .75, .25, 1);
}
.pm-menu[hidden] { display: none; }
.pm-menu.is-open { opacity: 1; transform: none; }
.pm-menu ol { margin: 0; padding: 0; list-style: none; }
.pm-menu a[data-section] {
  display: flex;
  padding: 7px 12px 7px 8px;
  align-items: center;
  gap: 13px;
  border-radius: 12px;
  color: rgba(243, 238, 231, .86);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
/* ikona + tekst; po najechaniu tekst wysuwa się w prawo, a ikona unosi i robi pomarańczowa */
.pm-menu a[data-section] .ic {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  color: #8f979b;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), color .2s ease, background .2s ease;
}
.pm-menu a[data-section] .ic svg { width: 19px; height: 19px; }
.pm-menu a[data-section] .t { transition: transform .3s cubic-bezier(.2, .75, .25, 1); }
.pm-menu a[data-section]:hover .ic,
.pm-menu a[data-section]:focus-visible .ic { transform: translateY(-3px) rotate(-6deg); color: #ed9452; background: rgba(239, 116, 53, .12); }
.pm-menu a[data-section]:hover .t,
.pm-menu a[data-section]:focus-visible .t { transform: translateX(5px); }
.pm-menu a[data-section]:hover, .pm-menu a[data-section]:focus-visible { background: rgba(255, 255, 255, .055); color: #fff; outline: none; }
.pm-menu a[data-section].is-current { color: #ed9452; }
.pm-menu a[data-section].is-current .ic { color: #ed9452; background: rgba(239, 116, 53, .12); }
.pm-menu li:last-child { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .07); }
.pm-menu li:last-child a { color: #ed9452; }
.pm-menu li:last-child a .ic { color: #ed9452; background: rgba(239, 116, 53, .12); }
@media (prefers-reduced-motion: reduce) {
  .pm-menu a[data-section] .ic, .pm-menu a[data-section] .t { transition: color .2s ease, background .2s ease; }
  .pm-menu a[data-section]:hover .ic, .pm-menu a[data-section]:hover .t,
  .pm-menu a[data-section]:focus-visible .ic, .pm-menu a[data-section]:focus-visible .t { transform: none; }
}
.pm-menu-legal {
  display: flex;
  flex-wrap: wrap;
  margin: 8px 14px 2px;
  padding-top: 10px;
  gap: 4px 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 12px;
}
.pm-menu-legal a { color: #8f979b; text-decoration: none; }
.pm-menu-legal a:hover { color: #ed9452; }

@media (max-width: 767px) {
  .pm-nav, .pm-nav.is-solid { top: 10px; width: calc(100% - 20px); }
  .pm-nav-bar { height: 52px; padding: 0 6px 0 18px; }
  .pm-nav-brand img, .pm-nav.is-solid .pm-nav-brand img { width: 60px; }
  .pm-nav-burger, .pm-nav.is-solid .pm-nav-burger { width: 42px; height: 42px; }
  .pm-nav-burger i, .pm-nav.is-solid .pm-nav-burger i { width: 22px; height: 2px; }
  .pm-nav-cta { height: 36px; padding: 0 14px 0 12px; font-size: 13px; }
  .pm-nav-cta .l { display: none; }
  .pm-nav-cta .s { display: inline; }
  .pm-menu { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-nav-bar, .pm-menu, .pm-nav-burger i, .pm-nav-slot, .pm-nav-cta, .pmx-hero .btn-main { transition: none; }
}

/* „Dane światła” spłaszczone na czas skoku z menu (nav.js) */
.pmx-light.pm-flat .pin { height: auto; }
.pmx-light.pm-flat .light { position: relative; top: 0; }
