/* ==========================================================================
   AVTO FIBRO — design sistem
   Topel, minimalističen, zaupanja vreden. Družinsko podjetje, hitra stran.
   ========================================================================== */

:root {
  /* barve */
  --cream:        #FAF7F1;
  --cream-deep:   #EFE5D3;
  --white:        #FFFFFF;
  --ink:          #221D17;
  --ink-soft:     #4A4239;
  --gray-500:     #736A5D;
  --gray-300:     #C9C0B3;
  --line:         #E7DFD1;
  --line-soft:    #EFE9DD;

  --rust:         #1D4E89;
  --rust-dark:    #123157;
  --rust-light:   #BFD3E8;
  --rust-tint:    #EAF1F8;

  --ok:           #4B7A51;

  /* tipografija */
  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* geometrija */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --container: 1180px;
  --shadow-sm: 0 1px 2px rgba(34,29,23,0.05), 0 1px 1px rgba(34,29,23,0.04);
  --shadow-md: 0 14px 34px -14px rgba(34,29,23,0.18);
  --shadow-lg: 0 28px 70px -22px rgba(34,29,23,0.24);

  /* gibanje */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(34,29,23,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0 0 14px; color: var(--ink); letter-spacing: -0.02em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.06; }
p { margin: 0 0 16px; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section { padding: 108px 0; }
.section-tight { padding: 72px 0; }
.section-cream {
  background-color: var(--cream-deep);
  background-image: radial-gradient(rgba(34,29,23,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.section-white { background: var(--white); }

/* soft background glow accents — breaks up long stretches of flat cream */
.bg-glow { position: relative; overflow: hidden; }
.bg-glow::before {
  content: ''; position: absolute; top: -200px; right: -160px; width: 520px; height: 520px;
  background: radial-gradient(circle, var(--rust-tint) 0%, transparent 70%); border-radius: 50%;
  z-index: 0; pointer-events: none;
}
.bg-glow-left::before { top: auto; right: auto; bottom: -200px; left: -160px; }
.bg-glow > .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--rust); margin-bottom: 16px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 6px; height: 15px; background: var(--rust); transform: skewX(-18deg); display: inline-block; border-radius: 1px; flex-shrink: 0; }
.eyebrow::after { background: var(--rust-light); margin-right: 3px; }
.center { text-align: center; }
.center .eyebrow::before, .center .eyebrow::after { display: none; }

.section-header { max-width: 640px; margin: 0 0 56px; }
.section-header.center { margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.section-header p { font-size: 1.08rem; margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 10px; font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  border: 1.5px solid transparent; transition: all .35s var(--ease-premium); white-space: nowrap;
  position: relative;
}
.btn svg { transition: transform .25s var(--ease-premium); flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-dark); box-shadow: 0 16px 32px -12px rgba(29,78,137,0.45); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--rust); color: var(--rust-dark); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 0.72rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--rust); font-size: 0.92rem; }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,241,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.logo img { height: 40px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > .nav-drop-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.93rem;
  color: var(--ink-soft); background: none; border: none; transition: all .25s var(--ease-premium);
}
.nav-menu > li > a:hover, .nav-menu > li > a.active,
.nav-menu > li > .nav-drop-btn:hover { background: var(--rust-tint); color: var(--rust-dark); }
.nav-drop-btn svg { transition: transform .2s ease; }
.has-dropdown:hover .nav-drop-btn svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .3s var(--ease-premium);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.dropdown a span { display: block; font-weight: 400; font-size: 0.78rem; color: var(--gray-500); margin-top: 2px; }
.dropdown a:hover { background: var(--rust-tint); color: var(--rust-dark); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta { display: flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 0.9rem; }
.nav-cta:hover { background: var(--rust-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: none; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -160px; right: -160px; width: 520px; height: 520px;
  background: radial-gradient(circle, var(--rust-light) 0%, transparent 70%); border-radius: 50%; z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px;
  background: var(--white); border-radius: 999px; box-shadow: var(--shadow-sm); font-size: 0.82rem; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 24px;
}
.hero-badge b { background: var(--rust); color: var(--white); border-radius: 999px; padding: 4px 10px; font-size: 0.72rem; letter-spacing: 0.04em; }
.hero h1 { font-size: 3.4rem; margin-bottom: 22px; }
.hero h1 em { color: var(--rust); font-style: normal; }
.hero-lead { font-size: 1.12rem; max-width: 440px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--ink); }
.hero-stats div span { font-size: 0.82rem; color: var(--gray-500); }

.hero-visual { position: relative; }
.hero-visual-img {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative;
  aspect-ratio: 4/3.7; background: linear-gradient(155deg, var(--cream-deep), var(--rust-light));
}
.hero-visual-img img, .hero-visual-img video { width: 100%; height: 100%; object-fit: cover; }
.corner-accent {
  position: absolute; top: 0; left: 0; width: 74px; height: 74px; z-index: 2; pointer-events: none;
  background: var(--rust); clip-path: polygon(0 0, 100% 0, 0 100%);
}
.corner-accent::after {
  content: ''; position: absolute; top: 14px; left: 14px; width: 46px; height: 46px;
  background: var(--cream); opacity: 0.9; clip-path: polygon(0 0, 100% 0, 0 100%);
}
.hero-float-card {
  position: absolute; bottom: -22px; left: -22px; background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 18px 22px; display: flex; align-items: center; gap: 14px; max-width: 250px;
}
.hero-float-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--rust-tint); display: flex; align-items: center; justify-content: center; color: var(--rust-dark); flex-shrink: 0; }
.hero-float-icon svg { width: 22px; height: 22px; }
.hero-float-card strong { display: block; font-size: 0.92rem; }
.hero-float-card span { font-size: 0.8rem; color: var(--gray-500); }

