/* =====================================================================
   AUTOMAX — Zasady prezentacji ofert
   Arkusz stylów podstrony (spójny z systemem designu AUTOMAX)
   ===================================================================== */

*, *::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;
  --warning: #f59e0b;
  --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: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(36, 154, 243, 0.09) 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(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.04em;
  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;
}

.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 zasad (hero) ---- */
.principles-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--text-main);
  box-shadow: var(--shadow-overlay);
  border: 1px solid var(--border-color);
}

.principles-card h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.principles-card h2 i { color: var(--success); }

.principles-list { display: flex; flex-direction: column; gap: 14px; }

.principle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
}

.principle-row i { color: var(--success); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.principle-row strong { display: block; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.principle-row span { font-size: 12px; 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);
}

/* ---- Porównanie: Gość vs Zweryfikowany ---- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.access-col--verified { border-color: #cbd5e1; }
.access-col--verified::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  opacity: 0.18;
  pointer-events: none;
}

.access-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.access-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.access-header h3 i { font-size: 16px; }
.access-col--guest .access-header h3 i { color: var(--text-muted); }
.access-col--verified .access-header h3 i { color: var(--accent); }

.access-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0.05em;
}

.access-tag--muted { background-color: var(--input-bg); color: var(--text-muted); }
.access-tag--accent { background-color: rgba(36, 154, 243, 0.1); color: var(--accent); }

.access-list { display: flex; flex-direction: column; gap: 14px; }

.access-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
}

.access-item i { font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.access-item--yes i { color: var(--success); }
.access-item--no i { color: var(--accent); }
.access-item--locked i { color: var(--warning); }
.access-item strong { font-weight: 700; color: var(--primary); }

/* ---- Anatomia oferty ---- */
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.anatomy-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.anatomy-item:hover { border-color: #cbd5e1; transform: translateY(-3px); }

.anatomy-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.anatomy-item:nth-child(3) .anatomy-num { background-color: var(--accent); }

.anatomy-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.anatomy-body h3 i { color: var(--text-muted); font-size: 12px; }
.anatomy-body p { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* ---- Skala AutoGrade ---- */
.autograde-wrap {
  max-width: 980px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-premium);
}

.autograde-bar {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
}

.autograde-seg {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.autograde-seg span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin-top: 2px;
}

.autograde-seg.s1 { background-color: #249AF3; }
.autograde-seg.s2 { background-color: #f59e0b; }
.autograde-seg.s3 { background-color: #eab308; }
.autograde-seg.s4 { background-color: #84cc16; }
.autograde-seg.s5 { background-color: #10b981; }

.autograde-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 28px;
}

.autograde-rows { display: flex; flex-direction: column; gap: 12px; }

.autograde-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background-color: var(--input-bg);
  border-radius: var(--radius-md);
}

.autograde-score {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  padding: 6px 0;
  border-radius: var(--radius-sm);
}

.autograde-row.r-high .autograde-score { background-color: var(--success); }
.autograde-row.r-mid .autograde-score { background-color: #84cc16; }
.autograde-row.r-low .autograde-score { background-color: var(--warning); }
.autograde-row.r-poor .autograde-score { background-color: var(--accent); }

.autograde-desc strong { display: block; font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.autograde-desc span { font-size: 12px; color: var(--text-muted); }

/* ---- Filary zasad ---- */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.legal-pillar-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pillar-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-icon-wrapper i { font-size: 20px; color: var(--primary); }
.legal-pillar-card:nth-child(2) .pillar-icon-wrapper i { color: var(--accent); }
.legal-pillar-card:nth-child(3) .pillar-icon-wrapper i { color: var(--success); }
.legal-pillar-card:nth-child(4) .pillar-icon-wrapper i { color: var(--info); }

.legal-pillar-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-pillar-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pillar-footer-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--bg-base);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
  display: inline-block;
}

/* ---- Pasek informacyjny (disclaimer) ---- */
.notice-banner {
  background-color: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.notice-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(36, 154, 243, 0.12) 0%, rgba(30, 41, 59, 0) 70%);
  pointer-events: none;
}

.notice-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.notice-text { position: relative; z-index: 1; }
.notice-text h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.notice-text p { font-size: 13px; color: #cbd5e1; line-height: 1.6; }

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

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

.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-color: var(--primary);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(36, 154, 243, 0.12) 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 p { font-size: 14px; color: #cbd5e1; max-width: 560px; 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; }
  .access-grid { grid-template-columns: 1fr; }
  .anatomy-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
}

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

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

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

  .anatomy-item { padding: 18px; }
  .anatomy-num { width: 30px; height: 30px; font-size: 12px; }

  .autograde-wrap { padding: 22px; }
  .autograde-seg { font-size: 11px; padding: 10px 4px; }
  .autograde-seg span { font-size: 7px; }
  .autograde-row { grid-template-columns: 54px 1fr; gap: 12px; padding: 12px; }
  .autograde-score { font-size: 14px; }

  .legal-pillar-card { padding: 22px; }
  .pillar-icon-wrapper { width: 40px; height: 40px; margin-bottom: 14px; }
  .pillar-icon-wrapper i { font-size: 17px; }
  .legal-pillar-card h3 { font-size: 15px; }
  .legal-pillar-card p { font-size: 12px; }

  .notice-banner { flex-direction: column; padding: 24px; gap: 14px; }
  .notice-text h3 { font-size: 15px; }
  .notice-text p { font-size: 12px; }

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