/* =====================================================================
   AUTOMAX — Raporty MMR i Carfax
   Arkusz stylów podstrony (system designu AUTOMAX + akcent "data blue")
   ===================================================================== */

*, *::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;
  --success: #10b981;
  --border-color: #e8ebf091;
  --input-bg: #f1f5f9;

  /* Akcent podstrony — analityka / dane (blue) */
  --brand: #249AF3;
  --brand-deep: #1d4ed8;
  --brand-soft: rgba(36, 154, 243, 0.10);
  --brand-grad: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

  --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);
  --shadow-brand: 0 12px 34px rgba(29, 78, 216, 0.20);
}

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(59, 130, 246, 0.16) 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(36, 154, 243, 0.06) 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: var(--brand-soft);
  border: 1px solid rgba(59, 130, 246, 0.34);
  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: #60a5fa; }

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

.subpage-hero h1 span {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #60a5fa;
}

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

.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: #60a5fa; line-height: 1.1; }
.metric-item span { font-size: 11px; color: #94a3b8; font-weight: 500; }

/* ---- Karta hero (panel danych) ---- */
.spec-card {
  background: linear-gradient(160deg, #20293b 0%, #161d2c 100%);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: #ffffff;
  box-shadow: var(--shadow-overlay);
  border: 1px solid rgba(59, 130, 246, 0.30);
  position: relative;
  overflow: hidden;
}

.spec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-grad);
}

.spec-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-card-crest {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
}