/* ---------- page header (subpages) ---------- */
.page-header { padding: 56px 0 60px; background: var(--cream-deep); border-bottom: 1px solid var(--line-soft); }
.breadcrumb { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--rust); }
.page-header h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); max-width: 640px; }
.page-header p { font-size: 1.05rem; max-width: 580px; margin-bottom: 0; }
.page-header-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- video showcase ---------- */
.video-showcase {
  max-width: 860px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--ink); position: relative; aspect-ratio: 16/9;
}
.video-showcase video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ---------- brand strip ---------- */
.brand-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
}
.brand-pill {
  flex: 0 1 240px; padding: 40px 28px; display: flex; align-items: center; justify-content: center; min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: transform .4s var(--ease-premium), border-color .4s var(--ease-premium), box-shadow .4s var(--ease-premium);
  text-decoration: none; color: inherit; cursor: pointer;
}
.brand-pill:hover { border-color: var(--rust-light); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.brand-pill img { height: 130px; width: auto; max-width: 170px; display: block; object-fit: contain; }

/* ---------- bold stat panel (replaces photography in some split sections) ---------- */
.split-visual {
  border-radius: var(--radius-lg); background: var(--ink); color: var(--white); position: relative; overflow: hidden;
  aspect-ratio: 5/4.2; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 30px;
}
.split-visual .corner-accent { top: auto; left: auto; bottom: 0; right: 0; clip-path: polygon(100% 100%, 0% 100%, 100% 0%); }
.split-visual .corner-accent::after { top: auto; left: auto; bottom: 14px; right: 14px; background: var(--ink); opacity: 0.9; clip-path: polygon(100% 100%, 0% 100%, 100% 0%); }
.split-stat { position: relative; z-index: 1; }
.split-stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; color: var(--white); }
.split-stat span { display: block; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rust-light); margin-top: 10px; font-weight: 700; }

/* ---------- stats strip ---------- */
.stats-strip { background: var(--ink); border-radius: var(--radius-lg); padding: 52px 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-block strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--white); }
.stat-block span { font-size: 0.86rem; color: rgba(255,255,255,0.6); }

/* ---------- cards: services / values ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.service-card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-md);
  padding: 32px 26px; transition: all .4s var(--ease-premium); display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--rust-tint); display: flex; align-items: center; justify-content: center; color: var(--rust-dark); margin-bottom: 20px; }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin-bottom: 18px; flex-grow: 1; }

/* ---------- split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4.2; box-shadow: var(--shadow-md); background: var(--cream-deep); position: relative; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; font-size: 0.97rem; color: var(--ink-soft); }
.checklist li::before {
  content: '✓'; width: 22px; height: 22px; border-radius: 50%; background: var(--rust); color: var(--white);
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-weight: 700;
}

/* ---------- process steps ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step { position: relative; padding: 30px 24px; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-md); transition: transform .4s var(--ease-premium), box-shadow .4s var(--ease-premium), border-color .4s var(--ease-premium); }
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.process-num { font-family: var(--font-head); font-size: 2.2rem; color: var(--rust-light); display: block; margin-bottom: 10px; }
.process-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- vehicle cards ---------- */
.filters-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--white);
  border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 22px; margin-bottom: 40px;
}
.filters-bar label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin-bottom: 8px; }
.filters-bar select, .filters-bar input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); font-size: 0.92rem; color: var(--ink); }
.filters-bar select:focus, .filters-bar input:focus { outline: none; border-color: var(--rust); }

