/* ============================================================
   BezpieczniezUSA — Main Stylesheet
   Light theme, mobile-first, automotive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── RESET & VARIABLES ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:        #ffffff;
  --bg-light:     #f8fafc;
  --bg-section:   #f1f5f9;
  --bg-card:      #ffffff;
  --border:       #e2e8f0;
  --border-dark:  #cbd5e1;
  --blue:         #2563eb;
  --blue-dark:    #1d4ed8;
  --blue-light:   #eff6ff;
  --blue-mid:     #dbeafe;
  --amber:        #f59e0b;
  --amber-dark:   #d97706;
  --amber-light:  #fffbeb;
  --green:        #10b981;
  --green-light:  #ecfdf5;
  --red:          #ef4444;
  --red-light:    #fef2f2;
  --text-dark:    #0f172a;
  --text-body:    #334155;
  --text-muted:   #64748b;
  --text-faint:   #94a3b8;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-blue:  0 4px 24px rgba(37,99,235,0.20);
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;
  --nav-h:        68px;
  --container:    1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
}

/* ── CONTAINER ───────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.container--wide   { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.05;
  letter-spacing: -0.3px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 8px;
  display: block;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 560px;
}
.section-sub--center { margin: 12px auto 0; text-align: center; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); color: #fff; }

.btn--amber  { background: var(--amber); color: #fff; }
.btn--amber:hover  { background: var(--amber-dark); transform: translateY(-1px); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--outline:hover { background: var(--blue-light); }

.btn--ghost {
  background: transparent;
  color: var(--text-body);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--white { background: #fff; color: var(--blue); font-weight: 700; }
.btn--white:hover { background: var(--blue-light); }

.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { padding: 10px; border-radius: var(--radius-sm); }

/* ── NAVBAR ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.current-menu-item { color: var(--blue); background: var(--blue-light); }
.nav-link.current-page-item { color: var(--blue); font-weight: 600; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-badge {
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.is-open { display: block; }
.mobile-menu .nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: var(--radius);
  margin-bottom: 4px;
}
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── PAGE WRAPPER ────────────────────────────────────────── */
.page-content { padding-top: var(--nav-h); }
.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 96px 0; }
.section--gray { background: var(--bg-light); }
.section--dark { background: var(--text-dark); }
.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }
.section-header--center .section-sub { margin: 12px auto 0; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e293b 100%);
  padding: calc(var(--nav-h) + 60px) 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0L80 12v2L54 40h-2zm4 0L80 16v2L58 40h-2zm4 0L80 20v2L62 40h-2zm4 0L80 24v2L66 40h-2zm4 0L80 28v2L70 40h-2zm4 0L80 32v2L74 40h-2zm4 0L80 36v2L78 40h-2zm4 0L80 40v-2h-2l2-2z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero .display-title { color: #fff; }
.hero .display-title .accent { color: #60a5fa; }
.hero .display-title .accent-amber { color: var(--amber); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.75); margin-top: 16px; max-width: 580px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ── SEARCH BOX ──────────────────────────────────────────── */
.search-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  margin-top: 48px;
  border: 1px solid var(--border);
}
.search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: var(--bg-light);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: fit-content;
}
.search-tab {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-muted);
  transition: all 0.15s;
}
.search-tab.active, .search-tab:hover { background: var(--blue); color: #fff; }
.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.search-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.search-field input,
.search-field select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.15s;
}
.search-field input:focus,
.search-field select:focus { border-color: var(--blue); }

/* ── TRUST BAR ───────────────────────────────────────────── */
.trust-bar {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-icon { color: var(--blue); line-height: 0; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
}
.card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-img { position: relative; height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 16px; }
.card-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── CAR CARDS ───────────────────────────────────────────── */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.car-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px;
}
.car-badge--copart { color: var(--blue); border: 1px solid var(--blue); }
.car-badge--iaai   { color: var(--amber-dark); border: 1px solid var(--amber); }
.car-lot {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.9);
  font-size: 10px; color: var(--text-muted);
  padding: 3px 8px; border-radius: var(--radius-sm);
}
.car-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-dark); }
.car-trim  { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.chip--damage { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.chip--key    { background: var(--green-light); border-color: #a7f3d0; color: #047857; }
.chip--fuel   { background: var(--blue-light); border-color: var(--blue-mid); color: var(--blue-dark); }
.car-location { font-size: 12px; color: var(--text-faint); margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.car-price-label { font-size: 11px; color: var(--text-faint); margin-bottom: 2px; }
.car-price { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--amber-dark); }
.car-price-pln { font-size: 12px; color: var(--text-muted); }
.car-date { font-size: 11px; color: var(--text-muted); }
.car-actions { display: flex; gap: 6px; margin-top: 6px; }

/* ── FILTERS ─────────────────────────────────────────────── */
.filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.filter-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.filter-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-body);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--blue); }

