/* TILO Fitness landing (/fitness): video wall hero, class marquee, four moods, three reasons, reel with sound.
   Colours come from body.adult in pages.css; the neon pink and violet match the light in the fitness room. */

/* Copy on the left half on a dark ground, clips on the right half at full brightness:
   the headline never sits on a video, and every clip on the wall stays clear. */
.fx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: min(72vh, 660px);
  background: var(--ink);
  color: #fff;
}

.fx-wall {
  position: absolute;
  inset: 0 0 0 50%;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--ink);
}

.fx-wall video:nth-child(4) {
  display: none;
}

.fx-wall video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(1.15) contrast(1.05);
}

.fx-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 49.9%, #0d0a14b3 50%, transparent 56%),
    linear-gradient(0deg, #0d0a14 0%, transparent 16%),
    radial-gradient(700px 480px at 6% 90%, #ff5bd633, transparent 70%),
    radial-gradient(600px 420px at 40% 0%, #8f2fe02e, transparent 70%);
}

.fx-hero-copy {
  padding-block: 44px 52px;
}

.fx-hero-copy > * {
  max-width: min(540px, 44vw);
}

.fx-hero-copy > .fx-stats,
.fx-hero-copy > .hero-cta {
  max-width: min(640px, 47vw - 24px);
}

.fx-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  background: #0d0a1499;
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fx-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5bd6;
  box-shadow: 0 0 0 0 #ff5bd6aa;
  animation: fx-pulse 1.8s ease-out infinite;
}

@keyframes fx-pulse {
  70% {
    box-shadow: 0 0 0 10px #ff5bd600;
  }
  100% {
    box-shadow: 0 0 0 0 #ff5bd600;
  }
}

.fx-hero h1 {
  font-size: clamp(38px, 4.1vw, 62px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.fx-hero .lead {
  margin-top: 20px;
  font-size: 18px;
}

.fx-hero .hero-cta {
  margin-top: 26px;
  flex-wrap: wrap;
  gap: 10px;
}

.fx-hero .btn-lg {
  padding: 15px 22px;
  font-size: 15px;
}

/* Four facts in one row on a computer, two by two on a phone. */
.fx-stats {
  list-style: none;
  margin: 30px 0 0;
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 20px;
  border-top: 1px solid #ffffff24;
}

.fx-stats li {
  display: grid;
  gap: 2px;
}

.fx-stats b {
  font: 800 clamp(22px, 2vw, 28px)/1.05 var(--display);
}

.fx-stats span {
  color: #cfc4de;
  font-size: 13px;
  line-height: 1.35;
}

/* Class names running across the page */

.fx-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-block: -18px;
  padding-block: 16px;
  background: linear-gradient(90deg, #8f2fe0, #ff5bd6);
  color: #0d0a14;
  transform: rotate(-1.6deg);
  box-shadow: 0 20px 60px #ff5bd640;
}

.fx-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: fx-run 38s linear infinite;
  font: 800 clamp(30px, 4.4vw, 58px)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.fx-track span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 2px #0d0a14;
}

@keyframes fx-run {
  to {
    transform: translateX(-50%);
  }
}

/* Four moods */

.fx-moods {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  padding-top: 130px;
}

.fx-moods::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 90% 10%, #8f2fe033, transparent 70%),
    radial-gradient(600px 400px at 0% 90%, #ff5bd61f, transparent 70%);
}

.fx-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 18px 40px;
  margin-bottom: 36px;
}

.fx-head h2 {
  max-width: 720px;
}

.fx-head p {
  max-width: 420px;
  color: #cfc4de;
  font-size: 17px;
}

.fx-mood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.fx-mood {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  overflow: clip;
  aspect-ratio: 9 / 15;
  border-radius: 26px;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px #ffffff1a;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.fx-mood:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px var(--glow),
    0 30px 70px -24px var(--glow);
}

.fx-mood video,
.fx-mood > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-mood::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0d0a14f2 0%, #0d0a14b3 34%, transparent 62%);
}

.fx-mood-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.fx-tag {
  justify-self: start;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--glow);
  color: #0d0a14;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fx-mood h3 {
  font-size: 26px;
  line-height: 1.1;
}

.fx-mood p {
  color: #ddd3ea;
  font-size: 15px;
  line-height: 1.45;
}

.fx-mood ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fx-mood li {
  padding: 3px 10px;
  border: 1px solid #ffffff3d;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.fx-more {
  display: inline-flex;
  margin-top: 28px;
  color: #fff;
  font-weight: 700;
}

/* Three reasons with the ad reels */

.fx-why {
  background: var(--paper);
}

.fx-why .fx-head p {
  color: var(--muted);
}

.fx-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.fx-reason {
  display: grid;
  gap: 14px;
  align-content: start;
}

.fx-phone {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 330px;
  border: 6px solid var(--ink);
  border-radius: 34px;
  background: var(--ink);
  box-shadow: 0 30px 70px -30px #8f2fe099;
}

.fx-phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-reason h3 {
  font-size: 26px;
}

.fx-reason p {
  color: var(--muted);
  max-width: 330px;
}

/* Reel with sound and the first free training */

.fx-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.fx-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px 520px at 22% 50%, #ff5bd633, transparent 70%),
    radial-gradient(600px 400px at 90% 0%, #8f2fe033, transparent 70%);
}

