/* Elektron-s — public site. Light steel-blue + industrial yellow, no dark chrome. */
:root {
  --steel: #d2e4f6;
  --steel-2: #bed4eb;
  --steel-border: #a2bad4;
  --paper: #f7f9fb;
  --paper-2: #ebeff4;
  --paper-border: #d7dbe0;
  --ink: #192029;
  --muted: #515963;
  --navy: #193763;
  --accent: #e2b926;
  --accent-deep: #b98a00;
  --accent-ink: #141b24;
  --ok: #409551;
  --err: #cc3336;
  --display: "Barlow Condensed", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --r-sm: 3px;
  --r-md: 6px;
  --shadow: 0 1px 2px rgba(14, 25, 39, 0.06), 0 8px 24px rgba(14, 25, 39, 0.08);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .6em; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 2.2vw + 1.5rem, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1vw + 1.3rem, 2.2rem); font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 64ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .92rem/1 var(--body); padding: 12px 22px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--steel-border); }
.btn-ghost:hover { border-color: var(--navy); }
.eyebrow { display: inline-block; font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.link-more { font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--paper-border); }
.header-row { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-b { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 800 1.6rem/1 var(--display); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-1 { font: 800 1.45rem/1 var(--display); letter-spacing: .03em; }
.brand-2 { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin-top: 3px; }
.header-search { flex: 1; max-width: 380px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--steel-border); border-radius: var(--r-sm); background: #fff; color: var(--navy); }
.header-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .92rem; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search:focus-within { border-color: var(--navy); }
.header-utility { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #a2bad4; background: #fff; border-radius: var(--r-sm); cursor: pointer; padding: 0; margin: 0; color: #192029; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; line-height: 0; text-align: center; }
.nav-toggle svg { display: inline-block; width: 24px; height: 24px; vertical-align: middle; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: inline-block; }
.main-nav { background: var(--steel); border-top: 1px solid var(--steel-border); }
.nav-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-row a { padding: 12px 14px; font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav-row a:hover { color: var(--navy); }
.nav-row a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--navy); }

/* Hero */
.hero { background: linear-gradient(170deg, var(--steel) 0%, var(--paper-2) 70%, var(--paper) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 .hl { color: var(--navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .92rem; }
.hero-facts strong { color: var(--ink); }
.hero-media img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 24px; border-radius: var(--r-md); box-shadow: var(--shadow); background: #fff; border-top: 4px solid var(--accent); }

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.page-head { background: linear-gradient(175deg, var(--steel) 0%, var(--paper) 100%); padding: 28px 0 36px; border-bottom: 1px solid var(--paper-border); }
.page-head-slim { padding: 16px 0; }
.page-head h1 { margin-top: 8px; }

.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--steel-border); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 14px; border: 1px solid var(--steel-border); background: #fff; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.chips a:hover { border-color: var(--navy); color: var(--navy); }
.chips small { color: var(--muted); }

/* Group cards */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.group-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--paper-border); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.group-card:hover { box-shadow: var(--shadow); border-color: var(--steel-border); }
.group-img { aspect-ratio: 4 / 3; background: var(--paper-2); display: block; }
.group-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.group-name { font: 700 1.3rem/1.1 var(--display); padding: 14px 16px 2px; }
.group-count { font-size: .85rem; color: var(--muted); padding: 0 16px 16px; }

.groups-list { display: grid; gap: 16px; }
.groups-item { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--paper-border); border-radius: var(--r-md); padding: 16px; }
.groups-item-img img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--paper-2); border-radius: var(--r-sm); width: 100%; }
.groups-item h2 { margin: 0; }
.groups-item h2 a { color: var(--ink); text-decoration: none; }
.groups-item h2 small { font: 500 .9rem var(--body); color: var(--muted); }

