/* Podstrony „Rozwiązania" (templates/public/solution.html.twig).
   Wszystko pod wrapperem .solution-page — plik nie dotyka nagłówka, stopki ani
   reguł globalnych. Ładowany PO landing.css i public-page.css (blok head_extra
   layoutu), z których bierze tokeny --legal-* i listę z checkami (.producer-benefits__list). */

.solution-page {
  --sp-navy: var(--legal-navy, #092439);
  --sp-ink: var(--legal-ink, #1f2a37);
  --sp-muted: var(--legal-muted, #5b6b7b);
  --sp-line: var(--legal-line, #e5e7eb);
  --sp-soft: var(--legal-bg-soft, #f3f4f6);
  /* Zieleń przycisku jak w hero landingu (5,34 : 1 pod bielą — patrz hero-stage.css). */
  --sp-go: #0a7c2c;
  --sp-go-d: #097026;
  --sp-red: #d64545;
}

/* ===== Przyciski ===== */
.solution-page .sp-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.solution-page .sp-btn--go { background: var(--sp-go); color: #fff; }
.solution-page .sp-btn--go:hover,
.solution-page .sp-btn--go:focus { background: var(--sp-go-d); color: #fff; }
.solution-page .sp-btn--ghost { background: #fff; color: var(--sp-navy); border-color: #cfdae6; font-weight: 500; }
.solution-page .sp-btn--ghost:hover,
.solution-page .sp-btn--ghost:focus { border-color: var(--sp-navy); color: var(--sp-navy); }
.solution-page .sp-btn:focus-visible { outline: 2px solid var(--sp-navy); outline-offset: 3px; }

/* ===== Hero ===== */
.sp-hero {
  background: linear-gradient(180deg, #eef3fa 0%, #f7fafd 62%, #fff 100%);
  border-bottom: 1px solid var(--sp-line);
  padding: 2.25rem 0 2.75rem;
}
.sp-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: .5rem 0 1rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #087a08;
}
.sp-hero__ico,
.sp-others__ico {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(9, 36, 57, .06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sp-hero__ico svg,
.sp-others__ico svg {
  width: 19px;
  height: 19px;
  stroke: var(--sp-navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sp-hero__title {
  max-width: 22ch;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--sp-navy);
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
}
.sp-hero__lead {
  max-width: 60ch;
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--sp-muted);
}
.sp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Sekcje ===== */
.sp-section { padding: 3rem 0; }
.sp-section + .sp-section { padding-top: 0; }
.sp-section__eyebrow {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #087a08;
}
.sp-section__title {
  margin: 0 0 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--sp-navy);
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem);
}

/* Rozwiązanie — wyróżnienie, lista punktów i podgląd panelu partnera. Komponenty przeniesione
   z dawnej sekcji zakładek „Moduły" strony głównej (usuniętej; podstrona jest teraz jedynym
   miejscem opisu modułu). Lista z checkami: .producer-benefits__list z landing.css. */
.solution-page .modules__highlight { background: var(--sp-soft); border-left: 4px solid #0ba00b; border-radius: 0 12px 12px 0; padding: 14px 18px; margin-bottom: 20px; }
.solution-page .modules__list { margin-bottom: 0; }
.solution-page .modules__viz { background: var(--sp-soft); border-radius: 30px; padding: 26px; }
.solution-page .modules__viz-list { margin: 0 0 20px; display: grid; gap: 12px; padding: 0; }
.solution-page .modules__viz-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: 0 2px 8px rgba(9, 36, 57, .06); }
.solution-page .modules__viz-title { display: block; font-weight: 600; color: var(--sp-navy); font-size: 14px; }
.solution-page .modules__viz-sub { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }
.solution-page .modules__viz-status { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--sp-navy); background: #eef1f4; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.solution-page .modules__viz-bar-caption { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #374151; margin-bottom: 8px; }
.solution-page .modules__viz-bar-value { font-weight: 700; color: var(--sp-navy); }
.solution-page .modules__viz-bar { height: 10px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.solution-page .modules__viz-bar-fill { height: 100%; border-radius: 999px; background: #0ba00b; }

/* Problem — trzy punkty z czerwonym ✕ (lustrzane odbicie checków w sekcji rozwiązania). */
.sp-problem__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.sp-problem__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(9, 36, 57, .05);
  font-size: 15px;
  line-height: 1.5;
  color: #3b4358;
}
.sp-problem__x {
  flex: 0 0 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(214, 69, 69, .1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-problem__x svg { width: 10px; height: 10px; stroke: var(--sp-red); stroke-width: 2.5; stroke-linecap: round; }

/* Wezwanie do działania */
.sp-cta__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 28px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #092439 0%, #16405f 100%);
  color: #fff;
}
.sp-cta__txt { flex: 1 1 360px; min-width: 0; }
.sp-cta__title { margin: 0 0 .5rem; font-size: 1.4rem; font-weight: 800; color: #fff; }
.sp-cta__txt p { margin: 0; color: #d3dde8; line-height: 1.6; }
.sp-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sp-cta__demo { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sp-cta__demo:hover, .sp-cta__demo:focus { color: #c9f0c9; }
.sp-cta__demo:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* Pozostałe rozwiązania */
.sp-others { padding-bottom: 4rem; }
.sp-others__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.sp-others__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px 20px 44px;
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: var(--sp-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sp-others__card:hover,
.sp-others__card:focus { border-color: var(--sp-navy); box-shadow: 0 6px 18px rgba(9, 36, 57, .08); color: var(--sp-ink); }
.sp-others__card:focus-visible { outline: 2px solid var(--sp-navy); outline-offset: 3px; }
.sp-others__ico { width: 38px; align-self: flex-start; margin-bottom: 6px; }
.sp-others__name { font-weight: 700; color: var(--sp-navy); }
.sp-others__desc { font-size: 13.5px; line-height: 1.45; color: var(--sp-muted); }
.sp-others__arrow { position: absolute; left: 20px; bottom: 16px; font-weight: 700; color: var(--sp-go); }

@media (max-width: 991.98px) {
  .sp-problem__list { grid-template-columns: minmax(0, 1fr); }
  .sp-others__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .sp-hero { padding: 1.5rem 0 2rem; }
  .sp-section { padding: 2.25rem 0; }
  .sp-hero__actions .sp-btn,
  .sp-cta__actions .sp-btn { flex: 1 1 100%; }
  .sp-cta__card { padding: 22px 18px; }
  .sp-others__grid { grid-template-columns: minmax(0, 1fr); }
  .solution-page .modules__viz { padding: 18px; }
  .solution-page .modules__viz-row { flex-wrap: wrap; }
}
