/* ============================================================================
   RESULTS MODE – pełna szerokość + pasek "Wybrałeś"
   Włącza się po dodaniu klasy: body.results-mode
============================================================================ */

body.results-mode .summary-column{
  display:none !important;
}

body.results-mode .main-container{
  width:100%;
  max-width: 1200px; /* możesz zwiększyć jeśli chcesz szersze */
  margin: 0 auto;
}

body.results-mode .wizard-column{
  width:100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

/* (opcjonalnie) progres już niepotrzebny po wyniku */
body.results-mode .progress-bar-container{
  display:none;
}

/* Pasek u góry */
.results-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 16px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.results-topbar-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}

.results-topbar-title .label{
  font-weight:700;
  color:#031E45;
  font-size: 15px;
}

.results-topbar-actions{
  display:flex;
  gap:10px;
}

.results-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.choice-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.2;
  background: #f7fafc;
  color: #111;
}

.choice-chip .k{
  font-weight:700;
  color:#031E45;
}

.choice-chip .v{
  font-weight:500;
  color:#222;
}

/* Mały reset w topbarze (bez grzebania w Twoim btn-reset) */
.results-reset-btn{
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight: 600;
}
.result-meta{
  margin: 8px 0 14px 0;
  padding: 10px 12px;
  background: #f6f8fb;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  font-size: 14px;
  color: #031E45;
}
.tech-params{
  margin: 10px 0 14px 0;
  padding: 16px 16px;
  background: #e8f0f7;
  border: 2px solid rgba(3, 30, 69, 0.15);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(3, 30, 69, 0.08);
}

.tech-params-header{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(3, 30, 69, 0.15);
  gap: 16px;
  flex-wrap: wrap;
}

.tech-params-title{
  font-weight: 800;
  font-size: 16px;
  color: #031E45;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.tech-params-subtitle{
  font-weight: 600;
  font-size: 13px;
  color: #666;
  letter-spacing: 0.2px;
  text-align: right;
  flex: 1;
}

.tech-params-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.tech-param-item{
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: baseline;
}

.tech-param-label{
  font-weight: 700;
  font-size: 13px;
  color: #031E45;
  flex-shrink: 0;
}

.tech-param-value{
  font-weight: 500;
  font-size: 14px;
  color: #444;
  line-height: 1.3;
  flex: 1;
}

/* Fallback dla starego formatu */
.tech-params-text{
  font-size: 14px;
  line-height: 1.4;
  color: #031E45;
}

.tech-params-text p{
  margin: 4px 0;
}

.tech-params-text ul{
  margin: 4px 0;
  padding-left: 20px;
}

.tech-params-text li{
  margin: 2px 0;
}

/* Responsive - na mobile stack */
@media (max-width: 600px) {
  .tech-params-grid{
    grid-template-columns: 1fr;
  }
  
  .tech-params-header{
    flex-direction: column;
    align-items: flex-start;
  }
  
  .tech-params-subtitle{
    text-align: left;
  }
}
.results-reset-btn:hover{
  filter: brightness(0.98);
}


/* ============================================================================
   Narrative sections (COLLAPSIBLE - zwijane)
============================================================================ */
.narrative-content{
  margin-top: 14px;
}

/* Główny collapsible wrapper */
.result-section{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 0;
  background: #fff;
  margin: 12px 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.result-section:hover{
  border-color: rgba(3, 30, 69, 0.15);
}

.result-section-title{
  font-weight: 800;
  color: #031E45;
  font-size: 15px;
  letter-spacing: .2px;
  padding: 14px 16px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.result-section-title:hover{
  background-color: #f9fafb;
}

.result-section-chevron-wrapper{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.result-section-chevron-text{
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.result-section-title:hover .result-section-chevron-text{
  color: #031E45;
}

.result-section-chevron{
  font-size: 12px;
  color: #666;
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
}

.result-section-title:hover .result-section-chevron{
  color: #031E45;
}

.result-section.collapsed .result-section-chevron{
  transform: rotate(-90deg);
}

/* Zmiana tekstu przy zwinięciu/rozwinięciu */
.result-section:not(.collapsed) .result-section-chevron-text::before{
  content: "ZWIŃ";
}

.result-section.collapsed .result-section-chevron-text::before{
  content: "ROZWIŃ";
}

/* ZAJAWKA - zawsze widoczna */
.result-preview{
  padding: 12px 16px;
  background: #f0f7ff;
  border-top: 1px solid rgba(3, 30, 69, 0.08);
  border-bottom: 1px solid rgba(3, 30, 69, 0.08);
  font-size: 14px;
  line-height: 1.6;
}

.preview-row{
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0;
  flex-wrap: wrap;
}

.preview-label{
  color: #666;
  font-weight: 500;
}

.preview-value{
  color: #031E45;
  font-weight: 700;
}

.preview-arrow{
  color: #999;
  font-weight: 600;
  margin: 0 4px;
}

/* Body collapsible */
.result-section-body{
  max-height: 5000px;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
  padding: 0 16px 14px 16px;
  opacity: 1;
}

.result-section.collapsed .result-section-body{
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

/* Wewnętrzne statyczne sekcje (bez collapsible) */
.result-section-static{
  margin: 16px 0;
  padding: 0;
}

.result-section-title-static{
  font-weight: 700;
  color: #031E45;
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.result-section-body-static p{
  margin: 8px 0;
  line-height: 1.55;
}

.result-section-body-static ul{
  margin: 8px 0 8px 22px;
}

.result-section-body-static li{
  margin: 6px 0;
}

/* ============================================================================
   COST SUMMARY - Tabelka kosztów (strukturalna)
============================================================================ */
.cost-summary-table{
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
}

.cost-summary-table tr{
  border-bottom: 1px dashed rgba(0,0,0,.08);
}

.cost-summary-table tr:last-child{
  border-bottom: none;
}

.cost-summary-table td{
  padding: 12px 14px;
  font-size: 14px;
}

.cost-summary-table .cost-label{
  color: #444;
  font-weight: 500;
}

.cost-summary-table .cost-value{
  text-align: right;
  font-weight: 600;
  color: #031E45;
  white-space: nowrap;
}

/* TOTAL ROW - niebieski box */
.cost-summary-table .cost-total-row{
  background: #031E45;
  color: white;
}

.cost-summary-table .cost-total-row .cost-label,
.cost-summary-table .cost-total-row .cost-value{
  color: white;
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
}