/* Machine cards */
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.m-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--paper-border); border-radius: var(--r-md); text-decoration: none; color: var(--ink); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.m-card:hover { box-shadow: var(--shadow); border-color: var(--steel-border); }
.m-card-img { aspect-ratio: 1; background: #fff; display: block; border-bottom: 1px solid var(--paper-border); }
.m-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.m-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.m-card-sku { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.m-card-name { font: 700 1.15rem/1.15 var(--display); }
.m-card-more, .m-card-price { margin-top: auto; padding-top: 8px; font-size: .85rem; font-weight: 600; color: var(--navy); }
.m-card-price { font-size: 1rem; color: var(--ink); }
.m-card-price small { font-size: .72rem; font-weight: 500; color: var(--muted); }

/* Product */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { background: #fff; border: 1px solid var(--paper-border); border-radius: var(--r-md); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid var(--paper-border); border-radius: var(--r-sm); background: #fff; cursor: pointer; aspect-ratio: 1; }
.gallery-thumbs button.is-active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.product-sku { font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
.product-info h1 { margin: 6px 0 14px; }
.product-short { color: var(--muted); font-size: 1.05rem; }
.product-price { font: 700 1.8rem/1 var(--display); margin: 18px 0; }
.product-price small { font: 500 .85rem var(--body); color: var(--muted); }
.product-price-ask { font-size: 1.3rem; color: var(--navy); }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.h-sub { font-size: 1.35rem; margin-top: 8px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.product-details { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.specs { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--paper-border); border-radius: var(--r-md); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--paper-border); font-size: .94rem; vertical-align: top; }
.specs th { font-weight: 500; color: var(--muted); width: 55%; }
.specs td { font-weight: 600; }
.specs tr:nth-child(even) { background: var(--paper); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.docs { padding-left: 18px; }
.prose p { max-width: 70ch; }

/* Search, contact, forms */
.search-big { display: flex; gap: 10px; max-width: 640px; margin-top: 16px; }
.search-big input { flex: 1; min-width: 0; padding: 13px 14px; font: inherit; border: 1px solid var(--steel-border); border-radius: var(--r-sm); background: #fff; }
.empty { padding: 32px; background: var(--paper-2); border-radius: var(--r-md); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.field input, .field textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--steel-border); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.err { color: var(--err); font-style: normal; font-weight: 500; font-size: .85rem; }
.hp { position: absolute; left: -9999px; }
.form-machine { background: var(--steel); padding: 12px 16px; border-radius: var(--r-sm); margin: 0; }
.notice { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 20px; }
.notice-ok { background: #d6f5d9; border: 1px solid #96ce9d; }
.contact-card { background: var(--steel); border-radius: var(--r-md); padding: 28px; border-top: 4px solid var(--accent); }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 18px 0 0; }
.contact-card dt { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.contact-card dd { margin: 0; font-weight: 600; }
.cta-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; background: var(--steel); border-radius: var(--r-md); padding: 40px; border-left: 6px solid var(--accent); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Footer */
.site-footer { background: var(--steel); border-top: 1px solid var(--steel-border); margin-top: 0; padding-top: 48px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--navy); text-decoration: underline; }
.footer-h { font-size: 1.15rem; margin-bottom: 12px; }
.brand-footer { margin-bottom: 14px; }
.footer-credit a { color: var(--navy); font-weight: 600; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--steel-border); color: var(--muted); font-size: .82rem; }

@media (max-width: 960px) {
  .hero-grid, .product, .product-details, .contact-grid, .cta-band { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { justify-content: flex-start; }
  .header-search { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .header-row { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .header-phone, .header-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; }
  body.nav-open .main-nav { display: block; }
  .nav-row { flex-direction: column; gap: 0; }
  .nav-row a { border-bottom: 1px solid var(--steel-border); }
  .nav-row a[aria-current="page"] { border-left: 4px solid var(--accent); border-bottom-color: var(--steel-border); }
  .hero-grid { padding-top: 32px; padding-bottom: 32px; }
  .section { padding: 44px 0; }
  .groups-item { grid-template-columns: 1fr; }
  .m-grid, .group-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .group-name { font-size: 1.1rem; padding: 10px 12px 2px; }
  .group-count { padding: 0 12px 12px; }
  .m-card-body { padding: 10px 12px 12px; }
  .field-row, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 24px; }
  .search-big { flex-direction: column; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.btn.is-added { background: var(--ok); border-color: var(--ok); color: #fff; }
.nowrap { white-space: nowrap; }
.num { text-align: right; }


.section-head h2 small { font: 600 1rem var(--body); color: var(--muted); }

.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--paper-border); border-radius: var(--r-md); background: #fff; }
.sizes { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sizes th, .sizes td { padding: 10px 12px; border-bottom: 1px solid var(--paper-border); text-align: left; vertical-align: middle; }
.sizes thead th { background: var(--paper); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.sizes tbody th { font-weight: 600; }
.sizes tbody tr:hover { background: var(--paper); }
.sizes .num { text-align: right; }
.sizes tfoot th, .sizes tfoot td { border-bottom: 0; background: var(--paper); }
.upit-row { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.upit-row input, .upit-list input[type="number"] { width: 64px; padding: 6px 8px; border: 1px solid var(--steel-border); border-radius: var(--r-sm); font: inherit; }
.upit-form { flex-wrap: wrap; align-items: flex-end; }
.qty { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); }
.qty input { width: 84px; padding: 11px 10px; border: 1px solid var(--steel-border); border-radius: var(--r-sm); font: inherit; color: var(--ink); }
.upit-note { font-size: .86rem; margin-top: 14px; }

.header-upit { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; text-decoration: none; }
.header-upit:hover { color: var(--ink); }
.upit-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; line-height: 20px; text-align: center; }
.upit-count[hidden] { display: none; }
.upit-item { display: flex; gap: 12px; align-items: center; }
.upit-item img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--paper-border); border-radius: var(--r-sm); background: #fff; flex: none; }
.upit-item small { display: block; color: var(--muted); font-weight: 500; }
.upit-list-actions { display: flex; gap: 18px; align-items: center; margin: 14px 0 34px; }

.fits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.fits a { display: flex; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; background: #fff; border: 1px solid var(--paper-border); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .92rem; }
.fits a:hover { border-color: var(--steel-border); box-shadow: var(--shadow); }
.fits img { width: 52px; height: 52px; object-fit: contain; flex: none; }

@media (max-width: 720px) {
  .header-upit span { display: none; }
  .sizes { font-size: .85rem; }
  .sizes th, .sizes td { padding: 8px; }
}

.basket-join { margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--steel-border); border-left: 4px solid var(--accent); border-radius: var(--r-md); background: #fff; }
.basket-join legend { padding: 0 6px; font-weight: 600; color: var(--navy); }
.basket-join ul { margin: 4px 0 12px; padding-left: 18px; font-size: .9rem; }
.basket-join li { margin-bottom: 3px; }
.basket-join small { color: var(--muted); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.basket-edit { display: inline-block; margin-top: 8px; font-size: .86rem; }
.upit-machine { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: -14px 0 26px; }
.upit-machine .qty input { padding: 9px 10px; width: 72px; }
.upit-machine .muted { font-size: .84rem; align-self: center; }
.upit-group th { background: var(--steel); color: var(--navy); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 7px 12px; }

/* Machine cards: link + "Dodaj u upit" (a form can't sit inside the link) */
.m-card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.m-card-add { margin: 0 16px 16px; }
.m-card-add .btn { width: 100%; }
@media (max-width: 720px) { .m-card-add { margin: 0 12px 12px; } }

/* Inquiry list: delivery address (Croatia only) */
.address { border: 0; padding: 0; margin: 6px 0 0; min-width: 0; }
.address legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.field-row-street { grid-template-columns: 1fr 140px; }
.field-row-zip { grid-template-columns: 160px 1fr; }
.address .field { min-width: 0; }
.address .field input { width: 100%; min-width: 0; box-sizing: border-box; }
.field input.is-locked { background: var(--paper); color: var(--muted); cursor: not-allowed; }
@media (max-width: 720px) {
  .field-row-street { grid-template-columns: 1fr 110px; }
  .field-row-zip { grid-template-columns: 120px 1fr; }
}
.address > * + * { margin-top: 16px; }

/* Home: featured machines in full rows of 4 (8 shown) */
@media (min-width: 961px) { .m-grid-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 721px) and (max-width: 960px) { .m-grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Brand logos ---------- */
.brand-logo { flex-direction: column; align-items: flex-start; gap: 0; }
.brand-logo .brand-2 { margin: 1px 0 0 2px; }
.nav-row a.nav-akcije { color: #b3261e; font-weight: 700; }
.footer-small { font-size: .82rem; color: var(--muted); }
.contact-legal { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ---------- Home hero, modelled on the printed flyer ---------- */
.hero-flyer { position: relative; overflow: hidden; background: #dfe7ef; padding: 40px 0; }
.hero-collage { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 50%; opacity: .69; }
.hero-collage span { display: block; overflow: hidden; background: #fff; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) saturate(.9); }
.hero-flyer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(240, 245, 250, .50), rgba(240, 245, 250, .60)); }
.hero-flyer .container { position: relative; z-index: 1; }
.flyer { max-width: 860px; margin: 0 auto; text-align: center; padding: 28px 28px 30px; border: 3px solid #2d5f8f; border-radius: 28px; background: rgba(255, 255, 255, .55); box-shadow: var(--shadow); }
.flyer-site { display: block; font-weight: 700; font-style: italic; font-size: .85rem; color: var(--ink); text-decoration: none; margin-bottom: 2px; }
.flyer-title { margin: 0 0 18px; font: 800 2.35rem/1.12 var(--display); text-transform: uppercase; letter-spacing: .02em; color: #2d5f8f;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(25, 32, 41, .35); }
.flyer-title span { display: block; }
.flyer-text { max-width: 640px; margin: 0 auto 14px; font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.45; }
.flyer-text a { color: var(--ink); white-space: nowrap; }
.flyer-delivery { margin: 0; font: 800 1.7rem/1.2 var(--display); text-transform: uppercase; color: var(--ink); letter-spacing: .03em; }
.flyer-url { margin: 2px 0 6px; font: 800 1.9rem/1.2 var(--display); color: var(--accent);
  text-shadow: -1px -1px 0 #1a1a1a, 1px -1px 0 #1a1a1a, -1px 1px 0 #1a1a1a, 1px 1px 0 #1a1a1a, 2px 2px 0 #1a1a1a; }
.hero-flyer .hero-actions { justify-content: center; margin: 18px 0 0; }
@media (max-width: 720px) {
  .hero-flyer { padding: 20px 0; }
  .hero-collage { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 25%; }
  .flyer { padding: 20px 14px 22px; border-radius: 20px; }
  .flyer-title { font-size: 1.55rem; }
  .flyer-text { font-size: 1rem; }
  .flyer-delivery { font-size: 1.3rem; }
  .flyer-url { font-size: 1.35rem; }
  }

/* Akcije: badge + struck-through regular price */
.sale-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 4px; background: #b3261e; color: #fff; font: 700 .78rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.sale-badge-inline { position: static; display: inline-block; margin-top: 10px; }
.is-sale ins { color: #b3261e; }
.sizes ins, .upit-table ins { color: #b3261e; }

/* Home: Akcije teaser */
.home-sale { background: #fdf3f2; border-top: 4px solid #b3261e; }
.home-sale .section-head h2 { display: flex; align-items: center; gap: 12px; }
.sale-badge-title { position: static; font-size: .85rem; }
.home-sale-more { margin: 24px 0 0; text-align: center; }
.site-footer a.footer-akcije { display: inline-flex; align-items: center; gap: 8px; color: #b3261e; font-weight: 700; }
.sale-badge-footer { position: static; padding: 2px 7px; font-size: .68rem; box-shadow: none; }


/* Rabljena vozila */
.used-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 4px; background: #2f5d3a; color: #fff; font: 700 .78rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.used-badge-2 { top: 40px; }
.used-badge-inline { position: static; display: inline-block; margin: 10px 8px 0 0; }
.m-card-used { display: block; margin-top: 4px; font-size: .82rem; color: #2f5d3a; font-weight: 600; }
.used-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0 0; padding: 12px 14px; background: #eef5ef; border-left: 4px solid #2f5d3a; border-radius: var(--r-sm); font-size: .95rem; }
.used-facts dt { color: var(--muted); }
.used-facts dd { margin: 0; font-weight: 600; }
.home-used { background: #f1f6f2; border-top: 4px solid #2f5d3a; }

/* Cookie consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; padding: 16px 18px; background: #fff; border: 1px solid var(--paper-border); border-top: 4px solid var(--accent); border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(14,25,39,.18); font-size: .92rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.footer-cookies { color: var(--muted); }

/* Privacy policy */
.privacy h2 { margin-top: 1.8em; font-size: 1.5rem; }
.privacy h3 { margin: 1.4em 0 .4em; font-size: 1.15rem; }
.privacy ul { max-width: 70ch; padding-left: 1.2em; }
.privacy li { margin: .3em 0; }
.form-privacy { margin: 0 0 12px; font-size: .85rem; color: var(--muted); }

/* Desktop nav: 10 items must fit without hidden scrolling between tablet and wide screens */
@media (min-width: 961px) and (max-width: 1360px) {
  .nav-row { gap: 0; }
  .nav-row a { padding: 12px 10px; font-size: .86rem; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .nav-row a { padding: 12px 7px; font-size: .8rem; }
}


/* Math check above "Pošalji upit": large, framed, red when missing or wrong */
.captcha-box { margin: 6px 0 16px; padding: 14px 16px; background: #fff8dc; border: 2px solid var(--accent); border-radius: var(--r-md); }
.captcha-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; cursor: text; }
.captcha-q { font: 700 1.2rem/1.3 var(--body); color: var(--ink); }
.captcha-q strong { font: 800 1.6rem/1 var(--display); color: var(--navy); white-space: nowrap; padding: 0 2px; }
.captcha-box input { width: 84px; max-width: 84px; padding: 10px 12px; font: 700 1.3rem/1 var(--body); text-align: center; border: 2px solid var(--steel-border); border-radius: var(--r-sm); background: #fff; }
.captcha-box input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(25, 55, 99, .18); }
.captcha-help { margin: 8px 0 0; font-size: .86rem; color: var(--muted); }
.captcha-box.is-error { background: #fdecec; border-color: #cc3336; animation: captcha-shake .35s ease-in-out 1; }
.captcha-box.is-error input { border-color: #cc3336; }
.captcha-box.is-error .captcha-help { color: #b3261e; font-weight: 700; }
.captcha-box.is-ok { border-color: var(--ok); }
@keyframes captcha-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .captcha-box.is-error { animation: none; } }

small.stock-soon { color: #8a5a00; font-weight: 600; }

/* ---------- Elektron-s: wordmark, 12-item menu with dropdown, trust row ---------- */
.brand-word { font: 800 1.55rem/1 var(--display); letter-spacing: .07em; color: var(--navy); }
.brand-logo .brand-2 { margin: 2px 0 0 1px; }
.footer-brand { display: flex; flex-direction: column; margin: 0 0 12px; }
.footer-brand .brand-2 { margin-top: 2px; }
.nav-row { gap: 2px; }
.nav-row > a, .nav-item > a { padding: 12px 10px; font-size: .88rem; }
.nav-short { display: none; }
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-item.is-active > a { border-bottom-color: var(--accent); color: var(--navy); }
.sub-toggle { border: 0; background: none; padding: 0 8px 0 2px; margin: 0 0 3px -6px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; }
.sub-toggle svg { transition: transform .15s; }
.has-sub.is-open .sub-toggle svg, .has-sub:hover .sub-toggle svg { transform: rotate(180deg); }
.sub-menu { list-style: none; margin: 0; padding: 6px 0; }
.sub-menu a { display: block; }
@media (min-width: 721px) {
  .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 240px; background: #fff; border: 1px solid var(--steel-border); border-top: 3px solid var(--accent); border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: var(--shadow); }
  .has-sub:hover .sub-menu, .has-sub:focus-within:not(.is-closed) .sub-menu, .has-sub.is-open .sub-menu { display: block; }
  .sub-menu a { padding: 10px 16px; font-size: .9rem; border-bottom: 0; white-space: nowrap; }
  .sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--paper-2); color: var(--navy); border-bottom: 0; }
}
@media (max-width: 720px) {
  .nav-item { flex-direction: column; border-bottom: 1px solid var(--steel-border); }
  .nav-item > a { border-bottom: 0; }
  .sub-toggle { display: none; }
  .sub-menu { padding: 0 0 6px; }
  .sub-menu a { padding: 9px 14px 9px 30px; font-size: .88rem; border-bottom: 0; }
}
@media (min-width: 961px) and (max-width: 1360px) {
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .nav-row > a, .nav-item > a { padding: 12px 7px; font-size: .8rem; }
}
@media (min-width: 721px) and (max-width: 960px) {
  .nav-row { flex-wrap: wrap; }
}
.trust { background: #fff; border-bottom: 1px solid var(--paper-border); }
.trust-row { list-style: none; margin: 0 auto; padding: 18px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 28px; }
.trust-row li { display: flex; flex-direction: column; padding-left: 14px; border-left: 3px solid var(--accent); }
.trust-row strong { font: 700 1.05rem/1.2 var(--display); color: var(--navy); }
.trust-row span { font-size: .85rem; color: var(--muted); }
@media (max-width: 960px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-row { grid-template-columns: 1fr; } }
.flyer-title { text-transform: none; letter-spacing: 0; color: var(--navy); font-size: clamp(2rem, 2.4vw + 1.2rem, 3.2rem); }
.flyer-text { font-weight: 500; max-width: 560px; }
.address legend small { font-weight: 500; }
.address-hint { margin: -4px 0 12px; font-size: .88rem; }

/* Info pages */
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.page-body .prose { max-width: 72ch; font-size: 1.04rem; }
.prose h2 { font-size: 1.45rem; margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.page-aside { background: var(--steel); border-radius: var(--r-md); padding: 22px 24px; border-left: 6px solid var(--accent); display: flex; flex-direction: column; gap: 10px; }
.page-aside h2 { font-size: 1.35rem; margin: 0; }
.page-aside p { margin: 0 0 6px; color: var(--muted); }
@media (max-width: 960px) { .page-body { grid-template-columns: 1fr; gap: 28px; } }

/* Empty category */
.empty-state { max-width: 560px; margin: 8px auto 24px; text-align: center; padding: 36px 28px; background: #fff; border: 1px dashed var(--steel-border); border-radius: var(--r-md); }
.empty-state h2 { margin-bottom: .4em; }
.empty-state p { color: var(--muted); }
.empty-state p:last-child { margin: 18px 0 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* availability (citycoco sync) */
.stock-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 4px; background: #5f6368; color: #fff; font: 700 .72rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.stock-badge-1 { top: 40px; }
.stock-badge-2 { top: 70px; }
.stock-badge-inline { position: static; display: inline-block; margin: 10px 8px 0 0; }
