/* =========================================================
   Apex Automotive – redizajn (tamna tema, crveni akcent)
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --surface: #141417;
  --surface-2: #1b1b1f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f3f4;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #e60000;
  --accent-2: #ff2b2b;
  --accent-dark: #900000;
  --accent-soft: rgba(230, 0, 0, 0.12);
  --green: #25d366;
  --amber: #f5a524;
  --gradient: linear-gradient(135deg, var(--accent-2), var(--accent-dark));
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Rajdhani', 'Inter', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.ico {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.section { padding: 6rem 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Tipografija ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }

.section-header { margin-bottom: 2.5rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.section-desc { color: var(--muted); font-size: 1.05rem; max-width: 620px; }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 52px;
  padding: 0 1.6rem;
  border-radius: 100px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn .ico { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px rgba(230, 0, 0, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(230, 0, 0, 0.5); }
.btn-primary .ico:last-child { transition: transform 0.25s var(--ease); }
.btn-primary:hover .ico:last-child { transform: translateX(3px); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--border-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-wa { background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.35); color: #4ee38a; }
.btn-wa:hover { background: rgba(37, 211, 102, 0.2); }
.btn-sm { height: 42px; padding: 0 1.2rem; font-size: 0.95rem; }
.btn-count { opacity: 0.8; font-weight: 500; }

/* ---------- Navigacija ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }
.nav-logo { height: 48px; width: auto; object-fit: contain; transition: height 0.3s; }
.navbar.scrolled .nav-logo { height: 40px; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 1300;
}
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 6rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
  z-index: -2;
  transform: scale(1.04);
  animation: heroZoom 14s var(--ease) forwards;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.96) 0%, rgba(10, 10, 11, 0.85) 38%, rgba(10, 10, 11, 0.35) 75%, rgba(10, 10, 11, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    radial-gradient(ellipse 60% 60% at 15% 70%, rgba(230, 0, 0, 0.18), transparent 70%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-inner { max-width: 1280px; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 18ch;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero-title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle { color: #c9c9cf; font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 520px; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3.5rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.hero-stats div { padding-left: 1rem; border-left: 2px solid var(--accent); }
.hero-stats dt { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.count-up { font-variant-numeric: tabular-nums; display: inline-block; }
.hero-stats dd { color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid var(--border-strong);
  border-radius: 20px;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--text);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Zašto mi ---------- */
