/* ===========================================
   SFERAHOST ECOSYSTEM - FORCE OVERRIDE v2
   Poprawiona wysokość i spacing
   =========================================== */

/* Minimalne, bezpieczne dodatki pod BS3 */
.sf-ecosystem { 
  margin-top: 20px !important; 
  margin-bottom: 40px !important; 
}

.sf-hero { 
  padding: 40px 35px !important; 
}

.sf-hero h1 { 
  margin-top: 0 !important; 
}

.sf-cta { 
  margin-top: 18px !important; 
}

.sf-cta .btn { 
  margin-right: 8px !important; 
}

/* FORCE JUMBOTRON - więcej wysokości */
.sf-ecosystem .jumbotron {
  background: linear-gradient(135deg, #4a5dd8, #3d52d5) !important;
  color: #fff !important;
  border-radius: 16px !important;
  padding: 55px 50px 50px !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.3) !important;
  min-height: 420px !important;
}

/* Mocniejsza poświata dla lepszej czytelności */
.sf-ecosystem .jumbotron:before {
  content: "" !important;
  position: absolute !important;
  top: -30% !important;
  left: -30% !important;
  right: -30% !important;
  bottom: -30% !important;
  background: radial-gradient(closest-side, rgba(255,255,255,.3), rgba(255,255,255,0) 60%) !important;
  transform: rotate(10deg) !important;
  pointer-events: none !important;
}

/* Treść ponad tłem */
.sf-ecosystem .jumbotron > * {
  position: relative !important;
  z-index: 1 !important;
}

.sf-ecosystem .jumbotron h1 {
  font-size: 48px !important;
  font-weight: 700 !important;
  margin-bottom: 18px !important;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.3) !important;
  line-height: 1.2 !important;
}

.sf-ecosystem .jumbotron .lead {
  color: #fff !important;
  opacity: 0.95 !important;
  font-size: 19px !important;
  max-width: 60ch !important;
  text-shadow: 0 1px 6px rgba(0,0,0,.2) !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
}

/* FORCE USP - białe ikony + lepszy kontrast - JEDNA LINIA */
.sf-ecosystem .sf-usp {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 32px !important;
  align-items: center !important;
}

.sf-ecosystem .sf-usp .col-sm-4 {
  width: auto !important;
  flex: 0 0 auto !important;
  float: none !important;
  padding: 0 !important;
}

.sf-ecosystem .sf-usp__item {
  display: inline-flex !important;
  align-items: center !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.2) !important;
  font-size: 15px !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

/* Ikony - obsługa zarówno Glyphicon jak i emoji */
.sf-ecosystem .sf-usp__item .glyphicon,
.sf-ecosystem .sf-usp__item .sf-icon {
  margin-right: 10px !important;
  color: #ffd700 !important;
  font-size: 20px !important;
  text-shadow: 0 2px 6px rgba(0,0,0,.3) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  min-width: 24px !important;
  text-align: center !important;
}

/* Specjalne style dla emoji */
.sf-ecosystem .sf-usp__item .sf-icon {
  font-style: normal !important;
  line-height: 1 !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)) !important;
}

/* Fallback gdy Glyphicons nie działają - używamy Unicode */
.sf-ecosystem .sf-usp__item .glyphicon:before {
  font-family: inherit !important;
}

.sf-ecosystem .sf-usp__item .glyphicon-ok-circle:before {
  content: "✓" !important;
  font-weight: bold !important;
}

.sf-ecosystem .sf-usp__item .glyphicon-flash:before {
  content: "⚡" !important;
}

.sf-ecosystem .sf-usp__item .glyphicon-headphones:before {
  content: "🎧" !important;
}

/* FORCE SIDEBOX - bardziej widoczny na tle */
.sf-ecosystem .sf-sidebox.panel {
  background: #fff !important;
  border: 1px solid rgba(255,255,255,.4) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #333 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.2) !important;
  margin-bottom: 0 !important;
}

.sf-ecosystem .sf-sidebox .panel-heading {
  background: rgba(42, 60, 191, .1) !important;
  border-bottom: 1px solid rgba(42, 60, 191, .2) !important;
  color: #213db5 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 16px 18px !important;
}

.sf-ecosystem .sf-sidebox .panel-body {
  background: transparent !important;
  padding: 20px 18px !important;
}

.sf-ecosystem .sf-sidebox .text-muted {
  color: #666 !important;
}

.sf-ecosystem .sf-sidebox strong {
  color: #213db5 !important;
}

