/* PEZO – kombinacija 4: teget i žuta */
:root {
  --navy: #1F2A44;
  --accent: #F2B705;
  --ink: #111111;
  --ground: #F4F5F8;
  --surface: #FFFFFF;
  --line: #DDDDDD;
  --line-soft: #EBEBEB;
  --input-line: #BBBBBB;
  --muted: #5C5C5C;
  --text-2: #333333;
  --on-dark: #F4F5F8;
  --on-dark-muted: #C8C8C8;
  --viber: #665CAC;
  --whatsapp: #1F7A4D;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#upit { scroll-margin-top: 16px; }
body { margin: 0; font-family: Barlow, system-ui, sans-serif; font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--ground); }
a { color: var(--ink); }
a:hover { color: var(--muted); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Dugmad */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 6px; font-weight: 700; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #DCA600; color: var(--ink); }
.btn-viber { background: var(--viber); color: #FFFFFF; }
.btn-whatsapp { background: var(--whatsapp); color: #FFFFFF; }
.btn-viber:hover, .btn-whatsapp:hover { color: #FFFFFF; filter: brightness(1.08); }
.btn-block { width: 100%; font-size: 18px; min-height: 52px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Zaglavlje */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 36px; letter-spacing: 1px; line-height: 1; }
.logo-sub { font-size: 14px; color: var(--muted); font-weight: 500; }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-weight: 600; font-size: 16px; }
.main-nav a { text-decoration: none; padding: 8px 0; }

/* Hero */
.hero { background: var(--navy); color: var(--on-dark); }
.hero-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(42px, 6vw, 64px); line-height: 1.02; }
.lead { margin: 0; font-size: 20px; color: var(--on-dark-muted); max-width: 560px; }

/* Forma */
.inquiry { flex: 1 1 360px; min-width: 0; max-width: 440px; background: var(--surface); color: var(--ink); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.inquiry h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; }
.inquiry label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.inquiry input { font: inherit; font-weight: 400; padding: 10px; border: 1px solid var(--input-line); border-radius: 6px; min-height: 44px; width: 100%; background: #FFFFFF; color: var(--ink); }
.inquiry-dark { background: var(--navy); color: var(--on-dark); max-width: none; }
.inquiry-dark h2 { font-size: 30px; }
.inquiry-dark input { border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Prednosti */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.trust-grid div { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; }
.trust-grid .ti { grid-row: 1 / span 2; box-sizing: content-box; width: 28px; height: 28px; padding: 12px; border-radius: 50%; background: var(--accent); color: var(--navy); }
.trust-grid strong { align-self: end; }
.trust-grid span { align-self: start; }
.trust-grid span { font-size: 15px; color: var(--muted); }

/* Sekcije */
.section { padding-top: 36px; padding-bottom: 12px; }
#delovi { padding-bottom: 44px; }
.section-title { margin: 0 0 16px; font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.05; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.model-card { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; text-decoration: none; }
.model-card { position: relative; }
.model-card .pop { width: 266px; }
.model-card:hover .pop, .model-card:focus .pop { display: block; }
.model-card:nth-child(5n) .pop, .model-card:nth-child(5n-1) .pop { left: auto; right: 0; }
@media (max-width: 720px) { .model-card .pop { display: none !important; } }
.model-card:hover { border-color: var(--navy); color: var(--ink); }
.model-card > span:first-child { display: flex; flex-direction: column; }
.model-name { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; }
.model-years { font-size: 14px; color: var(--muted); margin-top: 4px; }
.compat-note { margin: 24px 0 0; max-width: 760px; color: var(--text-2); }
.arrow { font-size: 22px; font-weight: 700; }
.split { display: flex; flex-direction: column; gap: 32px; }
.split .chips { flex: none; }
.chips { list-style: none; margin: 0; padding: 0; flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; font-weight: 600; }
.engine-list { flex: none; width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.engine-row { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-left: 1px solid var(--line-soft); }
.engine-row:first-child { border-left: 0; }
.engine-row span { color: var(--text-2); font-size: 15px; }
@media (max-width: 1000px) { .engine-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .engine-row:nth-child(4) { border-left: 0; } .engine-row:nth-child(n+4) { border-top: 1px solid var(--line-soft); } }
@media (max-width: 560px) { .engine-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .engine-row:nth-child(n) { border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); } .engine-row:nth-child(odd) { border-left: 0; } .engine-row:nth-child(-n+2) { border-top: 0; } }

/* Slika dela na hover / klik */
.chips li[tabindex] { position: relative; cursor: pointer; }
.chips li:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.pop { display: none; position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; width: 380px; max-width: calc(100vw - 32px); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); pointer-events: none; }
.pop img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--line-soft); }
.chips li:hover .pop, .chips li:focus .pop { display: block; }
.model-fig { margin: 0; max-width: 680px; }
.model-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.model-fig figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.model-fig figcaption a { color: var(--muted); }

/* Stranica modela */
.model-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 24px; padding-bottom: 64px; }
.model-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.model-main h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; }
.model-main p { margin: 0; color: var(--text-2); max-width: 680px; }
.lead-dark { font-size: 19px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.sub-title { margin: 12px 0 0; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; }
.table-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 420px; }
th { background: var(--navy); color: var(--on-dark); text-align: left; font-weight: 600; padding: 12px 16px; }
td { padding: 12px 16px; border-top: 1px solid var(--line); }
.model-aside { flex: 1 1 320px; min-width: 0; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.other-models { font-size: 15px; color: var(--muted); margin: 0; }
.other-models strong { color: var(--ink); }
.narrow { max-width: 720px; padding-bottom: 80px; }
.narrow h1 { font-family: var(--display); font-size: 48px; line-height: 1.05; margin: 0 0 16px; }

/* Podnožje */
.site-footer { background: var(--navy); color: var(--on-dark-muted); font-size: 15px; }
.site-footer a { color: var(--on-dark); }
.site-footer .logo-word { color: #FFFFFF; font-size: 30px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: baseline; padding-top: 40px; padding-bottom: 20px; }
.footer-legal { font-size: 13px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,0.12); }

/* Traka za telefon */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 72px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .btn-phone { display: none; }
  .logo-sub { display: none; }
  .hero-row { padding-top: 32px; padding-bottom: 32px; gap: 24px; }
  .inquiry { padding: 20px 16px; }
  .section-title { font-size: 34px; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .model-card { padding: 12px 14px; }
  .model-name { font-size: 24px; }
  .arrow { display: none; }
  table { min-width: 0; font-size: 15px; }
  th, td { padding: 10px 10px; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }

  /* Stranica modela: upit odmah posle uvoda */
  .model-layout { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 20px; padding-bottom: 32px; }
  .model-main { display: contents; }
  .model-main > * { order: 5; }
  .model-main > .breadcrumb { order: 0; }
  .model-main > h1 { order: 1; }
  .model-main > .lead-dark { order: 2; }
  .pop { position: fixed; left: 16px; right: 16px; top: auto; bottom: 88px; width: auto; max-width: none; }
  .model-aside { order: 3; flex: none; max-width: none; width: 100%; }
  .model-aside .other-models { order: 9; }
  .model-main > .sub-title { margin-top: 0; }
}

/* Napomena o slanju */
.ship-note { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); padding-left: 12px; border-left: 4px solid var(--accent); }

