/*! Stylbud | intro 3D na stronach Jarosław. Osobny plik, ładowany tylko na tych stronach. */
/* Animacja zaczyna się tuż pod menu, sięga do prawej krawędzi okna i kończy przy jego dolnej krawędzi.
   Wymiary ustawia js/intro-3d.js w zmiennych --i3d-up, --i3d-right i --i3d-min (poniżej wartości zapasowe). */
.header-main {
  overflow-x: clip;
}
.header-main-content {
  display: flex;
  align-items: center;
  min-height: var(--i3d-min, calc(100vh - 14rem));
  background-size: auto, cover;
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 50% 50%;
}
.intro3d {
  position: absolute;
  top: calc(var(--i3d-up, 2rem) * -1);
  right: var(--i3d-right, calc(50% - 50vw));
  bottom: 0;
  left: 40%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
  background: #cfe6f8;
}
.intro3d.is-ready {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease;
}
.intro3d + .header-main-content-box {
  position: relative;
}
.intro3d canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.intro3d.is-drag canvas {
  cursor: grabbing;
}
.intro3d-hots {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.intro3d-hot {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}
.intro3d-hot a {
  display: inline-flex;
  align-items: center;
  margin: -1.1rem 0 0 -1rem;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  background: #fff;
  color: #121d27;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(18, 29, 39, 0.22);
  pointer-events: auto;
  transition: background 0.2s ease, color 0.2s ease;
}
.intro3d-hot a:before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: #36aae2;
  box-shadow: 0 0 0 0 rgba(54, 170, 226, 0.55);
  animation: intro3d-pulse 2.4s ease-out infinite;
}
.intro3d-hot a:hover,
.intro3d-hot a:focus-visible {
  background: #36aae2;
  color: #fff;
}
.intro3d-hot a:hover:before,
.intro3d-hot a:focus-visible:before {
  background: #fff;
  animation: none;
}
.intro3d-hot a[aria-current="page"] {
  background: #80d036;
  color: #fff;
}
.intro3d-hot a[aria-current="page"]:before {
  background: #fff;
  animation: none;
}
.intro3d-hint {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.85);
  color: #121d27;
  font-size: 0.75rem;
  line-height: 1.2;
  pointer-events: none;
}
.intro3d-compact .intro3d-hots {
  display: none;
}
@keyframes intro3d-pulse {
  0% { box-shadow: 0 0 0 0 rgba(54, 170, 226, 0.55); }
  70% { box-shadow: 0 0 0 0.5rem rgba(54, 170, 226, 0); }
  100% { box-shadow: 0 0 0 0 rgba(54, 170, 226, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .intro3d, .intro3d.is-ready { transition: none; }
  .intro3d-hot a:before { animation: none; }
}
@media only screen and (max-width: 480px) {
  .header-main-content {
    display: block;
    min-height: 0;
  }
  .intro3d {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    height: var(--i3d-min, calc(100vh - 17rem));
  }
  .intro3d + .header-main-content-box {
    margin-top: 0;
  }
  .intro3d-hots,
  .intro3d-hint {
    display: none;
  }
}