.trust { border-block: 1px solid var(--border); background: var(--bg-2); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item > .ico {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.trust-item h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.trust-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------- Filteri ---------- */
.filters {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.filters-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

.filters select,
.filter-search {
  height: 46px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.filters select {
  flex: 1 1 140px;
  min-width: 0;
  text-overflow: ellipsis;
  padding: 0 2.2rem 0 0.9rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
}
.filters select option { background: var(--surface); color: var(--text); }
.filters select:hover, .filter-search:hover { border-color: var(--border-strong); }
.filters select:focus-visible, .filter-search:focus-within { outline: none; border-color: var(--accent); background-color: rgba(230, 0, 0, 0.05); }

.filter-search { flex: 2 1 240px; min-width: 0; display: flex; align-items: center; gap: 0.55rem; padding: 0 0.9rem; }
.filter-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.filter-search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; }
.filter-search input::placeholder { color: var(--faint); }

.status-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.status-chips button {
  height: 38px;
  padding: 0 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.status-chips button:hover { color: var(--text); border-color: var(--border-strong); }
.status-chips button.active { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }

.sold-toggle { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.9rem; cursor: pointer; user-select: none; }
.sold-toggle input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

.filters-count { margin-left: auto; color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.filters-reset { background: none; border: 0; color: var(--accent-2); font-size: 0.9rem; font-weight: 600; cursor: pointer; padding: 0.3rem 0; }
.filters-reset:hover { text-decoration: underline; }

/* ---------- Katalog ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.75rem;
}

.car-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  animation: cardIn 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.car-card:hover, .car-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(230, 0, 0, 0.45);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(230, 0, 0, 0.15);
  outline: none;
}

.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.card-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.car-card:hover .card-image { transform: scale(1.06); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.status-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-badge.is-incoming { color: #ffd27a; }
.status-badge.is-reserved { color: #8fc5ff; }
.status-badge.is-sold { background: rgba(200, 0, 0, 0.9); color: #fff; }
.card-media .status-badge { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2; }

.card-photos {
  position: absolute;
  right: 0.9rem;
  bottom: 0.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.4rem; }
.car-title { font-size: 1.4rem; margin-bottom: 0.85rem; }

.car-specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.car-specs li { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.car-specs .ico { color: var(--faint); }

.car-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.car-tags .tag { white-space: nowrap; flex: none; }
.tag {
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.tag-more { color: var(--faint); }

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.car-price small { display: block; color: var(--faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.car-price strong { font-family: var(--font-display); font-size: 1.85rem; line-height: 1; color: var(--text); }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 600;
}
.card-cta .ico { transition: transform 0.25s var(--ease); }
.car-card:hover .card-cta .ico { transform: translateX(4px); }

/* Prodana vozila */
.car-card.is-sold .card-image { filter: grayscale(1) brightness(0.5); }
.car-card.is-sold .card-body { opacity: 0.6; }
.car-card.is-sold .car-price strong { color: var(--muted); }
.car-card.is-sold:hover { border-color: var(--border-strong); }
.sold-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-10deg);
  padding: 0.35rem 1.3rem;
  border: 3px solid var(--accent-2);
  border-radius: 8px;
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.catalog-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.catalog-empty .btn { margin: 1.25rem 0; }
.catalog-empty-hint a { color: var(--accent-2); }

/* "Više informacija uskoro" – vozila u dolasku bez punih podataka */
.info-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin: -0.25rem 0 1.25rem;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  background: rgba(255, 210, 122, 0.08);
  border: 1px solid rgba(255, 210, 122, 0.3);
  color: #ffd27a;
  font-size: 0.8rem;
  font-weight: 600;
}
.modal-equipment-list li.info-soon-item { grid-column: 1 / -1; padding-left: 0; color: var(--muted); font-style: italic; }
.modal-equipment-list li.info-soon-item::before { display: none; }

/* ---------- Auto po narudžbi ---------- */
.order { border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.order::before {
  content: '';
  position: absolute;
  left: -10%;
  top: 10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(230, 0, 0, 0.1), transparent 65%);
  pointer-events: none;
}
.order-grid { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
.order-intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
.order-intro .section-desc { margin-bottom: 2rem; }

.order-steps { list-style: none; counter-reset: step; display: grid; gap: 1.1rem; }
.order-steps li { counter-increment: step; position: relative; padding-left: 3.25rem; min-height: 2.4rem; }
.order-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(230, 0, 0, 0.4);
  color: var(--accent-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.order-steps strong { display: block; font-size: 1rem; }
.order-steps span { color: var(--muted); font-size: 0.9rem; }

.order-form {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.order-form fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
.order-form legend {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.field em { color: var(--accent-2); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
}
.field select option { background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background-color: rgba(230, 0, 0, 0.05); }
.field.invalid input { border-color: var(--accent-2); background-color: rgba(230, 0, 0, 0.08); }
.field.invalid > span { color: var(--accent-2); }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 38px;
  padding: 0 0.95rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  user-select: none;
}
.chips label:hover span { border-color: var(--border-strong); color: var(--text); }
.chips input:checked + span { background: var(--accent-soft); border-color: rgba(230, 0, 0, 0.55); color: #fff; }
.chips input:checked + span::before { content: '✓'; color: var(--accent-2); font-weight: 700; }
.chips input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.form-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(230, 0, 0, 0.1);
  border: 1px solid rgba(230, 0, 0, 0.4);
  color: #ffb4b4;
  font-size: 0.9rem;
}
.btn-wa-solid { width: 100%; height: 56px; background: #1fa855; color: #fff; font-size: 1.05rem; box-shadow: 0 10px 30px rgba(31, 168, 85, 0.3); }
.btn-wa-solid:hover { background: #22b85d; transform: translateY(-2px); }
.form-note { margin-top: 0.9rem; color: var(--faint); font-size: 0.8rem; line-height: 1.55; text-align: center; }
.form-note a { color: var(--muted); }

/* ---------- O nama ---------- */
.about { border-top: 1px solid var(--border); background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.about-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.about-media img:nth-child(1) { border-top-left-radius: var(--radius-lg); }
.about-media img:nth-child(2) { border-top-right-radius: var(--radius-lg); }
.about-media img:nth-child(3) { border-bottom-left-radius: var(--radius-lg); }
.about-media img:nth-child(4) { border-bottom-right-radius: var(--radius-lg); }
.about-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: 100px;
  background: rgba(10, 10, 11, 0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.about-badge .ico { color: var(--accent-2); }
.about-text > p:not(.eyebrow) { color: #c4c4cb; margin-bottom: 1rem; }
.about-text strong { color: var(--text); }
.about-points { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.about-points li {
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
}
.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(230, 0, 0, 0.4);
}
.about-points li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: calc(0.2em + 6px);
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}

.modal-disclaimer { margin-top: 1.25rem; color: var(--faint); font-size: 0.75rem; line-height: 1.5; }
.footer-disclaimer { max-width: 760px; margin: 0.75rem auto 0; font-size: 0.75rem; line-height: 1.5; color: var(--faint); opacity: 0.8; }

/* ---------- Česta pitanja (FAQ) ---------- */
.faq { border-top: 1px solid var(--border); }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
.faq-intro .section-desc { margin-bottom: 2rem; }

.faq-help {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(230, 0, 0, 0.12), rgba(230, 0, 0, 0.02));
  border: 1px solid rgba(230, 0, 0, 0.25);
}
.faq-help h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.faq-help p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.1rem; }
.faq-help-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s, background 0.25s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: rgba(230, 0, 0, 0.4); background: var(--surface-2); }

.faq-item summary {
  position: relative;
  display: block;
  padding: 1.15rem 3.5rem 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 1.35rem;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center / 10px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 2px 10px no-repeat,
    rgba(255, 255, 255, 0.06);
  transition: transform 0.3s var(--ease), background-color 0.25s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--accent);
}
.faq-item summary:focus-visible { outline-offset: -2px; border-radius: var(--radius-md); }

.faq-answer { padding: 0 1.35rem 1.25rem; color: #c4c4cb; font-size: 0.94rem; line-height: 1.7; }
.faq-answer p + p { margin-top: 0.7rem; }
.faq-answer strong { color: var(--text); font-weight: 600; }
.faq-item[open] .faq-answer { animation: faqOpen 0.35s var(--ease); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Kontakt ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.contact-info .section-desc { margin-bottom: 2rem; }

.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
  min-width: 0;
}
.contact-card:hover { border-color: rgba(230, 0, 0, 0.45); transform: translateY(-2px); background: var(--surface-2); }
.contact-card > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); }
.contact-card span { font-weight: 600; font-size: 0.95rem; min-width: 0; overflow-wrap: break-word; }
.contact-card small { display: block; color: var(--faint); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card-wide { grid-column: 1 / -1; }

.socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.socials a:hover { color: #fff; border-color: var(--accent); background: var(--accent-soft); }

.contact-map iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  filter: grayscale(0.4) contrast(1.05);
}

/* Karta prije učitavanja (bez Googlea dok posjetitelj ne klikne) */
.map-placeholder {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(230, 0, 0, 0.12), transparent 70%), var(--surface);
  overflow: hidden;
  isolation: isolate;
}
.map-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(28deg, transparent 49.4%, rgba(255, 255, 255, 0.12) 49.5%, rgba(255, 255, 255, 0.12) 50.5%, transparent 50.6%),
    linear-gradient(-62deg, transparent 49.6%, rgba(255, 255, 255, 0.07) 49.7%, rgba(255, 255, 255, 0.07) 50.3%, transparent 50.4%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.map-pin {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 10px rgba(230, 0, 0, 0.15), 0 14px 30px rgba(230, 0, 0, 0.4);
  color: #fff;
}
.map-pin .ico { width: 28px; height: 28px; }
.map-address { color: var(--muted); line-height: 1.55; }
.map-address strong { color: var(--text); font-size: 1.1rem; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.map-note { max-width: 360px; color: var(--faint); font-size: 0.78rem; line-height: 1.5; }
.map-note a { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--border); }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { height: 64px; width: auto; }
.footer-brand p { color: var(--muted); margin-top: 0.5rem; font-size: 0.9rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-legal { margin-bottom: 0.4rem; color: var(--muted); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.85rem; text-align: center; }

/* ---------- Pravne stranice (privatnost) ---------- */
.legal-back { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.legal-back:hover { color: var(--text); }
.legal { max-width: 820px; padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 4rem; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.6rem; margin: 2.75rem 0 0.9rem; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.legal h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; color: var(--text); }
.legal p, .legal li { color: #c4c4cb; font-size: 0.98rem; line-height: 1.75; }
.legal p + p { margin-top: 0.8rem; }
.legal ul { margin: 0.6rem 0 0.8rem 1.25rem; display: grid; gap: 0.35rem; }
.legal a { color: var(--accent-2); }
.legal strong { color: var(--text); }
.legal-updated { color: var(--faint) !important; font-size: 0.85rem !important; margin-bottom: 2rem; }
.legal-toc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.legal-toc a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.legal-toc a:hover { color: var(--text); }
.legal-card {
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.legal-highlight { border-color: rgba(37, 211, 102, 0.35); background: rgba(37, 211, 102, 0.06); }
.legal-back-bottom { margin-top: 3rem; }
.legal-back-bottom .btn { color: var(--text); }
.legal-page .footer { padding-top: 0; }
@media (max-width: 600px) { .legal-toc { grid-template-columns: 1fr; } }

/* ---------- Plutajući gumbi (mobitel) ---------- */
.fab-bar { display: none; }

/* ---------- Modal (detalji vozila) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.modal-overlay.active .modal-content { transform: none; }

.btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.2s, transform 0.3s var(--ease);
}
.btn-close:hover { background: var(--accent); transform: rotate(90deg); }

.modal-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; }

.modal-gallery { position: sticky; top: 0; min-width: 0; padding: 1.25rem; }
.modal-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}
.modal-stage::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: var(--stage-bg) center / cover no-repeat;
  filter: blur(28px) brightness(0.55);
  transform: scale(1.1);
}
#modalImage { position: relative; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; }

.stage-btn {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s, background 0.2s;
}
.stage-prev { left: 0.75rem; }
.stage-next { right: 0.75rem; }
.modal-stage:hover .stage-btn, .stage-btn:focus-visible { opacity: 1; }
.stage-btn:hover { background: var(--accent); }
.stage-counter {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
}
.single-image .stage-btn, .single-image .stage-counter { display: none; }

.modal-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
.modal-thumbnails .thumbnail {
  width: 84px;
  height: 60px;
  flex: none;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s;
}
.modal-thumbnails .thumbnail:hover { opacity: 0.85; }
.modal-thumbnails .thumbnail.active { opacity: 1; border-color: var(--accent); }

.modal-details { padding: 2.5rem 2.25rem 2.25rem 1rem; min-width: 0; }
#modalStatus:not(:empty) { margin-bottom: 0.75rem; }
#modalTitle { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.5rem; padding-right: 3rem; }
.modal-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--accent-2); line-height: 1.1; margin-bottom: 1.5rem; }
.modal-price.is-sold { color: var(--muted); }

.modal-specs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.5rem; }
.modal-spec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.modal-spec-item > .ico { width: 20px; height: 20px; color: var(--accent-2); }
.modal-spec-item small { display: block; color: var(--faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.modal-spec-item strong { font-weight: 600; font-size: 0.95rem; }

.modal-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 2rem; }
.modal-sold-note {
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(230, 0, 0, 0.3);
  color: #f3c4c4;
  font-size: 0.92rem;
}

.modal-block { padding-top: 1.5rem; margin-bottom: 1.5rem; border-top: 1px solid var(--border); }
.modal-block h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.modal-description { color: #c4c4cb; font-size: 0.93rem; line-height: 1.7; }
.modal-description p + p { margin-top: 0.9rem; }

.modal-equipment-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.25rem;
  color: #c4c4cb;
  font-size: 0.88rem;
}
.modal-equipment-list li { position: relative; padding-left: 1.2rem; line-height: 1.45; }
.modal-equipment-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}

.discreet-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}
.discreet-link:hover { color: var(--text); }
.discreet-link[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox { background: #000; overflow: hidden; }
.lightbox::before {
  content: '';
  position: absolute;
  inset: -60px;
  background: var(--lb-bg) center / cover no-repeat;
  filter: blur(40px) brightness(0.35);
}
.lightbox-img { position: relative; max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; user-select: none; }
.lightbox-btn, .lightbox-close, .lightbox-counter { z-index: 2; }
.lightbox-btn, .lightbox-close {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-btn { top: 50%; width: 56px; height: 56px; margin-top: -28px; font-size: 2rem; }
.lightbox-btn:hover, .lightbox-close:hover { background: var(--accent); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-close { top: 1.25rem; right: 1.25rem; width: 46px; height: 46px; font-size: 1.6rem; }
.lightbox-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

/* ---------- Animacije pojavljivanja ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero .reveal:nth-child(5) { transition-delay: 0.32s; }
.trust-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.trust-item.reveal:nth-child(3) { transition-delay: 0.16s; }
.trust-item.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 1.75rem 1.5rem; border-bottom: 1px solid var(--border); }
  .trust-item:nth-child(2n) { border-right: 0; }
  .trust-item:nth-child(n + 3) { border-bottom: 0; }
  .trust-item:nth-child(odd) { padding-left: 0; }
  .contact-grid { gap: 2.5rem; }
}

@media (max-width: 900px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-gallery { position: static; padding: 0; }
  .modal-stage { border-radius: 0; }
  .modal-thumbnails { padding: 0 1rem; }
  .modal-details { padding: 1.5rem 1.25rem 2rem; }
  .stage-btn { opacity: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map iframe { height: 320px; }
  .map-placeholder { min-height: 360px; }
  .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
  .order-grid { grid-template-columns: 1fr; gap: 2rem; }
  .order-intro { position: static; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .faq-intro { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container, .nav-container { padding: 0 1rem; }
  .section { padding: 4rem 0; }
  .nav-logo { height: 40px; }
  .navbar.scrolled .nav-logo { height: 36px; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 300px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 5rem 0 2rem;
    background: rgba(14, 14, 16, 0.98);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 1250;
  }
  .nav-links.open { transform: none; box-shadow: -30px 0 60px rgba(0, 0, 0, 0.6); }
  .nav-links a { padding: 1rem 2rem; font-size: 1.15rem; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { margin: 1.5rem 2rem 0; justify-content: center; border-bottom: 0; }

  .hero { align-items: flex-end; padding-bottom: 5rem; }
  .hero-bg { object-position: 70% 50%; }
  .hero-shade {
    background:
      linear-gradient(0deg, var(--bg) 2%, rgba(10, 10, 11, 0.88) 45%, rgba(10, 10, 11, 0.35) 100%),
      radial-gradient(ellipse 80% 50% at 20% 80%, rgba(230, 0, 0, 0.18), transparent 70%);
  }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stats { gap: 1rem 1.75rem; }
  .hero-stats dt { font-size: 1.7rem; }
  .scroll-hint { display: none; }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(odd) { padding: 1.25rem 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: 0; }

  .filters select { flex: 1 1 calc(50% - 0.3rem); }
  .filter-search { flex-basis: 100%; }
  .filters-count { margin-left: 0; width: 100%; }

  .catalog-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .car-title { font-size: 1.3rem; }

  .contact-cards { grid-template-columns: 1fr; }
  .order-form { padding: 1.25rem; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-logo { margin: 0 auto; height: 56px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; }
  .footer { padding-bottom: 6rem; }

  .modal-overlay { padding: 0; align-items: stretch; }
  .modal-content { max-height: none; height: 100%; border-radius: 0; border: 0; }
  .btn-close { top: 0.75rem; right: 0.75rem; }
  .modal-specs-list { gap: 0.5rem; }
  .modal-equipment-list { grid-template-columns: 1fr; }
  .lightbox-btn { display: none; }
  /* na mobitelu slika preko cijelog ekrana, bez rubova */
  .lightbox-img { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
  .lightbox-counter { bottom: calc(1rem + env(safe-area-inset-bottom)); padding: 0.2rem 0.7rem; border-radius: 100px; background: rgba(0, 0, 0, 0.55); }
  /* galerija u detaljima: nešto viša pozornica na mobitelu */
  .modal-stage { aspect-ratio: 1 / 1; }

  .fab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 900;
    transform: translateY(150%);
    transition: transform 0.4s var(--ease);
  }
  .show-fab .fab-bar { transform: none; }
  .show-fab.hide-fab .fab-bar { transform: translateY(150%); }
  .fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 52px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  }
  .fab .ico { width: 1.2em; height: 1.2em; }
  .fab-call { background: var(--gradient); }
  .fab-wa { background: #1fa855; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 2.15rem; }
  .modal-cta { grid-template-columns: 1fr; }
}