/* ---------- inventory layout (bočni filtri s kljukicami) ---------- */
.inventory-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.filter-sidebar {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-md);
  padding: 24px; position: sticky; top: 96px;
}
.filter-sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filter-sidebar-head h3 { font-size: 1.05rem; margin: 0; }
.filter-reset { font-size: 0.82rem; font-weight: 600; color: var(--rust); text-decoration: underline; background: none; border: none; cursor: pointer; padding: 0; }
.filter-group { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.filter-sidebar-head + .filter-group { border-top: none; padding-top: 14px; }
.filter-group-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin-bottom: 12px; }
.filter-check-list { display: flex; flex-direction: column; gap: 11px; }
.filter-check-list label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); cursor: pointer; }
.filter-check-list label .fc-name { display: flex; align-items: center; gap: 9px; }
.filter-check-list input[type=checkbox] { width: auto; margin: 0; accent-color: var(--rust); }
.filter-check-list .fc-count { color: var(--gray-500); font-size: 0.8rem; flex-shrink: 0; }
.filter-range-row { display: flex; gap: 10px; }
.filter-range-row input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--cream); font-size: 0.88rem; color: var(--ink);
}
.filter-range-row input:focus { outline: none; border-color: var(--rust); }

.inventory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.inventory-toolbar h2 { margin: 0; font-size: 1.5rem; }
.inventory-toolbar h2 strong { color: var(--rust-dark); }
.inventory-sort select {
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--white);
  font-size: 0.88rem; color: var(--ink); cursor: pointer;
}
.inventory-sort select:focus { outline: none; border-color: var(--rust); }
.inventory-empty { text-align: center; padding: 50px 20px; color: var(--gray-500); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-md); }
.inventory-empty a { color: var(--rust); font-weight: 600; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vehicle-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-md); overflow: hidden; transition: all .4s var(--ease-premium); }
.vehicle-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.vehicle-image { aspect-ratio: 16/10.5; position: relative; overflow: hidden; }
.vehicle-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-premium); }
.vehicle-card:hover .vehicle-image img { transform: scale(1.06); }
.vehicle-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--cream-deep), var(--rust-tint)); color: var(--gray-500); gap: 8px;
}
.vehicle-placeholder svg { opacity: 0.5; }
.vehicle-placeholder span { font-size: 0.76rem; font-weight: 600; text-align: center; padding: 0 20px; }
.vehicle-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; }
.vehicle-badge { padding: 6px 13px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.vehicle-badge.rust { background: var(--rust); }
.vehicle-info { padding: 22px; }
.vehicle-info h3 { font-size: 1.08rem; margin-bottom: 4px; }
.vehicle-sub { font-size: 0.86rem; color: var(--gray-500); margin-bottom: 14px; }
.vehicle-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-soft); padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.vehicle-meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta-icon { flex-shrink: 0; opacity: 0.55; color: var(--rust-dark); }
.vehicle-price { display: flex; align-items: center; justify-content: space-between; }
.vehicle-price strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--rust); }
.vehicle-price small { display: block; font-size: 0.74rem; color: var(--gray-500); font-weight: 400; }

