/* Karuzela strony głównej - treść z ACF (menu "Karuzela"), shortcode [tabliczki_karuzela] */

/* Wygląd wspólny z resztą strony głównej (kafle "Dla firm" itd.) */
.apple-stack-wrap {
  --tk-radius: 12px;
  --tk-shadow: 0 2px 18px -8px rgba(0,0,0,0.3);
  /* czcionka: --tk-font z inc/czcionki/czcionki.css (Inter na całej stronie) */
}

/* Rząd Divi z karuzelą dostaje szerokość rzędu z kaflami: 95%, max 1920 px */
.et_pb_row:has(.apple-stack-wrap) {
  width: 95%;
  max-width: 1920px;
}
.apple-stack-wrap {
  width: 100%;
  background: transparent;
  padding: 24px 0 20px;
  font-family: var(--tk-font);
  position: relative;
}
.apple-stack-wrap a,
.apple-stack-wrap a:hover { text-decoration: none; color: #fff; }
.apple-row-outer { overflow: hidden; position: relative; width: 100%; padding: 12px 0; margin: -12px 0; }
.apple-row-track { display: flex; width: max-content; will-change: transform; backface-visibility: hidden; }
.apple-small-outer { margin-bottom: 28px; }
.apple-small-track { gap: 12px; }
.apple-small-card {
  position: relative;
  flex: 0 0 auto;
  width: 270px; /* 3:2 */
  height: 180px;
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow);
  overflow: hidden;
  background-color: #2c2c2e;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  box-sizing: border-box;
  color: #fff;
}
.apple-small-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  z-index: 1;
  pointer-events: none;
}
.apple-small-badge { position: relative; z-index: 2; align-self: flex-end; font-size: 13px; font-weight: 600; }
.apple-small-bottom { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.apple-small-title { font-family: var(--tk-font); font-size: 15px; font-weight: 700; line-height: 1.2; max-width: 140px; }
.apple-small-btn,
.apple-hero-pill {
  flex-shrink: 0;
  background: rgba(255,255,255,0.9);
  color: #000;
  border-radius: 999px;
  font-family: var(--tk-font);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.apple-small-btn { padding: 7px 13px; font-size: 12px; }
.apple-small-card:hover .apple-small-btn,
.apple-hero-slide:hover .apple-hero-pill { background: #fff; }
.apple-hero-track { gap: 16px; }
.apple-hero-slide {
  position: relative;
  flex: 0 0 auto;
  width: 630px; /* 3:2 */
  height: 420px;
  padding: 28px;
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow);
  overflow: hidden;
  background-color: #1d1d1f;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-sizing: border-box;
}
.apple-hero-slide::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  z-index: 1;
  pointer-events: none;
}
.apple-hero-logo { position: relative; z-index: 2; align-self: flex-end; font-size: 15px; font-weight: 600; margin-bottom: auto; }
.apple-hero-bottom { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.apple-hero-pill { padding: 10px 18px; font-size: 14px; }
.apple-hero-text { font-family: var(--tk-font); font-size: 17px; font-weight: 500; line-height: 1.3; }
.apple-hero-text b { font-weight: 700; }
.apple-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 0 0;
  position: relative;
  z-index: 3;
}
.apple-dot {
  background: #8e8e93;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}
.apple-dot.active { background: #1d1d1f; }
@media (max-width: 900px) {
  .apple-small-card { width: 210px; height: 140px; padding: 12px; }
  .apple-small-title { font-size: 13px; max-width: 100px; }
  .apple-hero-slide { width: 510px; height: 340px; padding: 22px; }
}