/* Viber/WhatsApp ispod naslova se skriva na telefonu (već postoje u donjoj traci) */
@media (max-width: 900px) {
  .hero .btn-row { display: none !important; }
}

/* Glasovna poruka */
.inquiry textarea { font: inherit; font-weight: 400; padding: 10px; border: 1px solid var(--input-line); border-radius: 6px; width: 100%; background: #FFFFFF; color: var(--ink); resize: vertical; min-height: 76px; }
.inquiry-dark textarea { border-color: transparent; }
.btn-voice { gap: 10px; width: 100%; background: transparent; color: var(--ink); border: 2px solid var(--navy); }
.btn-voice[hidden], .voice-status[hidden] { display: none; }
.btn-voice:hover { background: var(--navy); color: #FFFFFF; }
.inquiry-dark .btn-voice { color: var(--on-dark); border-color: var(--accent); }
.inquiry-dark .btn-voice:hover { background: var(--accent); color: var(--ink); }
.btn-voice.on { background: #C0392B; border-color: #C0392B; color: #FFFFFF; animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 6px rgba(192, 57, 43, 0.25); } }
.voice-status { margin: 0; font-size: 14px; color: var(--muted); }
.inquiry-dark .voice-status { color: var(--on-dark-muted); }
@media (prefers-reduced-motion: reduce) { .btn-voice.on { animation: none; } }
.btn-voice.done { background: var(--whatsapp); border-color: var(--whatsapp); color: #FFFFFF; }
.inquiry-dark .btn-voice.done:hover, .btn-voice.done:hover { background: var(--whatsapp); color: #FFFFFF; filter: brightness(1.08); }
.inquiry .hint { font-weight: 400; font-size: 13px; line-height: 1.3; color: var(--muted); }
.inquiry-dark .hint { color: var(--on-dark-muted); }
.btn-voice .ic-stop { display: none; }
.btn-voice.on .ic-stop { display: block; }
.btn-voice.on .ic-mic { display: none; }
.btn-voice.done .ic-mic { display: block; }
@media (hover: none) { .btn-voice:hover { background: transparent; color: var(--ink); } .inquiry-dark .btn-voice:hover { background: transparent; color: var(--on-dark); } .btn-voice.on:hover { background: #C0392B; color: #FFFFFF; } .btn-voice.done:hover { background: var(--whatsapp); color: #FFFFFF; } }

/* Galerija karoserija na stranicama modela */
.model-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; max-width: 900px; }
.model-gallery .model-fig { position: relative; max-width: none; }
.model-gallery .model-photo { aspect-ratio: 4 / 3; }
.fig-tag { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.model-gallery .model-fig figcaption { font-size: 11px; line-height: 1.35; }

/* Garancija */
#garancija { scroll-margin-top: 16px; }
.trust-grid span a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.warranty { background: var(--navy); color: var(--on-dark); border-radius: 12px; padding: 32px; max-width: 860px; }
.warranty-head { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: center; }
.warranty-head .ti { box-sizing: content-box; width: 28px; height: 28px; padding: 12px; border-radius: 50%; background: var(--accent); color: var(--navy); }
.warranty h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.05; color: #fff; }
.warranty-head p { margin: 4px 0 0; color: var(--on-dark-muted); }
.warranty-lead { margin: 24px 0 10px; font-weight: 600; }
.warranty-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.warranty-list li { position: relative; padding: 12px 14px 12px 44px; background: rgba(255,255,255,.08); border-radius: 8px; }
.warranty-list li::before { content: "✓"; position: absolute; left: 14px; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--navy); font-weight: 800; font-size: 14px; line-height: 22px; text-align: center; }
.warranty-list strong { color: var(--accent); }
.warranty-cond { margin: 20px 0 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: rgba(255,255,255,.06); color: var(--on-dark); }
@media (max-width: 720px) { .warranty { padding: 22px 18px; } .warranty h2 { font-size: 28px; } }

/* Garancija – kompaktniji raspored (dve kolone na računaru) */
.warranty { max-width: none; padding: 24px 28px; }
@media (min-width: 900px) {
  .warranty { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: start; }
  .warranty-head, .warranty-lead, .warranty-list { grid-column: 1; }
  .warranty-cond { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
}
.warranty-lead { margin: 16px 0 8px; }
.warranty-list li { padding: 9px 12px 9px 42px; }
.warranty-list li::before { top: 8px; }
.warranty h2 { font-size: 32px; }
@media (max-width: 899px) { .warranty-cond { margin-top: 14px; } }
@media (max-width: 720px) { .warranty { padding: 20px 16px; } .warranty h2 { font-size: 26px; } }

.inquiry .form-opt { margin: 10px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); text-align: center; }
.inquiry .form-opt a { color: inherit; font-weight: 600; }
.inquiry-dark .form-opt { color: var(--on-dark-muted); }



.model-main .chips { flex: none; }

/* Kako radimo (umesto otpada) */
.how-lead { margin: 0 0 18px; max-width: 760px; color: var(--text-2); }
.how-steps { list-style: none; counter-reset: k; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.how-steps li { counter-increment: k; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 16px 16px 60px; }
.how-steps li::before { content: counter(k); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--navy); font-weight: 800; text-align: center; line-height: 30px; }
.how-steps strong { display: block; }
.how-steps span { font-size: 15px; color: var(--muted); }
