/* =========================================================
   About Lyocycle – Cards Grid (v1.2)
   – gradient: granat / ciemny fiolet / ciemna zieleń
   – równe, wyższe kafelki + responsywka
   ========================================================= */

#about-lyocycle-cards {
  /* Tokens */
  --bg-navy:   #0a1030;
  --bg-purple: #1c0d2e;
  --bg-green:  #08271d;

  --text:  #e9eeff;
  --muted: #b6c3dc;

  --accent:  #63e2ff;
  --accent2: #7af0ce;

  --card-b1: rgba(255,255,255,.05);
  --card-b2: rgba(255,255,255,.02);
  --stroke:  rgba(255,255,255,.12);
  --stroke-soft: rgba(255,255,255,.06);

  position: relative;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-navy) 0%, var(--bg-purple) 50%, var(--bg-green) 100%);
  padding: clamp(90px, 8vw, 140px) 20px;
  isolation: isolate;
  overflow: hidden; /* pod ewentualne pseudo-elementy */
}

#about-lyocycle-cards .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ========== Intro ========== */
#about-lyocycle-cards .intro h2 {
  text-align: center;
  font-size: clamp(2.3rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#about-lyocycle-cards .intro .subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.2rem;
  margin: 0 0 60px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== Content (lead) ========== */
#about-lyocycle-cards .content {
  max-width: 800px;
  margin: 0 auto 70px;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--muted);
  text-align: justify;
}
#about-lyocycle-cards .content strong {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(99,226,255,.4);
}

/* ========== Values – Cards Grid ========== */
#about-lyocycle-cards .values-grid h3 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 40px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#about-lyocycle-cards .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* min 280px – brak zachodzenia na siebie */
  gap: 28px;
  align-items: stretch; /* wszystkie karty równe */
}

/* Kafelek */
#about-lyocycle-cards .card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: linear-gradient(180deg, var(--card-b1), var(--card-b2));
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 36px 24px;  
  max-width: 375px;           /* więcej miejsca */
  min-height: 280px;              /* wyższe karty – można podnieść do 300–320px */
  box-shadow: 0 12px 24px rgba(0,0,0,.4), inset 0 0 0 1px var(--stroke-soft);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  will-change: transform;
}

#about-lyocycle-cards .card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--accent);
  box-shadow: 0 20px 36px rgba(0,0,0,.55), 0 0 22px rgba(99,226,255,.25);
}

/* Ikona + nagłówek + opis */
#about-lyocycle-cards .card .icon {
  font-size: 2rem;
  line-height: 1;
  margin: 0 0 14px;
  user-select: none;
}

#about-lyocycle-cards .card strong {
  display: block;
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: .2px;
}

#about-lyocycle-cards .card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1; /* treść wypełnia przestrzeń, trzyma równą wysokość */
}

/* ========== Reveal (hook pod Twój IntersectionObserver) ========== */
#about-lyocycle-cards [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
#about-lyocycle-cards [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ========== RWD ========== */
@media (max-width: 992px) {
  #about-lyocycle-cards .content { font-size: 1.05rem; }
  #about-lyocycle-cards .card { min-height: 300px; } /* trochę wyżej na tabletach */
}
@media (max-width: 640px) {
  #about-lyocycle-cards { padding: 70px 16px; }
  #about-lyocycle-cards .grid { gap: 20px; }
  #about-lyocycle-cards .card { padding: 28px 20px; min-height: 320px; }
}

/* ========== Accessibility / Motion ========== */
@media (prefers-reduced-motion: reduce) {
  #about-lyocycle-cards * { transition: none !important; }
}