/* ── HOW IT WORKS ────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: '';
  position: absolute; top: 36px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-mid) 0%, var(--border) 100%);
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 3px solid var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--blue);
  font-size: 28px;
  transition: all 0.25s;
}
.step:hover .step-icon { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: var(--shadow-blue); }
.step-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── PAYMENT FLOW ────────────────────────────────────────── */
.payment-flow { display: flex; gap: 0; position: relative; }
.payment-step {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-right: none;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: all 0.2s;
}
.payment-step:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.payment-step:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-right: 1px solid var(--border); }
.payment-step.active { background: var(--blue); border-color: var(--blue); }
.payment-step.active .step-n  { background: rgba(255,255,255,0.2); color: #fff; }
.payment-step.active h4, .payment-step.active p { color: rgba(255,255,255,0.9); }
.payment-step.active h4 { color: #fff; }
.step-n {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.payment-step h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.payment-step p  { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── CALCULATOR ──────────────────────────────────────────── */
.calc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.calc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.calc-card-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.calc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.calc-row:last-child { border-bottom: none; }
.calc-row-label { font-size: 14px; color: var(--text-body); }
.calc-row-value { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.calc-total {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius);
  padding: 16px 20px; margin-top: 12px;
}
.calc-total-label { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.9); }
.calc-total-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: #fff; }
.calc-note { font-size: 11px; color: var(--text-faint); margin-top: 10px; line-height: 1.5; }

/* ── PRICING ─────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.pricing-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  transition: all 0.25s;
}
.pricing-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.pricing-card--featured { border-color: var(--amber); }
.pricing-card--featured:hover { border-color: var(--amber-dark); }
.pricing-badge-top {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 16px; border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.pricing-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
}
.pricing-icon--blue   { background: var(--blue-light); color: var(--blue); }
.pricing-icon--amber  { background: var(--amber-light); color: var(--amber-dark); }
.pricing-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.pricing-price { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--text-dark); margin: 10px 0; line-height: 1; }
.pricing-price .cur { font-size: 18px; color: var(--text-muted); font-weight: 500; }
.pricing-price .per { font-size: 13px; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }
.pricing-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-body); }
.pricing-feature .ico-check { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.pricing-feature .ico-cross { color: var(--text-faint); flex-shrink: 0; margin-top: 2px; }
.pricing-breakdown {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px; margin-bottom: 16px;
}
.breakdown-row {
  display: flex; justify-content: space-between;
  padding: 5px 0; border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row .label { color: var(--text-muted); }
.breakdown-row .value { font-weight: 600; color: var(--text-dark); }

/* Alert boxes */
.alert {
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.alert--blue  { background: var(--blue-light); border: 1px solid var(--blue-mid); color: var(--blue-dark); }
.alert--green { background: var(--green-light); border: 1px solid #a7f3d0; color: #065f46; }
.alert--red   { background: var(--red-light); border: 1px solid #fecaca; color: #991b1b; }
.alert--amber { background: var(--amber-light); border: 1px solid #fde68a; color: #92400e; }
.alert-icon { flex-shrink: 0; font-size: 16px; line-height: 1.4; }
.alert strong { font-weight: 700; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
  overflow-y: auto;
}
.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 540px;
  width: 100%;
  position: relative;
  animation: scaleIn 0.15s ease;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
  max-height: 92vh;
  overflow-y: auto;
  margin: auto;
}
.modal--wide { max-width: 700px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px;
  cursor: pointer; color: var(--text-muted); line-height: 0;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--red-light); color: var(--red); border-color: #fecaca; }
.modal-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.modal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; }
.form-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.form-input--textarea { resize: vertical; min-height: 80px; }
.plan-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.plan-option { border: 2px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; transition: all 0.15s; }
.plan-option:hover { border-color: var(--blue); }
.plan-option.selected { border-color: var(--blue); background: var(--blue-light); }
.plan-option-name  { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.plan-option-price { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--amber-dark); }
.plan-option-desc  { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.terms { font-size: 12px; color: var(--text-faint); margin-bottom: 20px; line-height: 1.6; }
.terms a { color: var(--blue); }

/* ── SUCCESS BOX ─────────────────────────────────────────── */
.success-box { text-align: center; padding: 16px 0; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.success-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.success-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.next-steps {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-top: 20px; text-align: left;
}
.next-step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; font-size: 13px; color: var(--text-body); }
.next-step:last-child { margin-bottom: 0; }
.next-step-n { font-weight: 700; color: var(--blue); min-width: 20px; }

/* ── CAR DETAIL ──────────────────────────────────────────── */
.car-detail-img { width: 100%; border-radius: var(--radius-lg); max-height: 400px; object-fit: cover; margin-bottom: 20px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.spec-item { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.spec-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-faint); margin-bottom: 4px; }
.spec-value { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.highlight { background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; border-radius: var(--radius-sm); padding: 4px 10px; font-size: 12px; font-weight: 500; }
.source-link {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  border-radius: var(--radius-sm); padding: 10px 14px;
  color: var(--blue); font-size: 13px; font-weight: 500; margin-top: 10px;
  transition: background 0.15s; cursor: pointer; text-decoration: none;
}
.source-link:hover { background: var(--blue-mid); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,0.8); }
.footer-top {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px; padding-right: 20px;
}
.footer-brand {}
.footer-logo { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: #60a5fa; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius-sm);
  text-decoration: none; transition: all 0.15s;
}
.footer-social a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.footer-social a.instagram { color: #f9a8d4; border-color: rgba(249,168,212,0.3); }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.9); margin-bottom: 16px; }
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 10px; text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-contacts { display: flex; gap: 20px; }
.footer-contact { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-contact span { color: rgba(255,255,255,0.75); }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--text-dark) 0%, #1e3a5f 100%);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: #fff; }
.page-hero p  { font-size: 16px; color: rgba(255,255,255,0.65); margin-top: 10px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 16px; justify-content: center; }
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: 0.4; }

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 16px; }
.team-name  { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-dark); }
.team-role  { font-size: 13px; color: var(--blue); margin-top: 4px; font-weight: 500; }
.team-desc  { font-size: 13px; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-box { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--blue); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  padding: 16px 20px;
  font-weight: 600; font-size: 15px; color: var(--text-dark);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-light); }
.faq-a { padding: 0 20px 16px; font-size: 14px; color: var(--text-muted); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: var(--blue); }

/* ── CONTACT PAGE ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 12px;
}
.contact-info-icon { font-size: 22px; flex-shrink: 0; }
.contact-info-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-faint); margin-bottom: 4px; }
.contact-info-value { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }

/* ── ZADATEK CALCULATOR ──────────────────────────────────── */
.zadatek-box {
  background: var(--green-light);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}
.zadatek-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; border-bottom: 1px solid rgba(0,0,0,0.05); color: var(--text-body); }
.zadatek-row:last-of-type { border-bottom: none; }
.zadatek-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; background: var(--green); border-radius: var(--radius-sm); padding: 10px 14px; }
.zadatek-total-label { font-weight: 700; color: #fff; font-size: 14px; }
.zadatek-total-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeIn   { from { opacity: 0; }               to { opacity: 1; } }
@keyframes scaleIn  { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: slideUp 0.5s ease both; }

/* ── UTILITIES ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-blue   { color: var(--blue); }
.text-amber  { color: var(--amber-dark); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-muted); }
.fw-700 { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.gap-8 { gap: 8px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hidden { display: none; }

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

/* ── Large tablets ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top    { grid-template-columns: 1fr 1fr; }
  .calc-grid     { grid-template-columns: 1fr; }
  .steps         { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .search-grid   { grid-template-columns: 1fr 1fr; }
  .search-grid .btn { grid-column: 1/-1; }
}

/* ── Tablets ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .nav-actions .btn:first-child { display: none; }
  .nav-hamburger { display: flex; }

  .pricing-grid  { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: 1fr; }
  .stat-row      { grid-template-columns: 1fr 1fr; }
  .spec-grid     { grid-template-columns: 1fr 1fr; }
  .hero-stats    { gap: 20px; }
  .car-grid      { grid-template-columns: 1fr; }
  .payment-flow  { flex-direction: column; }
  .payment-step  { border-radius: var(--radius) !important; border-right: 1px solid var(--border) !important; border-bottom: none; }
  .payment-step:last-child { border-bottom: 1px solid var(--border) !important; }
  .form-row      { grid-template-columns: 1fr; }
  .plan-selector { grid-template-columns: 1fr; }
  .section       { padding: 48px 0; }
  .modal         { padding: 24px 20px; border-radius: var(--radius-lg); }
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .search-card   { padding: 20px; }
  .trust-items   { gap: 12px; }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .search-grid    { grid-template-columns: 1fr; }
  .grid-2         { grid-template-columns: 1fr; }
  .stat-row       { grid-template-columns: 1fr 1fr; }
  .car-grid       { grid-template-columns: 1fr; }
  .spec-grid      { grid-template-columns: 1fr 1fr; }
  .steps          { grid-template-columns: 1fr 1fr; }
  .footer-top     { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom  { flex-direction: column; align-items: flex-start; }
  .footer-contacts { flex-direction: column; gap: 8px; }
  .trust-items    { justify-content: flex-start; }
  .pricing-badge-top { font-size: 10px; padding: 3px 12px; }
  .display-title  { letter-spacing: -0.5px; }
  .hero-stats     { gap: 16px; }
  .hero-stat-num  { font-size: 26px; }
  .modal          { padding: 20px 16px; }
  .container      { padding: 0 16px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .modal-overlay { display: none; }
}
