/* ============================================================
   Jak działamy / How We Work
   ============================================================ */

.how-we-work-intro {
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 2px solid #e0e4ea;
}

.how-we-work-intro h1 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
  color: #07253f;
  letter-spacing: 0.01em;
}

.how-we-work-intro-lead {
  font-size: 16px;
  color: #5a5a5a;
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   Sekcje
   ============================================================ */
.how-we-work-sections {
  padding-bottom: 24px;
}

.how-we-section {
  padding: 52px 0;
  border-bottom: 1px solid #ebebeb;
}

.how-we-section:last-child {
  border-bottom: none;
  padding-bottom: 16px;
}

/* Bootstrap .row już ma margin -15px po obu stronach — nie dodajemy jeszcze raz */
.how-we-section > .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================
   Ikona — okrągły placeholder
   ============================================================ */
.how-we-icon-col {
  padding: 20px 6px;
  text-align: center;
}

/* Wrapper daje przestrzeń pod cień-podłogę i obsługuje hover */
.how-we-icon-wrap {
  display: inline-block;
  position: relative;
  padding-bottom: 20px;
}

/* Cień lewitacji — elipsa pod kulką */
.how-we-icon-wrap::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 14px;
  background: rgba(0, 0, 0, 0.22);
  filter: blur(9px);
  border-radius: 50%;
  transition: width 0.22s ease, opacity 0.22s ease, bottom 0.22s ease;
}

/* Przy hover: kula idzie w górę, cień maleje i opada niżej */
.how-we-icon-col:hover .how-we-icon-wrap::after {
  width: 58px;
  opacity: 0.65;
  bottom: 0;
}

.how-we-icon-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
  margin: 0 auto;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.how-we-icon-col:hover .how-we-icon-circle {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.how-we-icon-circle img,
.how-we-icon-circle svg {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Kolory ikon — do podmiany razem z docelowym plikiem graficznym */
.how-we-icon--coral { background: #F2676B; }
.how-we-icon--blue  { background: #00adef; }
.how-we-icon--navy  { background: #0A3152; }

/* Subtelna faktura — można usunąć po wstawieniu ikon */
.how-we-icon--coral::after,
.how-we-icon--blue::after,
.how-we-icon--navy::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.18) 0%, transparent 65%);
  pointer-events: none;
}

/* ============================================================
   Tekst sekcji
   ============================================================ */
.how-we-text-col {
  padding: 20px 24px 20px 15px;
}

.how-we-section--flipped .how-we-text-col {
  padding: 20px 15px 20px 8px;
}

.how-we-section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  color: #07253f;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.how-we-section p {
  font-size: 15px;
  line-height: 1.72;
  color: #444;
  margin: 0 0 14px;
}

.how-we-section p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Mobile: ikona zawsze nad tekstem, wyśrodkowana
   ============================================================ */
@media (max-width: 991px) {
  .how-we-section > .row {
    flex-direction: column;
  }

  .how-we-icon-col {
    order: -1;
    width: 100%;
    padding-bottom: 8px;
  }

  .how-we-text-col {
    width: 100%;
    padding: 8px 15px 20px;
  }

  .how-we-section--flipped .how-we-text-col {
    padding: 8px 15px 20px;
  }

  .how-we-icon-circle {
    width: 100px;
    height: 100px;
    font-size: 42px;
  }

  .how-we-icon-circle img,
  .how-we-icon-circle svg {
    width: 46px;
    height: 46px;
  }

  .how-we-icon-wrap::after {
    width: 60px;
    height: 10px;
  }

  .how-we-section h2 {
    font-size: 20px;
  }

  .how-we-work-intro h1 {
    font-size: 24px;
  }
}
