/* =====================================================================
   AUTOMAX — Wykup aut z Manheim
   Arkusz stylów podstrony (system designu AUTOMAX, akcent red/navy + green)
   ===================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #1e293b;
  --accent: #249AF3;
  --accent-hover: #1d4ed8;
  --success: #10b981;
  --info: #249AF3;
  --border-color: #e8ebf091;
  --input-bg: #f1f5f9;

  --radius-sm: 5px;
  --radius-md: 5px;
  --radius-lg: 5px;

  --shadow-premium: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-overlay: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-main);
  background-color: var(--bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font-family: inherit; border: none; outline: none; background: none; cursor: pointer; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== HERO ===================== */
.subpage-hero {
  background-color: var(--primary);
  color: #ffffff;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(36, 154, 243, 0.10) 0%, rgba(30, 41, 59, 0) 70%);
  pointer-events: none;
}

.subpage-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -8%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.07) 0%, rgba(30, 41, 59, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(36, 154, 243, 0.12);
  border: 1px solid rgba(36, 154, 243, 0.28);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #bfdbfe;
  letter-spacing: 0.06em;
  text-transform: none;
  margin-bottom: 16px;
}
.hero-title-badge i { color: var(--accent); }

.subpage-hero h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.subpage-hero h1 span { color: var(--accent); }

.subpage-hero .hero-lead {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.trust-metrics {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.metric-item h4 { font-size: 22px; font-weight: 700; color: #ffffff; line-height: 1.1; }
.metric-item span { font-size: 11px; color: #94a3b8; font-weight: 500; }

/* ---- Karta „Co sprawdzamy” (hero) ---- */
.check-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: var(--text-main);
  box-shadow: var(--shadow-overlay);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.check-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--success) 100%);
}

.check-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-card h2 i { color: var(--success); }
.check-card > p { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }

.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-main);
}
.check-list-item i { color: var(--success); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.check-list-item strong { display: block; font-weight: 700; color: var(--primary); }
.check-list-item span { font-size: 11px; color: var(--text-muted); }

/* ===================== SEKCJE ===================== */
.section-spacing { padding: 80px 0; }

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header-center h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header-center p { font-size: 14px; color: var(--text-muted); }

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 10px;
}

.bg-muted-section {
  background-color: #f1f5f9;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* ---- Czym jest Manheim (intro + statystyki) ---- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.intro-text h2 { font-size: 26px; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; margin-bottom: 16px; }
.intro-text h2 span { color: var(--accent); }
.intro-text p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.intro-text p:last-child { margin-bottom: 0; }
.intro-text strong { color: var(--primary); font-weight: 700; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-premium);
}
.stat-box i { font-size: 20px; color: var(--accent); margin-bottom: 12px; }
.stat-box:nth-child(2) i, .stat-box:nth-child(3) i { color: var(--success); }
.stat-box h3 { font-size: 24px; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.stat-box p { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

/* ---- Porównanie giełd (matrix) ---- */
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.matrix-col {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-premium);
  position: relative;
}
.matrix-col--manheim { border-color: rgba(16, 185, 129, 0.4); }

.matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.matrix-header h3 { font-size: 19px; font-weight: 700; color: var(--primary); }

.role-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0.05em;
}
.role-badge--info { background-color: var(--input-bg); color: var(--text-muted); }
.role-badge--exec { background-color: rgba(16, 185, 129, 0.12); color: #047857; }

.matrix-list { display: flex; flex-direction: column; gap: 16px; }
.matrix-item { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--primary); line-height: 1.5; }
.matrix-item i { font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.matrix-col--salvage .matrix-item i { color: var(--accent); }
.matrix-col--manheim .matrix-item i { color: var(--success); }
.matrix-item strong { font-weight: 700; display: block; margin-bottom: 2px; color: var(--primary); }
.matrix-item span { color: var(--text-muted); }

/* ---- Co sprawdzamy (checks grid) ---- */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.check-tile {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-premium);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.check-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(16, 185, 129, 0.4); }

