/* ============================================================
   ROBO HUB — wynajem.css
   Komponenty landing page wynajmu robotów (uzupełnienie style.css)
   ============================================================ */

/* ---------- kadr graficzny w sekcjach split ---------- */
.media-frame {
  position: relative;
  border: 1px solid var(--line, var(--d-line));
  background: var(--bg-2, var(--d-bg-2));
  overflow: hidden;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent, var(--blue));
}
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 16 / 9; }

/* ---------- karty pakietów ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: var(--sp-6);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}
.price-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(8, 20, 26, 0.14);
}
.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(8, 96, 121, 0.16);
}
.price-badge {
  position: absolute;
  top: 0;
  right: var(--sp-5);
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 5px 12px;
}
.price-card .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-card h3 { font-size: clamp(20px, 2vw, 24px); }
.price-card .price-sub { font-size: 14px; color: var(--muted); }
.price {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price small {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.price-note { font-size: 13px; color: var(--muted); }
.price-card .ticks { margin-top: 2px; }
.price-card .ticks li { font-size: 14px; }
.price-card .btn { margin-top: auto; justify-content: center; }
.price-for {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
  font-size: 14px;
  color: var(--muted);
}
.price-for strong { color: var(--ink); }

/* ---------- tabela porównawcza ---------- */
.compare-wrap {
  margin-top: var(--sp-8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.compare-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}
.compare-table tbody th {
  font-weight: 700;
  color: var(--ink);
  min-width: 150px;
}
.compare-table td { color: var(--muted); }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .cell-price { font-weight: 800; color: var(--ink); white-space: nowrap; }

/* ---------- kroki procesu ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.step h3 { font-size: 17px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- drobiazgi ---------- */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.fact {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact strong { color: var(--accent); margin-right: 6px; }

/* ---------- responsywność ---------- */
@media (max-width: 960px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-card--featured { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}
