/* CargoTown — wspólny styl podstron (Jak to działa, Cennik). Bazuje na zmiennych ze styles.css. */

.page-hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 150px 24px 40px;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 40px 10% auto;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(240, 200, 107, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}
.page-hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 10px auto 16px;
  max-width: 820px;
}
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero .lead { max-width: 680px; margin: 0 auto; }

/* Spis treści — przyklejone "pigułki" do przeskoku między sekcjami */
.toc {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin: 18px auto 0;
  max-width: var(--max-width);
  background: rgba(10, 11, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.toc a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s;
}
.toc a:hover { color: var(--gold-soft); border-color: rgba(240, 200, 107, 0.45); }

.page-section { max-width: var(--max-width); margin: 0 auto; padding: 72px 24px 8px; scroll-margin-top: 130px; }
.page-section > .head { text-align: center; margin-bottom: 36px; }
.page-section > .head .lead { margin: 0 auto; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.info-card:hover { transform: translateY(-5px); border-color: rgba(240, 200, 107, 0.3); }
.info-card .ico { font-size: 30px; margin-bottom: 12px; }
.info-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.info-card p, .info-card li { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }
.info-card ul { padding-left: 18px; margin-top: 8px; }
.info-card .tag {
  display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 800;
  color: var(--gold-soft); background: rgba(240, 200, 107, 0.1); border-radius: 999px; padding: 4px 11px;
}

/* Oś kroków */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 8px; }
.timeline::before {
  content: ""; position: absolute; left: 30px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--gold), rgba(240, 200, 107, 0.05));
}
.t-step { position: relative; display: flex; gap: 22px; padding: 14px 0; }
.t-num {
  flex: 0 0 46px; height: 46px; border-radius: 50%; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; color: #0a0b0c;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  box-shadow: 0 0 0 6px var(--bg);
}
.t-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; flex: 1; }
.t-body h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.t-body p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* Wyróżnione uwagi */
.callout {
  max-width: 820px; margin: 24px auto 0; padding: 18px 22px; border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 200, 107, 0.35); background: rgba(240, 200, 107, 0.07);
  font-size: 13.5px; line-height: 1.65; color: var(--text-muted);
}
.callout b { color: var(--gold-soft); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }

/* Tabele */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.ct-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
.ct-table th, .ct-table td { padding: 13px 16px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ct-table th:first-child, .ct-table td:first-child { text-align: left; font-weight: 700; white-space: normal; }
.ct-table thead th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); background: rgba(255, 255, 255, 0.02); }
.ct-table tbody tr:last-child td { border-bottom: 0; }
.ct-table tbody tr:hover { background: rgba(240, 200, 107, 0.05); }
.ct-table .from { color: var(--gold); font-weight: 900; }

.page-cta { max-width: var(--max-width); margin: 80px auto 0; padding: 0 24px; }
.mini-nav a.current { color: var(--gold-soft); }

@media (max-width: 640px) {
  .page-hero { padding-top: 120px; }
  .t-step { gap: 14px; }
  .timeline::before { left: 22px; }
  .t-num { flex-basis: 38px; height: 38px; font-size: 15px; }
}