.fx-cta-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.fx-cta .fx-phone {
  justify-self: center;
  max-width: 340px;
  border-color: #241a33;
  box-shadow:
    0 0 0 1px #ff5bd666,
    0 40px 90px -30px #ff5bd6aa;
}

.fx-sound {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: #0d0a14cc;
  backdrop-filter: blur(6px);
  color: #fff;
  font: 700 13px/1 var(--font);
  cursor: pointer;
}

.fx-cta h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
}

.fx-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: fx;
}

.fx-steps li {
  counter-increment: fx;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  color: #ddd3ea;
}

.fx-steps li::before {
  content: counter(fx);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #ff5bd6;
  color: #ff5bd6;
  font: 800 20px/1 var(--display);
}

.fx-steps b {
  color: #fff;
}

.fx-cta .hero-cta {
  margin-top: 32px;
}

.fx-fine {
  margin-top: 14px;
  color: #a99fba;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .fx-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .fx-wall video:nth-child(3) {
    display: none;
  }

  .fx-mood-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fx-mood {
    aspect-ratio: 4 / 5;
  }
}

/* Tablet: the copy column is narrow, so the four facts go two by two. */
@media (max-width: 1100px) {
  .fx-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone: two clips side by side as a band on top, the copy below on the dark ground. */
@media (max-width: 760px) {
  .fx-hero {
    min-height: 0;
    align-items: start;
  }

  .fx-wall {
    inset: 0 0 auto;
    height: 62vw;
    grid-template-columns: repeat(2, 1fr);
  }

  .fx-wall video:nth-child(3) {
    display: none;
  }

  .fx-shade {
    background:
      linear-gradient(0deg, #0d0a14 calc(100% - 62vw), #0d0a14d9 calc(100% - 62vw + 40px), transparent calc(100% - 40vw)),
      radial-gradient(500px 360px at 0% 100%, #ff5bd62e, transparent 70%);
  }

  .fx-hero-copy {
    padding-block: calc(62vw - 34px) 40px;
  }

  .fx-hero-copy > *,
  .fx-hero-copy > .fx-stats,
  .fx-hero-copy > .hero-cta {
    max-width: none;
  }

  .fx-hero h1 {
    font-size: clamp(34px, 9.6vw, 44px);
  }

  .fx-hero .lead {
    font-size: 16px;
  }

  .fx-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
  }

  .fx-stats b {
    font-size: 24px;
  }

  .fx-hero .hero-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .fx-moods {
    padding-top: 100px;
  }

  .fx-mood-grid,
  .fx-reasons {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: none;
  }

  .fx-mood {
    flex: 0 0 78%;
    aspect-ratio: 9 / 14;
    scroll-snap-align: center;
  }

  .fx-mood-body {
    padding: 18px;
  }

  .fx-mood h3 {
    font-size: 22px;
  }

  .fx-mood p {
    font-size: 14px;
  }

  .fx-reason {
    flex: 0 0 74%;
    scroll-snap-align: center;
  }

  .fx-cta-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .fx-cta .fx-phone {
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-track,
  .fx-dot {
    animation: none;
  }

  .fx-mood,
  .fx-mood:hover {
    transition: none;
    transform: none;
  }
}

/* Six needs (kids sport, siłownia, trening personalny): three per row on wide screens */

.fx-mood-grid.fx-six {
  grid-template-columns: repeat(3, 1fr);
}

.fx-six .fx-mood {
  aspect-ratio: 4 / 5;
}

@media (max-width: 1100px) {
  .fx-mood-grid.fx-six {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .fx-six .fx-mood {
    aspect-ratio: 9 / 14;
  }
}

/* Sports cards (/multisport): one glass card per partner, how we check it */

.fx-cards {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-top: 110px;
}

.fx-cards .fx-head p {
  color: #cfc4de;
}

.fx-partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fx-partner {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 26px;
  border: 1px solid #ffffff22;
  border-radius: 24px;
  background:
    radial-gradient(260px 180px at 100% 0%, #ff5bd62b, transparent 70%),
    linear-gradient(160deg, #ffffff12, #ffffff05);
  box-shadow: 0 30px 60px -40px #ff5bd6aa;
  transition:
    transform 0.25s,
    border-color 0.25s;
}

.fx-partner:hover {
  transform: translateY(-4px);
  border-color: #ff5bd680;
}

.fx-partner-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8f2fe0, #ff5bd6);
  color: #fff;
}

.fx-partner h3 {
  margin-top: 6px;
  font: 800 28px/1.1 var(--display);
}

.fx-partner p {
  color: #cfc4de;
}

.fx-partner .fx-partner-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #ff9be6;
  font-weight: 700;
}

@media (max-width: 760px) {
  .fx-cards {
    padding-top: 90px;
  }

  .fx-partners {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fx-partner {
    grid-template-columns: 44px 1fr;
    gap: 4px 14px;
    padding: 18px;
  }

  .fx-partner-icon {
    grid-row: span 3;
    width: 44px;
    height: 44px;
  }

  .fx-partner h3 {
    margin-top: 0;
    font-size: 22px;
  }
}

.gym-how {
  margin-top: 56px;
}

.gym-how .gym-cards {
  margin-top: 20px;
}

/* Trening personalny: our own clip next to the trainers (replaces the YouTube strip) */

.pt-phone {
  justify-self: center;
  width: min(100%, 320px);
}

/* Own gym clip instead of the Vimeo player */

.gym-video-own {
  overflow: hidden;
  border-radius: 28px;
}

.gym-video-own video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
