/* =========================================================
   1map-doc.css — wspolny styl stron dokumentacji (/pomoc/*)
   Warstwa 1: uklad i typografia zgodne z /opis/
   Warstwa 2: komponenty .rcn-* przeniesione 1:1 z GFI RCN
   Warstwa 3: blok CTA powielany na podstronach
   ========================================================= */

/* --- reset layoutu Mapbendera dla stron statycznych --- */
html, body { background-color: #f8f9fa !important; }
/* pasek: .head rezerwuje miejsce pod fixed-top navbar.
   Manager daje margin-bottom:4rem, welcome-slider.css nadpisuje na 0.5rem
   — powielamy to, zeby nie ciagnac calego slidera. */
.head { margin-bottom: 0.5rem; }
.doc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #f8f9fa;
  text-align: left;
}

/* --- typografia /opis/ --- */
.opis-section { margin-bottom: 3rem; }
.opis-title {
  font-size: 2.675rem;
  font-weight: 400;
  color: #333;
  margin: 0 0 1rem;
  line-height: 1.2;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: solid #079ee0 5px;
}
.opis-section h2 {
  font-size: 2rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: solid #079ee0 3px;
}
.opis-section h3 {
  font-size: 1.35rem;
  font-weight: 500;
  color: #333;
  margin: 1.5rem 0 0.5rem;
}
.opis-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1rem;
}
.opis-section ul {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-left: 2rem;
  margin-bottom: 1rem;
}
.opis-section li { margin-bottom: 0.5rem; }
.opis-highlight {
  background-color: #e8f4f8;
  padding: 1.5rem;
  border-left: 4px solid #079ee0;
  margin: 2rem 0;
}
.opis-highlight p {
  margin: 0;
  font-size: 1.15rem;
  color: #333;
  font-weight: 500;
}
.doc-meta { font-size: 0.95rem; color: #888; margin-bottom: 2rem; }

/* --- polityka prywatnosci: sekcje musza zostac <h3> (popup RODO stylizuje po znaczniku),
       wiec wyglad naglowka sekcji dajemy klasa --- */
.doc-h3-section {
  font-size: 1.7rem !important;
  font-weight: 400;
  color: #333;
  margin: 0 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: solid #079ee0 3px;
}
.pp-meta { font-size: 0.95rem; color: #888; margin-bottom: 2rem; }
@media (max-width: 768px) {
  .doc-h3-section { font-size: 1.35rem !important; }
}
.doc-foot {
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  margin-top: 3rem;
}

/* --- legenda: paski naglowkowe 1:1 z GFI, 2 kolumny --- */
.rcn-legend {
  margin: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
.rcn-legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rcn-legend-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  width: 230px;
  flex: 0 0 auto;
}
.rcn-legend-desc { font-size: 1rem; color: #666; line-height: 1.4; }

/* --- przyklad: trzy karty obok siebie --- */
.rcn-example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 1.5rem 0 2rem;
  align-items: flex-start;
}
.rcn-example-row .rcn-card { flex: 1 1 300px; margin-bottom: 0; }

/* --- komponenty GFI (1:1 z templates_v3) --- */
.rcn-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #333;
  max-width: 420px;
  overflow: hidden;
}
.rcn-hdr {
  color: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.hdr-lokale   { background: linear-gradient(135deg,#7B2D8E,#9B59B6); }
.hdr-garaze   { background: linear-gradient(135deg,#1A5276,#2980B9); }
.hdr-budynki  { background: linear-gradient(135deg,#B8700A,#E6960F); }
.hdr-dzialki  { background: linear-gradient(135deg,#1B7D3A,#27AE60); }
.hdr-uslugowe { background: linear-gradient(135deg,#9E7E0A,#CA9D64); }
.hdr-garaze .rcn-icon { border-radius: 4px; background: #005BBB; border-color: #fff; }
.rcn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}
.rcn-hdr-text { flex: 1; min-width: 0; }
.rcn-city   { font-size: 15px; font-weight: bold; }
.rcn-street { font-size: 12px; opacity: 0.9; }
.rcn-gcnt-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.rcn-pow-line {
  padding: 6px 12px;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #eee;
}
.rcn-pow-line span { font-size: 15px; font-weight: bold; color: #333; }
.rcn-trans-tree { border-top: 1px solid #eee; background: #f0f4ff; }
.rcn-trans-summary {
  display: block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #445;
  background: #f0f4ff;
}
.rcn-prices { display: flex; border-bottom: 1px solid #eee; }
.rcn-price-col { flex: 1; text-align: center; padding: 8px 6px; }
.rcn-price-col + .rcn-price-col { border-left: 1px solid #eee; }
.rcn-price-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.rcn-price-val { font-size: 18px; font-weight: bold; color: #C0392B; }
.rcn-price-m2  { font-size: 18px; font-weight: bold; color: #1A5276; }
.rcn-row {
  display: flex;
  padding: 5px 12px;
  font-size: 12.5px;
  align-items: baseline;
}
.rcn-row:nth-child(odd)  { background: #f7f7f7; }
.rcn-row:nth-child(even) { background: #fff; }
.rcn-lbl { width: 130px; color: #777; flex-shrink: 0; }
.rcn-val { flex: 1; color: #333; }
.rcn-val-bold { flex: 1; color: #333; font-weight: bold; }

/* --- CTA: blok zapytania ofertowego (powielany, markery 1MAP-CTA) --- */
.opis-cta {
  background-color: #e8f4f8;
  border-top: 3px solid #079ee0;
  border-bottom: 3px solid #079ee0;
  padding: 2rem 1.5rem;
  margin: 3rem 0 2rem;
  text-align: center;
}
.opis-cta-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 0.75rem;
}
.opis-cta p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.opis-cta-btn {
  display: inline-block;
  background-color: #079ee0;
  color: #fff !important;
  font-size: 1.15rem;
  font-weight: 500;
  padding: 0.8rem 2.2rem;
  border-radius: 4px;
  text-decoration: none;
}
.opis-cta-btn:hover { background-color: #0680b5; color: #fff; text-decoration: none; }
.opis-cta-mail { font-size: 0.95rem; color: #888; margin: 0.9rem 0 0 !important; }
.opis-cta-mail a { color: #666; }

/* --- mobile --- */
@media (max-width: 900px) {
  .rcn-legend { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .doc-wrap { padding: 1rem; }
  .opis-title { font-size: 1.9rem; }
  .opis-section h2 { font-size: 1.5rem; }
  .opis-section p, .opis-section ul { font-size: 1rem; }
  .rcn-legend-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rcn-legend-bar { width: 100%; }
  .rcn-example-row .rcn-card { flex: 1 1 100%; }
  .opis-cta { padding: 1.5rem 1rem; }
  .opis-cta-title { font-size: 1.35rem; }
}
