:root {
  --bg: oklch(17% 0.012 60);
  --fg: oklch(94% 0.02 80);
  --card: oklch(21% 0.014 60);
  --muted: oklch(70% 0.025 75);
  --primary: oklch(74% 0.13 70);
  --primary-ink: oklch(17% 0.012 60);
  --border: oklch(94% 0.02 80 / 0.14);
  --sand: oklch(90% 0.04 80);
  --sand-ink: oklch(20% 0.015 60);
  --overlay: oklch(12% 0.01 60);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, "Segoe UI", sans-serif;
  --header: 4.5rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

section[id],
footer[id] {
  scroll-margin-top: calc(var(--header) + 0.4rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: clip;
}

body.nav-lock {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 10vw, 6.4rem);
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  margin-top: 0.7rem;
  font-size: clamp(2.15rem, 6vw, 3.7rem);
}

h3 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

em {
  font-style: italic;
  color: var(--primary);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
}

.skip:focus {
  top: 0.75rem;
}

.wrap,
.narrow {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.narrow {
  max-width: 46rem;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.lead,
.lead-quiet {
  margin-top: 1.15rem;
  max-width: 38rem;
  color: oklch(94% 0.02 80 / 0.88);
  font-size: 1.02rem;
}

.narrow .lead,
.narrow .lead-quiet,
.about .lead-quiet {
  margin-inline: auto;
}

.lead-quiet {
  color: var(--muted);
}

.fine {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.section-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-row .section-head {
  margin-bottom: 0;
}

.text-link {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: filter 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  border-color: oklch(94% 0.02 80 / 0.4);
  background: oklch(17% 0.012 60 / 0.25);
  color: var(--fg);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ink {
  background: var(--sand-ink);
  color: var(--sand);
}

.btn-ink:hover {
  filter: brightness(1.15);
}

.btn-small {
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.86rem;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

/* Navbar jak w Fit Clubie: pigułka nad stroną, welon z blur,
   na telefonie pełny ekran. Kolor przycisku zostaje złoty. */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding:
    max(1.05rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    0
    max(1rem, env(safe-area-inset-left));
  pointer-events: none;
}

.header-blur {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(6.75rem + 30px);
  pointer-events: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    oklch(20% 0.02 250 / 0.22) 0%,
    transparent 70%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 48%,
    rgba(0, 0, 0, 0.45) 72%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 48%,
    rgba(0, 0, 0, 0.45) 72%,
    transparent 100%
  );
}

.header-inner {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: min(1080px, 100%);
  margin-inline: auto;
  min-height: 3.35rem;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid oklch(100% 0 0 / 0.28);
  border-radius: 8px;
  color: var(--fg);
  background: transparent;
  box-shadow: 0 8px 28px oklch(0% 0 0 / 0.16);
  transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Blur na pseudo, nie na samym pasku. backdrop-filter na rodzicu
   zamyka position:fixed i menu telefoniczne kurczy się do pigułki. */
.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: oklch(22% 0.02 250 / 0.42);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.site-header.is-scrolled .header-inner {
  box-shadow: 0 12px 32px oklch(0% 0 0 / 0.28);
}

.site-header.is-scrolled .header-inner::before {
  background: oklch(16% 0.015 60 / 0.72);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
  position: relative;
  z-index: 6;
}

.logo-img {
  width: auto;
  height: 2.15rem;
  flex-shrink: 0;
}

.nav-toggle {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.nav-toggle-lines {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.5rem;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.site-header.is-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle-line:nth-child(1) {
  transform: translateY(0.6875rem) rotate(45deg);
}

.site-header.is-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-0.6875rem) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: oklch(16% 0.012 60 / 0.78);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: flex-start;
  gap: 1.6rem;
  padding: 7rem 1.5rem 2.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.site-header.is-open .site-nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nav-list a,
.nav-drop-btn {
  font-family: var(--display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fg);
  text-decoration: none;
}

.nav-list a:hover,
.nav-drop-btn:hover {
  color: var(--primary);
}

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.nav-drop-btn svg {
  width: 0.7em;
  height: 0.7em;
  display: block;
}

.nav-drop-btn svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-drop-panel {
  display: none;
  padding: 0.35rem 0 0.2rem 0.15rem;
}

.nav-drop.is-open .nav-drop-panel {
  display: grid;
  gap: 0.35rem;
}

.nav-drop-panel a {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.nav-lang a {
  color: inherit;
  text-decoration: none;
  opacity: 0.4;
  padding: 0.35rem 0.1rem;
}

.nav-lang a[aria-current="true"] {
  color: var(--fg);
  opacity: 1;
}

.nav-lang a:hover {
  color: var(--primary);
  opacity: 1;
}

.nav-lang span {
  opacity: 0.45;
}

.btn-nav {
  min-height: 2.6rem;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.socials svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.socials svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-height: 100svh;
  overflow: hidden;
}

.hero-photo,
.hero-scrim,
.support-bg,
.support-scrim {
  position: absolute;
  inset: 0;
}

.hero-photo,
.support-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo {
  object-position: center top;
}

@media (min-width: 950px) {
  .hero-photo {
    object-position: center 22%;
  }
}

.hero-scrim {
  background:
    linear-gradient(180deg,
      oklch(12% 0.01 60 / 0.78) 0%,
      oklch(12% 0.01 60 / 0.18) 32%,
      oklch(17% 0.012 60 / 0.35) 58%,
      oklch(17% 0.012 60 / 0.94) 82%,
      var(--bg) 100%);
}

.hero-copy {
  position: relative;
  min-width: 0;
  padding-top: calc(var(--header) + 1.5rem);
  padding-bottom: 3.2rem;
}

.hero-copy h1,
.hero-copy .lead,
.hero-copy .eyebrow {
  text-shadow: 0 2px 16px oklch(12% 0.01 60 / 0.85);
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy .lead {
  margin-top: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.hero-actions .btn {
  width: 100%;
}

.band {
  padding: 6rem 0;
}

.band-muted {
  position: relative;
  overflow: hidden;
  background: oklch(21% 0.014 60 / 0.45);
  border-block: 1px solid var(--border);
}

.band-line {
  border-top: 1px solid var(--border);
}

#wyjazdy {
  padding-bottom: 12rem;
}

.events {
  display: grid;
  gap: 1.25rem;
}

.trip-note {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event {
  display: grid;
  gap: 1.35rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--card);
}

.event-main {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
}

.event-img {
  flex: 0 0 auto;
  width: 6.4rem;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 2px;
}

.event-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding-top: 0.15rem;
}

.event-head {
  min-width: 0;
}

.event-date-line {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.event-head h3 {
  margin-top: 0.28rem;
  font-size: clamp(1.55rem, 3.4vw, 2rem);
}

.event-meta-rows {
  display: grid;
  gap: 0.28rem;
  font-size: 0.92rem;
}

.event-meta-row {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: baseline;
}

.event-meta-row span:first-child {
  color: var(--muted);
}

.event-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.event-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: oklch(72% 0.17 150);
  flex: 0 0 auto;
}

.event-buy {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.event-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.event-buy-actions {
  display: grid;
  gap: 0.65rem;
}

.event-buy .btn {
  width: 100%;
}

.event-buy .btn-ghost {
  background: transparent;
  border-color: oklch(94% 0.02 80 / 0.38);
}

.event-note {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.event-finished {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  font-size: 2.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
}

@media (max-width: 799px) {
  .event-main,
  .event-body {
    display: contents;
  }

  .event {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.9rem;
    row-gap: 0;
    align-items: center;
    padding: 1.05rem 1rem 1.2rem;
  }

  .event-img {
    grid-column: 1;
    grid-row: 1;
    width: 5.6rem;
  }

  .event-head {
    grid-column: 2;
    grid-row: 1;
  }

  .event-head h3 {
    font-size: 1.85rem;
  }

  .event-meta-rows,
  .event-status,
  .event-buy {
    grid-column: 1 / -1;
  }

  .event-head + .event-meta-rows,
  .event-head + .event-status {
    margin-top: 1.05rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .event-meta-rows {
    gap: 0.45rem;
  }

  .event-meta-rows + .event-status {
    margin-top: 0.85rem;
  }

  .event-buy {
    margin-top: 1.05rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    gap: 0.75rem;
  }

  .price {
    font-size: 2.15rem;
  }
}

.trip-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
}

.trip-photos img,
.about img,
.films img,
figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.films img {
  aspect-ratio: 16 / 9;
}

.trips {
  border-top: 1px solid var(--border);
}

.trip {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0 1.45rem;
  border-bottom: 1px solid var(--border);
}

.trip-date {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.trip-copy h3 {
  font-size: clamp(1.75rem, 3vw, 2.15rem);
}

.trip-copy p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.trip-extra {
  font-size: 0.85rem;
}

.trip-signup {
  justify-self: start;
  margin-top: 0.7rem;
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

.trip-signup:hover {
  color: var(--primary);
}

.trip-finished {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trip-empty {
  padding: 1.6rem 0;
  color: var(--muted);
}

.trip-foot {
  max-width: 42rem;
  margin-top: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.plans {
  max-width: 42rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.plans strong {
  color: var(--fg);
  font-weight: 600;
}

.research-intro,
.research-figure,
.findings,
.certificate-card {
  min-width: 0;
}

.stat-line {
  display: flex;
  align-items: baseline;
  margin-top: 0.85rem;
}

.stat {
  font-family: var(--display);
  font-size: clamp(4.4rem, 16vw, 5.6rem);
  line-height: 0.82;
  color: var(--primary);
}

.stat-unit {
  margin-left: 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  line-height: 1;
}

.stat-tol {
  margin-left: 0.45rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.research .lead-quiet {
  max-width: 36rem;
  margin-top: 1.35rem;
  color: oklch(78% 0.02 75);
  font-size: 1rem;
  line-height: 1.55;
}

.research .lead-quiet strong {
  color: var(--fg);
  font-weight: 700;
}

.findings {
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.findings li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}

.findings li span {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.findings p {
  margin: 0;
  color: oklch(90% 0.02 80 / 0.9);
  font-size: 0.98rem;
  line-height: 1.45;
}

.research-figure {
  margin: 1.7rem 0 0;
}

.research-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.research-figure figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.research-figure figcaption span:first-child {
  margin-right: 0.35rem;
  color: var(--primary);
  font-weight: 700;
}

.band-sand {
  background: var(--sand);
  color: var(--sand-ink);
  color-scheme: light;
}

#ksiazka {
  /* Widoczność filcu. 0 = sam krem, 1 = sam obrazek. */
  --felt: 0.25;

  position: relative;
  isolation: isolate;
  background-color: var(--sand);
}

#ksiazka::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/felt.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: var(--felt);
}

#ksiazka > .wrap {
  position: relative;
  z-index: 1;
}

.band-sand .eyebrow {
  color: oklch(42% 0.1 58);
}

.band-sand .fine,
.band-sand p {
  color: oklch(28% 0.02 60 / 0.78);
}

.band-sand h2 em {
  color: inherit;
}

.book img {
  width: min(16rem, 78%);
  margin-inline: auto;
  aspect-ratio: auto;
  border-radius: 0;
}

.book-title {
  margin-top: 0.55rem;
  color: var(--sand-ink);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.02;
}

.book-title > span {
  display: block;
}

.book-title > span:first-child {
  margin-bottom: 0.08em;
  font-size: 1.14em;
}

.band-sand .book-sub {
  margin-top: 0.45rem;
  color: oklch(50% 0.17 27);
  font-family: var(--display);
  font-size: clamp(1.65rem, 4vw, 2.05rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
}

.band-sand .book-lead {
  max-width: 28rem;
  margin-top: 0.95rem;
  color: oklch(28% 0.02 60 / 0.82);
  font-size: 1rem;
  line-height: 1.5;
}

.book-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 28rem;
  margin: 1.25rem 0 0;
  border-top: 1px solid oklch(20% 0.015 60 / 0.16);
}

.book-meta div {
  padding-top: 0.8rem;
}

.book-meta div + div {
  padding-left: 1.15rem;
  border-left: 1px solid oklch(20% 0.015 60 / 0.16);
}

.book-meta dt {
  color: oklch(42% 0.02 60);
  font-size: 0.82rem;
  font-weight: 500;
}

.book-meta dd {
  margin: 0.15rem 0 0;
  color: var(--sand-ink);
  font-weight: 700;
}

.book-buy {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: 1.35rem;
}

.book-buy .btn {
  flex: 1 1 auto;
  max-width: 16rem;
}

.band-sand a:focus-visible {
  outline-color: var(--sand-ink);
}

.price-lg {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3rem);
  line-height: 1;
  color: var(--sand-ink);
}

.films {
  display: grid;
  gap: 1.6rem;
}

.film-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
}

.film img {
  transition: transform 0.6s ease;
}

.film:hover img {
  transform: scale(1.04);
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: oklch(12% 0.01 60 / 0.28);
}

.play::before,
.play::after {
  content: "";
  grid-area: 1 / 1;
}

.play::before {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--primary);
}

.play::after {
  width: 0;
  height: 0;
  margin-left: 0.22rem;
  border-style: solid;
  border-width: 0.42rem 0 0.42rem 0.7rem;
  border-color: transparent transparent transparent var(--primary-ink);
}

.film-title {
  display: block;
  margin-top: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.film:hover .film-title {
  color: var(--primary);
}

.about img {
  margin: 1.6rem auto 0;
  max-width: 40rem;
}

.about .btn {
  margin-top: 1.5rem;
}

.about-lead {
  margin-top: 1.3rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.3;
}

.support {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.support-bg {
  opacity: 0.32;
}

.support-scrim {
  background: linear-gradient(180deg, var(--bg), oklch(17% 0.012 60 / 0.72) 40%, var(--bg));
}

.support .wrap {
  position: relative;
}

.support .btn {
  margin-top: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--overlay);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-logo {
  height: 2.8rem;
  width: auto;
}

address {
  margin-top: 0.9rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

address a:hover,
.legal a:hover {
  color: var(--primary);
}

.socials {
  display: flex;
  gap: 0.55rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: oklch(94% 0.02 80 / 0.82);
}

.socials a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.socials svg {
  width: 1rem;
  height: 1rem;
}

.legal {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.copyright {
  margin: 0;
  padding: 1.1rem 1rem 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.soon {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header) + 2rem);
}

.soon h1 {
  font-size: clamp(2.4rem, 8vw, 4.4rem);
}

.soon .btn {
  margin-top: 1.6rem;
}

.fade-up {
  animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy .fade-up:nth-child(2) { animation-delay: 0.1s; }
.hero-copy .fade-up:nth-child(3) { animation-delay: 0.2s; }
.hero-copy .fade-up:nth-child(4) { animation-delay: 0.3s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 639px) {
  .eyebrow {
    letter-spacing: 0.14em;
    font-size: 0.68rem;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .btn {
    width: auto;
  }
}

@media (min-width: 800px) {
  .wrap,
  .narrow {
    padding-inline: 2rem;
  }

  .band {
    padding: 9rem 0;
  }

  #wyjazdy {
    padding-bottom: 13rem;
  }

  .section-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .event {
    grid-template-columns: minmax(0, 1fr) 17.5rem;
    align-items: center;
    column-gap: 2.75rem;
    padding: 1.5rem 1.65rem;
  }

  .event-main {
    align-items: center;
    gap: 1.35rem;
  }

  .event-img {
    width: 9rem;
  }

  .event-body {
    padding-top: 0;
  }

  .trip {
    grid-template-columns: 11rem minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 2rem;
    row-gap: 0;
    padding: 1.55rem 0;
  }

  .trip-signup,
  .trip-finished {
    margin-top: 0;
    white-space: nowrap;
  }

  .research-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas:
      "intro figure"
      "findings figure"
      "cert .";
    column-gap: 3.25rem;
    row-gap: 0;
    align-items: start;
  }

  .research-intro { grid-area: intro; }
  .research-figure { grid-area: figure; align-self: start; margin: 0.4rem 0 0; }
  .findings { grid-area: findings; }
  .research .certificate-card { grid-area: cert; }

  .book {
    display: grid;
    grid-template-columns: minmax(0, 18rem) 1fr;
    gap: 3.5rem;
    align-items: center;
  }

  .book img {
    width: 100%;
  }

  .films {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-side {
    text-align: right;
  }

  .socials,
  .legal {
    justify-content: flex-end;
  }

  .legal {
    justify-items: end;
  }
}

@media (min-width: 768px) {
  .site-header {
    padding:
      max(1.45rem, env(safe-area-inset-top))
      max(1.75rem, env(safe-area-inset-right))
      0
      max(1.75rem, env(safe-area-inset-left));
  }

  .header-blur {
    height: calc(8rem + 30px);
  }

  .header-inner {
    min-height: 3.6rem;
    padding: 0.7rem;
  }

  .logo-img {
    height: 2.35rem;
  }

  .nav-toggle {
    width: 2.35rem;
    height: 2.35rem;
  }
}

@media (min-width: 968px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0;
    overflow: visible;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 1.05rem;
  }

  .nav-list a,
  .nav-drop-btn {
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
  }

  .nav-drop {
    position: relative;
  }

  .nav-drop::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0.8rem;
  }

  .nav-drop-panel {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    min-width: 14rem;
    padding: 0.4rem;
    border: 1px solid oklch(100% 0 0 / 0.16);
    border-radius: 8px;
    background: oklch(18% 0.015 60 / 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px oklch(0% 0 0 / 0.4);
    opacity: 0;
    visibility: hidden;
  }

  .nav-drop:hover .nav-drop-panel,
  .nav-drop:focus-within .nav-drop-panel,
  .nav-drop.is-open .nav-drop-panel {
    opacity: 1;
    visibility: visible;
  }

  .nav-drop-panel a {
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
  }

  .nav-drop-panel a:hover {
    background: oklch(100% 0 0 / 0.08);
    color: var(--fg);
  }
}

@media (max-width: 639px) {
  .event-buy .btn,
  .research .btn,
  .support .btn,
  .about .btn,
  .soon .btn {
    width: 100%;
  }
}

/* === Progress bar & grain texture === */
.progress-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), oklch(88% 0.1 85));
  box-shadow: 0 0 12px oklch(74% 0.13 70 / 0.6);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* === Scroll reveal === */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 100ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="left"].is-in { transform: none; }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="right"].is-in { transform: none; }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="scale"].is-in { transform: scale(1); }

/* === Hero ken burns === */
.hero-photo {
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photo {
    animation: kenburns 22s ease-in-out infinite alternate;
  }
}

@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.08) translateY(-1%); }
}

.support-bg {
  will-change: transform;
}

/* === Buttons: sheen sweep === */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, oklch(100% 0 0 / 0.5) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}

.btn-primary:hover::after {
  transform: translateX(130%);
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

/* === Card motion === */
.event,
.film-thumb,
.book img,
.about img {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.event:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px oklch(0% 0 0 / 0.4);
  border-color: oklch(74% 0.13 70 / 0.5);
}

/* === Topographic decoration === */
.topo-lines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 11rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300'%3E%3Cg fill='none' stroke='rgb(201,155,95)' stroke-width='1' opacity='0.55'%3E%3Cpath d='M0 40 C100 10 200 70 300 40 C400 10 500 70 600 40 C700 10 800 40 800 40'/%3E%3Cpath d='M0 90 C120 60 220 120 320 90 C420 60 520 120 620 90 C720 60 800 90 800 90'/%3E%3Cpath d='M0 140 C140 110 240 170 340 140 C440 110 540 170 640 140 C740 110 800 140 800 140'/%3E%3Cpath d='M0 190 C160 160 260 220 360 190 C460 160 560 220 660 190 C760 160 800 190 800 190'/%3E%3Cpath d='M0 240 C180 210 280 270 380 240 C480 210 580 270 680 240 C780 210 800 240 800 240'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 800px 300px;
  background-position: bottom;
  opacity: 0.35;
  pointer-events: none;
}

.stat {
  font-variant-numeric: lining-nums tabular-nums;
}

/* === Certyfikat badań === */
.certificate-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid oklch(94% 0.02 80 / 0.16);
  border-radius: 14px;
  background: oklch(21% 0.012 60);
  transition: border-color 0.25s ease;
}

.certificate-card:hover {
  border-color: oklch(74% 0.13 70 / 0.55);
}

.certificate-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.certificate-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid oklch(74% 0.13 70 / 0.35);
  border-radius: 10px;
  background: oklch(26% 0.016 60);
  color: var(--primary);
}

.certificate-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.certificate-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.certificate-label {
  font-weight: 700;
}

.certificate-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

.certificate-cta {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

@media (max-width: 799px) {
  .certificate-cta-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .certificate-cta {
    font-size: 1.25rem;
    font-weight: 500;
  }
}

/* === Galeria wyjazdów === */
.trip-photo-more {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.trip-photo-more-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: oklch(12% 0.01 60 / 0.48);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.3s ease;
}

.trip-photo-more:hover .trip-photo-more-overlay {
  background: oklch(12% 0.01 60 / 0.62);
}

.trip-photo-more-overlay svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.3s ease;
}

.trip-photo-more[aria-expanded="true"] .trip-photo-more-overlay svg {
  transform: rotate(45deg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 0.7rem;
  margin-bottom: 1rem;
}

.gallery-grid[hidden] {
  display: none;
}

.gallery-item {
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: oklch(10% 0.01 60 / 0.94);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 20px 60px oklch(0% 0 0 / 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid oklch(94% 0.02 80 / 0.3);
  border-radius: 50%;
  background: oklch(17% 0.012 60 / 0.6);
  color: var(--fg);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  width: 2.75rem;
  height: 2.75rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 3rem;
  height: 3rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0.8rem;
}

.lightbox-next {
  right: 0.8rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* === Podgląd sklepu === */
.shop-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.shop-item {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--card);
}

.shop-item img {
  flex: 0 0 auto;
  width: 5.6rem;
  aspect-ratio: 470 / 600;
  object-fit: contain;
  border-radius: 2px;
}

.shop-item-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.9rem;
}

.shop-item-kind {
  color: var(--muted);
  font-size: 0.82rem;
}

.shop-item h3 {
  margin-top: -0.3rem;
  font-size: clamp(1.1rem, 4vw, 1.3rem);
}

.shop-item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
}

.shop-item .price {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

@media (min-width: 640px) {
  .shop-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }

  .shop-item img {
    align-self: center;
    width: min(100%, 13rem);
  }

  .shop-item h3 {
    margin-top: 0;
    font-size: 1.5rem;
  }

  .shop-item-row {
    margin-top: 0;
  }

  .shop-item .price {
    font-size: 1.3rem;
  }
}

@media (min-width: 640px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === RODO (stopka) === */
.rodo {
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.rodo summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--fg);
}

.rodo p {
  margin-top: 0.6rem;
  max-width: 48rem;
  line-height: 1.5;
}

/* === Marquee (pasek krety) === */
#ksiazka {
  position: relative;
}

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.marquee-left {
  top: 5px;
}

.marquee-right {
  bottom: 5px;
}

.marquee-strip {
  display: block;
  width: 100%;
  height: 1.1rem;
  background-color: #1b140f;
  -webkit-mask-image: url("/static/img/pasek_krety.svg");
  mask-image: url("/static/img/pasek_krety.svg");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 619.52px 100%;
  mask-size: 619.52px 100%;
  will-change: mask-position, -webkit-mask-position;
}

.marquee-left .marquee-strip {
  animation: marquee-mask-left 40s linear infinite;
}

.marquee-right .marquee-strip {
  animation: marquee-mask-right 40s linear infinite;
}

@keyframes marquee-mask-left {
  from {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
  to {
    -webkit-mask-position: -619.52px 0;
    mask-position: -619.52px 0;
  }
}

@keyframes marquee-mask-right {
  from {
    -webkit-mask-position: -619.52px 0;
    mask-position: -619.52px 0;
  }
  to {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

@media (min-width: 800px) {
  .marquee-strip {
    height: 1.4rem;
    -webkit-mask-size: 788.48px 100%;
    mask-size: 788.48px 100%;
    animation: none;
  }

  .marquee-left .marquee-strip {
    animation: marquee-mask-left-lg 40s linear infinite;
  }

  .marquee-right .marquee-strip {
    animation: marquee-mask-right-lg 40s linear infinite;
  }

  @keyframes marquee-mask-left-lg {
    from {
      -webkit-mask-position: 0 0;
      mask-position: 0 0;
    }
    to {
      -webkit-mask-position: -788.48px 0;
      mask-position: -788.48px 0;
    }
  }

  @keyframes marquee-mask-right-lg {
    from {
      -webkit-mask-position: -788.48px 0;
      mask-position: -788.48px 0;
    }
    to {
      -webkit-mask-position: 0 0;
      mask-position: 0 0;
    }
  }
}

/* === Linear 3D wireframe decorations === */
.deco-wire {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 0.2;
}

.deco-pyramid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='rgb(201,155,95)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 150 L100 180 L180 150'/%3E%3Cpath d='M180 150 L100 120 L20 150' stroke-dasharray='4 5'/%3E%3Cpath d='M100 25 L20 150 M100 25 L100 180 M100 25 L180 150'/%3E%3Cpath d='M100 25 L100 120' stroke-dasharray='4 5'/%3E%3C/g%3E%3C/svg%3E");
  animation: deco-spin 150s linear infinite;
}

.deco-crystal {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240'%3E%3Cg fill='none' stroke='rgb(201,155,95)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M100 20 L160 100 M100 20 L130 84 M100 20 L70 84'/%3E%3Cpath d='M100 20 L40 100 M100 20 L70 116 M100 20 L130 116' stroke-dasharray='4 5'/%3E%3Cpath d='M40 100 L70 84 L130 84 L160 100'/%3E%3Cpath d='M160 100 L130 116 L70 116 L40 100' stroke-dasharray='4 5'/%3E%3Cpath d='M100 220 L160 100 M100 220 L130 84 M100 220 L70 84'/%3E%3Cpath d='M100 220 L40 100 M100 220 L70 116 M100 220 L130 116' stroke-dasharray='4 5'/%3E%3C/g%3E%3C/svg%3E");
  animation: deco-spin 110s linear infinite;
}

.deco-cube {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='rgb(201,155,95)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 70 L140 70 L140 170 L40 170 Z'/%3E%3Cpath d='M85 25 L185 25 L185 125 L85 125 Z' stroke-dasharray='4 5'/%3E%3Cpath d='M40 70 L85 25'/%3E%3Cpath d='M140 70 L185 25'/%3E%3Cpath d='M140 170 L185 125'/%3E%3Cpath d='M40 170 L85 125' stroke-dasharray='4 5'/%3E%3C/g%3E%3C/svg%3E");
  animation: deco-spin 170s linear infinite;
}

@keyframes deco-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* === Drift: kształty lecące przez sekcję, w nieskończoność === */
.drift {
  position: absolute;
  z-index: 0;
  width: var(--size, 8rem);
  height: var(--size, 8rem);
  top: var(--pos, 20%);
  pointer-events: none;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-duration: var(--dur, 30s);
  animation-delay: var(--delay, 0s);
}

.drift-right {
  animation-name: drift-right;
}

.drift-left {
  animation-name: drift-left;
}

.drift-down {
  top: auto;
  left: var(--pos, 20%);
  animation-name: drift-down;
}

@keyframes drift-right {
  from {
    left: -20%;
  }
  to {
    left: 120%;
  }
}

@keyframes drift-left {
  from {
    left: 120%;
  }
  to {
    left: -20%;
  }
}

@keyframes drift-down {
  from {
    top: -20%;
  }
  to {
    top: 120%;
  }
}

.drift .deco-wire {
  position: static;
  width: 100%;
  height: 100%;
}

.drift-shape {
  animation: drift-spin-scale var(--spin, 15s) ease-in-out infinite;
}

@keyframes drift-spin-scale {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.22);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* Wydarzenia, Sklep, O mnie potrzebują własnej pozycji/izolacji dla .drift */
#wydarzenia,
#sklep,
.about {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#wydarzenia > .wrap,
#sklep > .wrap,
.about > .wrap {
  position: relative;
  z-index: 1;
}

/* Badania: duży, zachodzi na kartę certyfikatu */
.research {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.research-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.research-bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, var(--bg) 20%, transparent 70%);
}

.research > .wrap {
  position: relative;
  z-index: 1;
}

@media (max-width: 639px) {
  .drift {
    width: min(var(--size, 8rem), 7.5rem);
    height: min(var(--size, 8rem), 7.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up,
  .film img,
  .hero-photo,
  .marquee-strip,
  .deco-wire,
  .drift,
  .drift-shape,
  .btn-primary::after {
    animation: none;
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-nav {
    transition: none;
  }
}
