/* ============================================================
   AstroEnergy — Spoldzielnie Energetyczne Page
   ============================================================ */

/* --- Hero BG --- */
.page-hero--bg-spoldzielnie {
  position: relative;
  overflow: hidden;
}

.page-hero--bg-spoldzielnie::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/spoldzielnie-bg-web.jpg') center/cover no-repeat;
  opacity: 0.22;
  z-index: 0;
}

.page-hero--bg-spoldzielnie::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, #fff);
  z-index: 0;
}

.page-hero--bg-spoldzielnie .container {
  position: relative;
  z-index: 1;
}

/* --- Intro Section --- */
.sp-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.sp-intro__text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--gray-600);
}

.sp-intro__text p {
  margin-bottom: 1.25rem;
}

.sp-intro__text strong {
  color: var(--gray-800);
}

.sp-intro__img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* --- Benefits --- */
.sp-benefits {
  margin-bottom: 4rem;
}

.sp-benefits__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 0.5rem;
}

.sp-benefits__subtitle {
  font-size: 1rem;
  color: #444;
  text-align: center;
  margin-bottom: 2.5rem;
}

.sp-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sp-benefit-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.sp-benefit-card:hover {
  border-color: rgba(138, 61, 140, 0.25);
  box-shadow: 0 8px 30px rgba(104, 41, 106, 0.08);
  transform: translateY(-3px);
}

.sp-benefit-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: var(--accent-bg);
  border-radius: 14px;
  color: var(--accent);
}

.sp-benefit-card__icon svg {
  width: 28px;
  height: 28px;
}

.sp-benefit-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.sp-benefit-card__desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- How It Works --- */
.sp-how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.sp-how__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.5rem;
}

.sp-how__steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.sp-how__step {
  position: relative;
  padding: 1rem 0 1rem 3.5rem;
  border-bottom: 1px solid var(--gray-100);
  counter-increment: step;
}

.sp-how__step:last-child {
  border-bottom: none;
}

.sp-how__step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 50%;
}

.sp-how__step-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.sp-how__step-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.sp-how__img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* --- Requirements --- */
.sp-requirements {
  padding: 2.5rem 3rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 4rem;
}

.sp-requirements__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.5rem;
  text-align: center;
}

.sp-requirements__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sp-requirement {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sp-requirement__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border-radius: 10px;
  color: var(--accent);
  flex-shrink: 0;
}

.sp-requirement__icon svg {
  width: 18px;
  height: 18px;
}

.sp-requirement__text {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.sp-requirement__text strong {
  color: var(--gray-800);
}

/* --- CTA Banner --- */
.sp-cta {
  padding: 3rem;
  background: #000;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
  text-align: center;
}

.sp-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/spoldzielnie-bg-web.jpg') center/cover no-repeat;
  filter: brightness(0.3);
  z-index: 0;
}

.sp-cta__inner {
  position: relative;
  z-index: 1;
}

.sp-cta__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.sp-cta__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.sp-cta__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.sp-cta__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s;
}

.sp-cta__contact a:hover {
  opacity: 0.8;
}

.sp-cta__contact svg {
  width: 18px;
  height: 18px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .sp-intro,
  .sp-how {
    grid-template-columns: 1fr;
  }

  .sp-benefits__grid,
  .sp-requirements__grid {
    grid-template-columns: 1fr;
  }

  .sp-requirements {
    padding: 1.5rem;
  }
}