.spec-card-head h2 { font-size: 16px; font-weight: 700; color: #ffffff; }
.spec-card-head p { font-size: 11px; color: #94a3b8; }

.spec-perks { display: flex; flex-direction: column; gap: 14px; }

.spec-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.spec-perk i { color: #60a5fa; font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.spec-perk strong { display: block; font-weight: 700; color: #ffffff; }
.spec-perk span { font-size: 11px; color: #94a3b8; }

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

.section-header-center {
  text-align: center;
  max-width: 740px;
  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(--brand-deep);
  margin-bottom: 10px;
}

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

/* ---- Grid kart funkcji ---- */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.perk-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-premium);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.perk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(59, 130, 246, 0.4); }

.perk-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.perk-card h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.perk-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- Anatomia numeru VIN ---- */
.vin-anatomy {
  max-width: 960px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  padding: 32px;
}

.vin-string {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 28px;
}

.vin-char {
  width: 38px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  position: relative;
}

.vin-char[data-group="wmi"] { background: rgba(36, 154, 243, 0.12); border-color: rgba(36, 154, 243, 0.35); color: var(--brand-deep); }
.vin-char[data-group="vds"] { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.35); color: #047857; }
.vin-char[data-group="check"] { background: rgba(36, 154, 243, 0.10); border-color: rgba(36, 154, 243, 0.30); color: var(--accent); }
.vin-char[data-group="vis"] { background: rgba(100, 116, 139, 0.12); border-color: rgba(100, 116, 139, 0.30); color: #475569; }

.vin-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.vin-legend-item { display: flex; gap: 10px; align-items: flex-start; }
.vin-legend-swatch { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; margin-top: 2px; }
.vin-legend-item.wmi .vin-legend-swatch { background: var(--brand); }
.vin-legend-item.vds .vin-legend-swatch { background: var(--success); }
.vin-legend-item.check .vin-legend-swatch { background: var(--accent); }
.vin-legend-item.vis .vin-legend-swatch { background: #64748b; }
.vin-legend-item strong { display: block; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.vin-legend-item span { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ---- Tabela porównawcza ---- */
.compare-wrap {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.compare-row:last-child { border-bottom: none; }

.compare-cell {
  padding: 18px 24px;
  font-size: 13px;
  color: var(--text-main);
}

.compare-cell.feature { font-weight: 600; color: var(--primary); }
.compare-cell.col-a { text-align: center; color: var(--text-muted); border-left: 1px solid var(--border-color); }
.compare-cell.col-b { text-align: center; font-weight: 700; color: var(--primary); border-left: 1px solid var(--border-color); background-color: var(--brand-soft); }

.compare-row.head .compare-cell { padding: 20px 24px; font-size: 13px; }
.compare-row.head .col-a { font-weight: 700; color: var(--primary); background-color: var(--input-bg); }
.compare-row.head .col-b {
  font-weight: 700;
  color: #ffffff;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.compare-cell .yes { color: var(--success); }
.compare-cell .no { color: var(--accent); }
.compare-cell .dash { color: #94a3b8; }

/* ---- Znaczniki tytułu (title brands) ---- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.brand-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-premium);
}

.brand-card.is-safe { border-left-color: var(--success); }
.brand-card.is-warn { border-left-color: #f59e0b; }
.brand-card.is-danger { border-left-color: var(--accent); }

.brand-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.brand-card h3 { font-size: 14px; font-weight: 700; color: var(--primary); }
.brand-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 20px;
}
.brand-pill.safe { background: rgba(16, 185, 129, 0.12); color: #047857; }
.brand-pill.warn { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.brand-pill.danger { background: rgba(36, 154, 243, 0.10); color: var(--accent); }
.brand-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* ---- Skala Manheim Grade ---- */
.grade-scale {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.grade-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-premium);
}

.grade-num {
  font-size: 26px;
  font-weight: 700;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-deep);
  line-height: 1;
  margin-bottom: 8px;
}

.grade-item h4 { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.grade-item p { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }

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

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

.step-card-num {
  position: absolute;
  top: -14px;
  left: 24px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
}

.step-card h3 { font-size: 14px; font-weight: 700; color: var(--primary); margin: 16px 0 8px; }
.step-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* ---- Banner ---- */
.info-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(59, 130, 246, 0.24);
}

.info-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -5%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(30, 41, 59, 0) 70%);
  pointer-events: none;
}

.info-banner-info { position: relative; z-index: 1; }
.info-banner-info h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.info-banner-info h2 span {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #60a5fa;
}
.info-banner-info p { font-size: 14px; color: #cbd5e1; line-height: 1.6; max-width: 600px; }

.info-banner-tag {
  position: relative;
  z-index: 1;
  background: var(--brand-grad);
  color: #ffffff;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-brand);
}

.info-banner-tag strong { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; }
.info-banner-tag span { font-size: 10px; font-weight: 700; text-transform: none; letter-spacing: 0.05em; }

/* ---- 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(--brand); }

.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(--brand-deep); }

.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; }

/* ---- 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(59, 130, 246, 0.24);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.18) 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 {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #60a5fa;
}
.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, filter 0.2s ease;
}

.btn-brand { background: var(--brand-grad); color: #ffffff; }
.btn-brand:hover { filter: brightness(1.08); 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; }
  .perks-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .grade-scale { grid-template-columns: repeat(2, 1fr); }
  .vin-legend { grid-template-columns: 1fr 1fr; }
  .info-banner { flex-direction: column; text-align: center; align-items: stretch; }
  .info-banner-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; }

  .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; }

  .spec-card { padding: 22px; }
  .spec-card-crest { width: 40px; height: 40px; font-size: 17px; }

  .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; }

  .perks-grid { grid-template-columns: 1fr; }
  .perk-card { padding: 24px; }
  .perk-icon { width: 44px; height: 44px; font-size: 18px; }

  .vin-anatomy { padding: 22px; }
  .vin-char { width: 30px; height: 40px; font-size: 16px; }
  .vin-legend { grid-template-columns: 1fr; gap: 12px; }

  .compare-cell { padding: 12px 10px; font-size: 11px; }
  .compare-row.head .compare-cell { padding: 14px 10px; }
  .compare-row { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
  .compare-row.head .col-b { gap: 4px; }

  .brand-grid { grid-template-columns: 1fr; }
  .grade-scale { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr; }
  .step-card { padding: 26px 20px; }

  .info-banner { padding: 24px; }
  .info-banner-info h2 { font-size: 20px; }
  .info-banner-info p { font-size: 12px; }
  .info-banner-tag strong { font-size: 18px; }

  .accordion-header { padding: 16px; font-size: 12px; }
  .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; }
}
