/* 1. VIEWPORT & STICKY */
.syto-scroll-viewport {
  position: relative;
  width: 100%;
  height: var(--syto-duration, 600vh);
}

.syto-sticky-container {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
}

/* 2. SPLIT SCREEN */
.syto-split-layout {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* LEWA STRONA - Tekst główny (ma być POD kartami) */
.syto-text-side {
  width: 40%;
  padding-left: 8vw;
  padding-right: 2vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* PRAWA STRONA - Karty (mają być NAD tekstem) */
.syto-cards-side {
  position: absolute;
  left: 40%;
  width: 60%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  padding-left: 2vw;
  overflow: visible;
}

/* 3. TRACK */
.syto-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  transition: transform 0.05s linear;
  will-change: transform;   /* GPU hint – płynniejszy scroll */
}

/* 4. KARTY (KAFELKI) */
.syto-card {
  position: relative;
  display: block;
  width: 320px;
  height: 480px;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-right: 30px;
  text-decoration: none;
}

.syto-card-img {
  position: absolute !important;
  bottom: 140px !important;
  right: 0 !important;
  width: 85% !important;
  height: auto !important;
  z-index: 10 !important;
}

.syto-card-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.syto-card-box {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 220px !important;
  z-index: 5 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.syto-card-default,
.syto-card-hover {
  z-index: 20 !important;
}

.syto-card-default {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.syto-card-title {
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 0.25rem 0;
  line-height: 1.1;
}

.syto-card-sub {
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.9;
}

.syto-card-hover {
  position: absolute;
  bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.syto-card-hover p {
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin: 0;
}

.syto-card-box:hover .syto-card-default {
  opacity: 0;
  transform: translateY(-20px);
}

.syto-card-box:hover .syto-card-hover {
  opacity: 1;
  transform: translateY(0);
}

/* 5. TYPOGRAFIA (TYTUŁ) */
.syto-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  line-height: 1 !important;
  text-transform: uppercase;
  margin: 0 0 1rem 0 !important;
  font-size: var(--syto-title-size, 80px) !important; 
}

.syto-desc {
  font-family: 'Sora', sans-serif;
  opacity: 0.9;
  line-height: 1.5 !important;
  max-width: 400px;
  font-size: var(--syto-desc-size, 18px) !important;
}

/* 6. PRZYCISK */
.syto-btn-wrapper {
  position: absolute;
  bottom: 8%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.syto-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  background: transparent;
}

.syto-btn:hover {
  filter: brightness(1.2);
  box-shadow: 0 4px 12px 0 #a46900;
}

/* 7. RESPONSYWNOŚĆ */
@media (max-width: 1024px) {

  .syto-scroll-viewport {
    height: 300vh;
  }

  .syto-sticky-container {
    height: 105vh;
    height: 105dvh;
    height: 105svh;            /* stabilne na iOS – bez drgań przy pasku adresu */
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    overflow: hidden;
    display: block;
    padding: 0;
  }

  .syto-split-layout {
    flex-direction: column;
    height: 100%;
    position: relative;
  }

  .syto-text-side {
    width: 100%;
    padding: 4vh 6vw 2vh 6vw;
    z-index: 1;
    justify-content: flex-start;
    text-align: center;
  }

  .syto-cards-side {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60%;
    display: flex;
    align-items: center;
    padding-left: 6vw;
    overflow: visible;
    z-index: 2;
  }

  .syto-track {
    transition: transform 0.05s linear;
  }

  .syto-card {
    width: 260px;
    height: 380px;
    margin-right: 20px;
  }

  .syto-card-img {
    bottom: 110px !important;
    width: 80% !important;
  }

  .syto-card-box {
    height: 170px !important;
    padding: 1rem;
  }

  .syto-card-title { font-size: 0.9rem; }
  .syto-card-sub   { font-size: 0.75rem; }

  /* Fonty mobilne – wartości z metaboxa (desktop: var(--syto-*-size)) */
  .syto-title { font-size: var(--syto-title-size-mobile, 40px) !important; }
  .syto-desc  { font-size: var(--syto-desc-size-mobile, 15px)  !important; max-width: 100%; }

  .syto-btn-wrapper {
    bottom: 0;
    z-index: 30;
  }
}

/* 8. BARDZO MAŁE EKRANY (opcjonalnie) */
@media (max-width: 480px) {
  .syto-card     { width: 220px; height: 300px; }
  .syto-card-box { height: 140px !important; }
  .syto-card-box { margin-bottom: 20px !important;}
}