.sf-ecosystem .sf-paths {
  margin: 0 0 16px 0 !important;
  padding-left: 18px !important;
  color: #333 !important;
}

.sf-ecosystem .sf-paths li {
  margin: 8px 0 !important;
  color: #333 !important;
  line-height: 1.5 !important;
}

.sf-ecosystem .jumbotron .row {
  display: flex !important;
  align-items: stretch !important;
  margin-left: -15px !important;
  margin-right: -15px !important;
}

.sf-ecosystem .jumbotron .col-md-8 {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.sf-ecosystem .jumbotron .col-md-4 {
  display: flex !important;
  flex-direction: column !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Push CTA na dół */
.sf-ecosystem .sf-cta {
  margin-top: auto !important;
  padding-top: 28px !important;
}

/* FORCE PRZYCISKI - lepszy kontrast */
.sf-ecosystem .jumbotron .btn-primary {
  background: #fff !important;
  background-color: #fff !important;
  border-color: #fff !important;
  color: #213db5 !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.3) !important;
  transition: all 0.3s ease !important;
  text-shadow: none !important;
  padding: 13px 28px !important;
  font-size: 16px !important;
}

.sf-ecosystem .jumbotron .btn-primary:hover,
.sf-ecosystem .jumbotron .btn-primary:focus,
.sf-ecosystem .jumbotron .btn-primary:active {
  background: #f0f0f0 !important;
  background-color: #f0f0f0 !important;
  border-color: #f0f0f0 !important;
  color: #1b2f96 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.35) !important;
}

.sf-ecosystem .jumbotron .btn-default {
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  border-color: #fff !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  text-shadow: none !important;
  padding: 13px 28px !important;
  font-size: 16px !important;
}

.sf-ecosystem .jumbotron .btn-default:hover,
.sf-ecosystem .jumbotron .btn-default:focus,
.sf-ecosystem .jumbotron .btn-default:active {
  background: #fff !important;
  background-color: #fff !important;
  color: #213db5 !important;
  border-color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.25) !important;
}

.sf-section { 
  margin-top: 48px !important; 
}

.sf-h2 { 
  color: #213db5 !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

/* CARDS */
.sf-card { 
  height: 100% !important; 
}

.sf-card .panel-heading { 
  background: rgba(33, 61, 181, 0.06) !important; 
  border-bottom: 1px solid rgba(33, 61, 181, 0.15) !important; 
  font-size: 15px !important; 
  padding: 14px 16px !important; 
}

.sf-card .panel-heading strong { 
  color: #213db5 !important; 
  font-weight: 700 !important; 
}

.sf-card .panel-body { 
  min-height: 250px !important; 
  padding: 18px 18px 20px !important; 
}

.sf-card__desc { 
  min-height: 54px !important; 
  margin-bottom: 14px !important; 
  line-height: 1.55 !important; 
}

.sf-card--highlight { 
  border: 2px solid #213db5 !important; 
  box-shadow: 0 12px 32px rgba(33, 61, 181, 0.15) !important;
}

.sf-card .btn { 
  margin-top: 6px !important; 
}

.sf-card--highlight .panel-heading { 
  background: rgba(33, 61, 181, 0.12) !important; 
}

.sf-bullets { 
  padding-left: 18px !important; 
  margin: 14px 0 18px !important; 
}

.sf-bullets li { 
  margin: 6px 0 !important; 
  margin-bottom: 6px !important; 
}

.sf-price { 
  margin: 10px 0 12px !important; 
  font-size: 15px !important; 
}

.sf-note { 
  margin-top: 10px !important; 
}

/* DESKTOP - 992px+ */
@media (min-width: 992px) {
  .sf-ecosystem .jumbotron .row {
    display: flex !important;
    align-items: stretch !important;
  }
  
  .sf-ecosystem .jumbotron .col-md-8,
  .sf-ecosystem .jumbotron .col-md-4 {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .sf-ecosystem .jumbotron .col-md-8 {
    justify-content: space-between !important;
  }
  
  .sf-ecosystem .sf-cta {
    margin-top: auto !important;
    padding-top: 28px !important;
  }
}

/* MEDIUM DESKTOP - 992-1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .sf-ecosystem .jumbotron {
    padding: 45px 35px 40px !important;
    min-height: 380px !important;
  }

  .sf-ecosystem .jumbotron h1 {
    font-size: 42px !important;
    margin-bottom: 16px !important;
  }

  .sf-ecosystem .jumbotron .lead {
    font-size: 17px !important;
    max-width: 52ch !important;
    margin-bottom: 20px !important;
  }

  .sf-ecosystem .jumbotron .col-md-8 { 
    width: 66.66666667% !important; 
  }
  
  .sf-ecosystem .jumbotron .col-md-4 { 
    width: 33.33333333% !important; 
  }

  /* USP w jednej linii, mniejszy gap */
  .sf-ecosystem .sf-usp {
    gap: 24px !important;
  }
  
  .sf-ecosystem .sf-usp__item {
    font-size: 14px !important;
  }
  
  .sf-ecosystem .sf-usp__item .glyphicon,
  .sf-ecosystem .sf-usp__item .sf-icon {
    font-size: 18px !important;
  }

  .sf-ecosystem .sf-sidebox .panel-body {
    padding: 16px !important;
  }
  
  .sf-ecosystem .sf-sidebox li {
    margin: 7px 0 !important;
  }

  .sf-ecosystem .sf-cta .btn {
    padding: 12px 22px !important;
    min-width: 150px !important;
    font-size: 15px !important;
  }
}

/* TABLET - max 991px */
@media (max-width: 991px) {
  .sf-ecosystem .jumbotron {
    padding: 40px 30px 35px !important;
    min-height: auto !important;
  }

  .sf-ecosystem .jumbotron .col-md-4 {
    margin-top: 24px !important;
  }

  .sf-ecosystem .sf-cta {
    margin-top: 20px !important;
    padding-top: 20px !important;
  }
  
  .sf-ecosystem .jumbotron h1 {
    font-size: 40px !important;
  }
  
  .sf-ecosystem .jumbotron .lead {
    font-size: 17px !important;
  }
  
  /* USP nadal w jednej linii, ale mniejsze */
  .sf-ecosystem .sf-usp {
    gap: 24px !important;
  }
  
  .sf-ecosystem .sf-usp__item {
    font-size: 14px !important;
  }
  
  .sf-ecosystem .sf-usp__item .glyphicon,
  .sf-ecosystem .sf-usp__item .sf-icon {
    font-size: 18px !important;
  }
}

/* MOBILE - max 767px */
@media (max-width: 767px) {
  .sf-hero { 
    padding: 28px 20px !important; 
  }
  
  .sf-cta .btn { 
    display: block !important; 
    width: 100% !important; 
    margin: 8px 0 0 !important; 
  }
  
  .sf-ecosystem .jumbotron {
    padding: 32px 22px !important;
    border-radius: 16px !important;
    min-height: auto !important;
  }

  .sf-ecosystem .jumbotron h1 {
    font-size: 36px !important;
    line-height: 1.1 !important;
    margin-bottom: 14px !important;
  }
  
  .sf-ecosystem .jumbotron .lead {
    font-size: 16px !important;
    margin-bottom: 20px !important;
  }

  /* USP w kolumnie na mobile */
  .sf-ecosystem .sf-usp {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .sf-ecosystem .sf-usp .col-sm-4 {
    width: 100% !important;
  }
  
  .sf-ecosystem .sf-usp__item {
    font-size: 14px !important;
    padding: 0 10px !important;
    line-height: 1.4 !important;
  }
  
  .sf-ecosystem .sf-usp__item .glyphicon,
  .sf-ecosystem .sf-usp__item .sf-icon {
    font-size: 18px !important;
    margin-right: 8px !important;
  }

  .sf-ecosystem .sf-cta .btn {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 0 !important;
    padding: 14px 20px !important;
  }

  .sf-ecosystem .sf-sidebox {
    margin-top: 24px !important;
  }
  
  /* Wyłącz flex na mobile */
  .sf-ecosystem .jumbotron .row {
    display: block !important;
  }

  .sf-ecosystem .jumbotron .col-md-8,
  .sf-ecosystem .jumbotron .col-md-4 {
    width: 100% !important;
    float: none !important;
  }

  .sf-ecosystem .jumbotron .col-md-4 {
    margin-top: 24px !important;
  }

  .sf-ecosystem .sf-cta {
    margin-top: 20px !important;
    padding-top: 20px !important;
  }
}

/* EXTRA SMALL - max 420px */
@media (max-width: 420px) {
  .sf-ecosystem .jumbotron {
    padding: 26px 16px !important;
  }
  
  .sf-ecosystem .jumbotron h1 {
    font-size: 32px !important;
  }

  .sf-ecosystem .sf-sidebox,
  .sf-ecosystem .sf-sidebox .panel-body {
    width: 100% !important;
  }

  .sf-ecosystem .sf-sidebox li {
    margin: 6px 0 !important;
  }
}