.check-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 16px;
}
.check-tile h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.check-tile p { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* ---- Proces wykupu (flow) ---- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flow-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.flow-step-num {
  position: absolute;
  top: -13px;
  left: 22px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.flow-card:nth-child(2) .flow-step-num { background-color: var(--accent); }
.flow-card:nth-child(3) .flow-step-num { background-color: var(--info); }
.flow-card:nth-child(4) .flow-step-num { background-color: var(--success); }

.flow-card .flow-icon { font-size: 22px; color: var(--text-muted); margin: 10px 0 12px; }
.flow-card h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.flow-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* ---- Segmenty pojazdów ---- */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.segment-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-premium);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.segment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.segment-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--input-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}
.segment-card h3 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.segment-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ---- Banner prowizji ---- */
.commission-banner {
  background: linear-gradient(160deg, #20293b 0%, #141b29 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(36, 154, 243, 0.22);
}
.commission-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -5%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(36, 154, 243, 0.16) 0%, rgba(30, 41, 59, 0) 70%);
  pointer-events: none;
}
.commission-info { position: relative; z-index: 1; }
.commission-info h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.commission-info p { font-size: 14px; color: #cbd5e1; line-height: 1.6; max-width: 560px; }
.commission-tag {
  position: relative;
  z-index: 1;
  background-color: var(--accent);
  color: #ffffff;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  white-space: nowrap;
}
.commission-tag strong { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; }
.commission-tag span { font-size: 10px; font-weight: 700; text-transform: none; letter-spacing: 0.05em; opacity: 0.9; }

/* ---- FAQ ---- */
.faq-wrapper { max-width: 820px; margin: 0 auto; }

.accordion-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.accordion-item.active { border-color: var(--accent); }

.accordion-header {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  transition: background-color 0.2s ease;
}
.accordion-header:hover { background-color: var(--input-bg); }
.accordion-header i { font-size: 12px; color: var(--text-muted); transition: transform 0.3s ease; flex-shrink: 0; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); color: var(--accent); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
}
.accordion-content { padding: 0 24px 20px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.accordion-item.active .accordion-content { padding-top: 4px; }
.accordion-content strong { color: var(--primary); }

/* ---- CTA ---- */
.cta-band {
  background: linear-gradient(160deg, #20293b 0%, #141b29 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(36, 154, 243, 0.22);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(36, 154, 243, 0.16) 0%, rgba(30, 41, 59, 0) 60%);
  pointer-events: none;
}
.cta-band h2 { font-size: 26px; font-weight: 700; color: #ffffff; margin-bottom: 12px; position: relative; letter-spacing: -0.02em; }
.cta-band h2 span { color: var(--accent); }
.cta-band p { font-size: 14px; color: #cbd5e1; max-width: 580px; margin: 0 auto 28px; position: relative; line-height: 1.6; }

.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.btn-primary { background-color: var(--accent); color: #ffffff; }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost { background-color: rgba(255, 255, 255, 0.08); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.16); }
.btn-ghost:hover { background-color: rgba(255, 255, 255, 0.14); }

/* ---- Animacja wejścia ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================== RWD ===================== */
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .matrix-grid { grid-template-columns: 1fr; }
  .checks-grid { grid-template-columns: 1fr 1fr; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .segment-grid { grid-template-columns: 1fr 1fr; }
  .commission-banner { flex-direction: column; text-align: center; align-items: stretch; }
  .commission-tag { width: 100%; }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }

  .subpage-hero { padding: 36px 0 44px; }
  .subpage-hero h1 { font-size: 24px; margin-bottom: 14px; line-height: 1.2; }
  .subpage-hero .hero-lead { font-size: 13px; margin-bottom: 22px; }
  .hero-title-badge { font-size: 9px; padding: 4px 10px; margin-bottom: 12px; }
  .hero-cta-row { margin-bottom: 22px; }

  .trust-metrics { gap: 16px; flex-wrap: wrap; }
  .metric-item { width: calc(50% - 8px); }
  .metric-item h4 { font-size: 18px; }
  .metric-item span { font-size: 10px; }

  .check-card { padding: 22px; }

  .section-spacing { padding: 48px 0; }
  .section-header-center { margin-bottom: 28px; }
  .section-header-center h2 { font-size: 20px; }
  .section-header-center p { font-size: 12px; }

  .intro-text h2 { font-size: 20px; }
  .intro-text p { font-size: 12.5px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-box { padding: 20px 16px; }
  .stat-box h3 { font-size: 20px; }

  .matrix-col { padding: 24px; }
  .matrix-header h3 { font-size: 17px; }
  .matrix-item { font-size: 12px; }

  .checks-grid { grid-template-columns: 1fr; }
  .check-tile { padding: 24px; }

  .flow-grid { grid-template-columns: 1fr; gap: 16px; }
  .flow-card { padding: 26px 20px; }

  .segment-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .segment-card { padding: 22px 16px; }
  .segment-icon { width: 46px; height: 46px; font-size: 19px; }

  .commission-banner { padding: 26px; }
  .commission-info h3 { font-size: 19px; }
  .commission-info p { font-size: 12.5px; }
  .commission-tag strong { font-size: 20px; }

  .accordion-header { padding: 16px; font-size: 12.5px; }
  .accordion-content { padding: 0 16px 16px; font-size: 12px; }

  .cta-band { padding: 32px 20px; }
  .cta-band h2 { font-size: 20px; }
  .cta-band p { font-size: 12px; }
  .btn { width: 100%; justify-content: center; }
}