/* ---------- brand model showcase (nova vozila) ---------- */
.brand-group { margin-bottom: 64px; scroll-margin-top: 110px; }
.brand-group:last-child { margin-bottom: 0; }
.brand-group-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.brand-group-logo {
  flex-shrink: 0; width: 100px; height: 78px; padding: 12px 16px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.brand-group-logo img { height: 100%; width: 100%; object-fit: contain; }
.brand-group-head-text h3 { font-size: 1.3rem; margin-bottom: 2px; }
.brand-group-head-text p { font-size: 0.9rem; color: var(--gray-500); margin: 0; max-width: 560px; }

.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model-tile {
  background: var(--ink); border-radius: var(--radius-md); padding: 26px 24px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; height: 100%; transition: transform .4s var(--ease-premium), box-shadow .4s var(--ease-premium);
}
.model-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.model-fuel-badge {
  align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--rust); color: var(--white);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 18px;
}
.model-photo {
  margin: 0 0 18px; height: 160px; background: linear-gradient(180deg, #ffffff 0%, #f2efe8 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: var(--radius-md); box-shadow: 0 10px 24px -12px rgba(0,0,0,0.4);
}
.model-photo img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.model-tile h4 { color: var(--white); font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.model-body-type { color: var(--rust-light); font-size: 0.82rem; font-weight: 600; margin-bottom: 14px; }
.model-desc { color: rgba(255,255,255,0.7); font-size: 0.86rem; line-height: 1.5; margin-bottom: 20px; }
.model-specs { display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.14); }
.model-specs div strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 1.1rem; }
.model-specs div span { display: block; color: rgba(255,255,255,0.55); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

/* ---------- price list ---------- */
.price-list { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-md); overflow: hidden; }
.price-list-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; border-bottom: 1px solid var(--line-soft); }
.price-list-item:last-child { border-bottom: none; }
.price-list-item h4 { font-size: 1rem; margin-bottom: 3px; }
.price-list-item p { font-size: 0.85rem; margin-bottom: 0; }
.price-list-item .price { font-family: var(--font-head); font-size: 1.15rem; white-space: nowrap; color: var(--rust-dark); }
.price-list-item .price small { display: block; font-size: 0.72rem; color: var(--gray-500); font-family: var(--font-body); font-weight: 400; }

/* ---------- trust / bonitetna odličnost ---------- */
.trust-block { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.trust-badge-big { flex-shrink: 0; }
.trust-badge-big img { width: 230px; height: 230px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: block; }
.trust-block h2 { max-width: 480px; }
.trust-block p { max-width: 560px; margin-bottom: 0; font-size: 1.02rem; }

/* ---------- testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 30px 26px; }
.testimonial-stars { color: var(--rust); letter-spacing: 2px; margin-bottom: 14px; font-size: 0.9rem; }
.testimonial p { font-size: 0.95rem; color: var(--ink); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--rust-tint); color: var(--rust-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--gray-500); }

/* ---------- contact cards ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }
.contact-card-tags { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--rust-dark); margin: -6px 0 16px; }
.contact-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 30px 26px; }
.contact-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.contact-row-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--rust-tint); display: flex; align-items: center; justify-content: center; color: var(--rust-dark); flex-shrink: 0; }
.contact-row-icon svg { width: 16px; height: 16px; }
.nav-cta svg { width: 14px; height: 14px; flex-shrink: 0; }
.contact-row p { margin: 0; font-size: 0.92rem; }
.contact-row a:hover { color: var(--rust); }

/* ---------- forms ---------- */
.form-panel { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group > label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream);
  font-size: 0.95rem; color: var(--ink); transition: border-color .2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--rust); background: var(--white); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--gray-500); }
.form-check input { width: auto; margin-top: 3px; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.choice-item { display: flex; align-items: center; gap: 7px; font-size: 0.86rem; color: var(--ink-soft); cursor: pointer; }
.choice-item input { width: auto; margin: 0; accent-color: var(--rust); }
.form-note { font-size: 0.8rem; color: var(--ok); display: flex; align-items: center; gap: 6px; margin-top: 14px; }

/* ---------- calculator ---------- */
.calculator { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 44px; }
.range-group { margin-bottom: 26px; }
.range-group label { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 10px; }
.range-group label strong { color: var(--ink); font-family: var(--font-head); font-size: 1.05rem; }
.range-group input[type=range] { width: 100%; accent-color: var(--rust); height: 6px; }
.range-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--gray-500); margin-top: 4px; }
.calc-result { text-align: center; padding: 28px; background: var(--cream); border-radius: var(--radius-md); margin-top: 8px; }
.calc-result span { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-bottom: 8px; }
.calc-result strong { font-family: var(--font-head); font-size: 2.4rem; color: var(--rust-dark); }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--ink); border-radius: var(--radius-lg); padding: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -100px; left: -100px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(76,138,209,0.3), transparent 70%); }
.cta-banner .eyebrow { color: #9FC1E8; }
.cta-banner .eyebrow::before { background: #9FC1E8; }
.cta-banner h2 { color: var(--white); position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,0.68); position: relative; z-index: 1; }
.cta-banner .hero-cta { justify-content: center; position: relative; z-index: 1; }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--rust-tint); color: var(--rust-dark); }
.btn-ghost-white { background: transparent; border-color: rgba(255,255,255,0.3); color: var(--white); }
.btn-ghost-white:hover { border-color: var(--white); }

/* ---------- import gallery (auto-scrolling strip) ---------- */
.import-gallery-section { background: var(--ink); padding: 72px 0; overflow: hidden; }
.import-gallery-section .eyebrow { color: #9FC1E8; }
.import-gallery-section .eyebrow::before { background: #9FC1E8; }
.import-gallery-section .eyebrow::after { background: rgba(159,193,232,0.5); }
.import-gallery-section h2 { color: var(--white); }
.import-gallery-section > .container > p,
.import-gallery-section .section-header p { color: rgba(255,255,255,0.68); }
.import-gallery { margin-top: 44px; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.import-gallery-track { display: flex; gap: 22px; width: max-content; animation: import-scroll 34s linear infinite; }
.import-gallery:hover .import-gallery-track { animation-play-state: paused; }
.import-slide {
  flex: 0 0 auto; width: 300px; height: 210px; border-radius: var(--radius-md); overflow: hidden; position: relative;
  box-shadow: 0 16px 34px -16px rgba(0,0,0,0.6); background: linear-gradient(155deg, #362b1e, #1c1712);
  border: 1px solid rgba(255,255,255,0.08);
}
.import-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.import-slide-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: rgba(255,255,255,0.35); text-align: center; padding: 0 20px;
}
.import-slide-placeholder svg { width: 34px; height: 34px; opacity: 0.7; }
.import-slide-placeholder span { font-size: 0.78rem; letter-spacing: 0.04em; }
@keyframes import-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .import-gallery-track { animation: none; } }

/* ---------- footer ---------- */
.site-footer { background: var(--cream-deep); border-top: 1px solid var(--line); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-logo img { height: 34px; margin-bottom: 18px; }
.footer-grid p { font-size: 0.9rem; }
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; color: var(--ink); }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 0.92rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--rust); }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.footer-contact-item { display: flex; flex-direction: column; gap: 2px; }
.footer-contact-item strong { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--gray-500); }
.footer-contact-item a { font-size: 0.94rem; font-weight: 700; color: var(--ink); }
.footer-contact-item a:hover { color: var(--rust); }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; }
.social-links a:hover { background: var(--rust); color: var(--white); border-color: var(--rust); }
.badge-trust { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 16px; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.badge-trust-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--rust-tint); color: var(--rust); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.badge-trust strong { display: block; font-size: 0.82rem; }
.badge-trust small { font-size: 0.74rem; color: var(--gray-500); }
.badge-trust-bosch { gap: 14px; padding: 16px 20px; box-shadow: var(--shadow-sm); border-color: var(--line-soft); }
.badge-trust-bosch .badge-trust-icon { width: 44px; height: 44px; background: #E2001A; color: var(--white); }
.badge-trust-bosch .badge-trust-icon svg { width: 22px; height: 22px; }
.badge-trust-bosch strong { font-size: 0.92rem; }
.badge-trust-bosch small { font-size: 0.78rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--gray-500); flex-wrap: wrap; gap: 10px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-premium), transform .9s var(--ease-premium); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1250px) {
  .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
}
@media (max-width: 1180px) {
  .inventory-main .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .inventory-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-img, .split-visual { order: -1; }
  .brand-pill { flex-basis: 190px; padding: 28px 20px; }
  .brand-pill img { height: 90px; max-width: 120px; }
  .trust-block { grid-template-columns: 1fr; text-align: center; }
  .trust-badge-big { justify-self: center; }
  .trust-badge-big img { width: 160px; height: 160px; }
  .card-grid, .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid, .contact-cards, .contact-cards.cols-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .filters-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(2.1rem, 8vw, 2.6rem); }
  .brand-pill { flex-basis: 130px; padding: 20px 14px; }
  .brand-pill img { height: 60px; max-width: 96px; }
  .nav-toggle { display: flex; }
  .nav-right .btn-text { display: none; }
  .nav-menu {
    position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--cream);
    flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; z-index: 90;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > li > a, .nav-menu > li > .nav-drop-btn { width: 100%; justify-content: space-between; padding: 16px; font-size: 1.05rem; }
  .dropdown { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; display: none; margin-left: 12px; }
  .has-dropdown.open .dropdown { display: block; }
  section { padding: 64px 0; }
  .stats-strip { padding: 40px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .brand-group-logo { width: 80px; height: 62px; padding: 10px 12px; }
  .filters-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-float-card { position: static; margin-top: -40px; max-width: none; }
  .form-panel, .calculator { padding: 26px; }
  .form-row-3 { grid-template-columns: 1fr; }
  .page-header-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- pravna vsebina (GDPR, pogoji, piškotki) ---------- */
.legal-content { max-width: 780px; }
.legal-content .legal-updated { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 36px; }
.legal-content h2 { font-size: 1.4rem; margin-top: 46px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { line-height: 1.75; }
.legal-content ul { list-style: disc; margin: 0 0 18px; padding-left: 22px; }
.legal-content li { margin-bottom: 9px; line-height: 1.65; color: var(--ink-soft); }
.legal-content a { color: var(--rust); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { color: var(--ink); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 0.87rem; }
.legal-content th, .legal-content td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.legal-content th { color: var(--ink); font-weight: 700; background: var(--cream-deep); }
.legal-content td { color: var(--ink-soft); }
@media (max-width: 640px) {
  .legal-content table, .legal-content thead, .legal-content tbody, .legal-content th, .legal-content td, .legal-content tr { display: block; }
  .legal-content thead { display: none; }
  .legal-content tr { border-bottom: 1px solid var(--line); margin-bottom: 14px; padding-bottom: 6px; }
  .legal-content td { border-bottom: none; padding: 4px 0; }
  .legal-content td::before { content: attr(data-label); display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-500); margin-bottom: 2px; }
}

/* ---------- pravne povezave v nogi ---------- */
.footer-legal-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-legal-links a, .footer-legal-links button {
  font-size: 0.82rem; color: var(--gray-500); background: none; border: none; padding: 0;
  cursor: pointer; font-family: inherit;
}
.footer-legal-links a:hover, .footer-legal-links button:hover { color: var(--rust); }

/* ---------- soglasje za piškotke ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 400;
  max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 22px 26px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  transform: translateY(140%); opacity: 0; transition: transform .5s var(--ease-premium), opacity .5s var(--ease-premium);
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); flex: 1 1 320px; }
.cookie-banner p a { color: var(--rust); font-weight: 600; }
.cookie-banner-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.cookie-banner-actions button { white-space: nowrap; }
.cookie-btn-manage {
  background: none; border: none; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
  text-decoration: underline; cursor: pointer; padding: 8px 2px; font-family: inherit;
}
.cookie-btn-manage:hover { color: var(--rust); }

.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 401; background: rgba(34,29,23,0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease;
}
.cookie-modal-overlay.visible { opacity: 1; visibility: visible; }
.cookie-modal {
  background: var(--white); border-radius: var(--radius-md); max-width: 620px; width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 32px; box-shadow: var(--shadow-lg);
}
.cookie-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cookie-modal-head h3 { margin: 0; font-size: 1.2rem; }
.cookie-modal-close {
  background: none; border: none; cursor: pointer; color: var(--ink-soft); flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.cookie-modal-close:hover { background: var(--cream-deep); color: var(--ink); }
.cookie-modal p { font-size: 0.9rem; color: var(--ink-soft); }
.cookie-category {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line-soft);
}
.cookie-category:first-of-type { border-top: 1px solid var(--line-soft); margin-top: 6px; }
.cookie-category-text strong { display: block; font-size: 0.94rem; color: var(--ink); margin-bottom: 3px; }
.cookie-category-text p { margin: 0; font-size: 0.84rem; }
.cookie-category-locked { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ok); flex-shrink: 0; margin-top: 3px; }
.cookie-switch { position: relative; flex-shrink: 0; width: 44px; height: 26px; margin-top: 2px; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch-track {
  position: absolute; inset: 0; background: var(--gray-300); border-radius: 999px; transition: background .2s ease;
}
.cookie-switch-track::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s ease;
}
.cookie-switch input:checked + .cookie-switch-track { background: var(--rust); }
.cookie-switch input:checked + .cookie-switch-track::before { transform: translateX(18px); }
.cookie-switch input:disabled + .cookie-switch-track { background: var(--rust-light); opacity: 0.7; }
.cookie-modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.cookie-modal-footnote { margin-top: 16px; font-size: 0.8rem; color: var(--gray-500); }

@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions button { flex: 1 1 auto; }
  .cookie-modal { padding: 24px 20px; }
}

/* Skip-to-content povezava (dostopnost) — skrita, dokler ni v fokusu s tipkovnico */
.skip-link {
  position: absolute; top: -80px; left: 12px; z-index: 999;
  background: var(--rust); color: var(--white); padding: 12px 20px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
