/* ===== АутоСвет — стилови ===== */
:root {
  --navy: #0b1d3a; --navy-2: #132a52; --navy-3: #1d3a6b;
  --red: #e11d2e; --red-2: #b91524;
  --bg: #f4f6fa; --card: #ffffff; --text: #0f172a; --muted: #64748b; --border: #e2e8f0; --soft: #eef2f8;
  --green: #16a34a; --amber: #d97706;
  --radius: 14px; --shadow: 0 6px 24px rgba(11, 29, 58, .08); --shadow-lg: 0 18px 50px rgba(11, 29, 58, .18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head: 'Unbounded', 'Inter', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070f1e; --card: #0f1b33; --text: #e5e9f2; --muted: #93a1bb; --border: #1f2e4d; --soft: #142342; color-scheme: dark;
  }
}
:root[data-theme="dark"] { --bg: #070f1e; --card: #0f1b33; --text: #e5e9f2; --muted: #93a1bb; --border: #1f2e4d; --soft: #142342; color-scheme: dark; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.1rem; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.grow { flex: 1; min-width: 0; }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ----- Дугмад ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.3em; border-radius: 10px; font-weight: 600;
  background: var(--navy); color: #fff; transition: .2s; white-space: nowrap; border: 2px solid transparent; }
.btn:hover { background: var(--navy-3); transform: translateY(-1px); }
.btn.red { background: var(--red); } .btn.red:hover { background: var(--red-2); }
.btn.green { background: var(--green); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--red); color: var(--red); }
.btn.ghost.on { color: var(--red); border-color: var(--red); }
.btn.ghost.on .ic { fill: var(--red); }
.btn.white { background: #fff; color: var(--navy); }
.btn.sm { padding: .5em .9em; font-size: .88rem; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); transition: .2s; background: var(--card); }
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.icon-btn.danger:hover { background: var(--red); color: #fff; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row-end { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }

/* ----- Заглавље ----- */
.topbar { background: var(--navy); color: #c4d0e6; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; gap: 1rem; }
.topbar-info { display: flex; gap: 1.4rem; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.social { display: flex; gap: .4rem; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; transition: .2s; }
.social a:hover { background: var(--red); color: #fff; }
.navbar { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--border); transition: box-shadow .2s; }
#site-header { display: contents; }
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar .container { display: flex; align-items: center; gap: 1.2rem; height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--head); font-size: 1.35rem; font-weight: 600; color: var(--navy); }
:root[data-theme="dark"] .logo, .logo.light { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { color: #fff; } }
.logo b { color: var(--red); }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; }
.logo-mark .ic { width: 24px; height: 24px; }
.nav { display: flex; gap: .2rem; margin-left: auto; }
.nav a { white-space: nowrap; padding: .55rem .8rem; border-radius: 8px; font-weight: 500; color: var(--muted); transition: .2s; position: relative; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 3px; border-radius: 3px; background: var(--red); }
.nav .nav-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.burger { display: none; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  min-width: 220px; padding: .4rem; display: none; z-index: 60; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .8rem; border-radius: 8px; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--soft); }
.dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: .72rem; font-style: normal; font-weight: 700; margin-left: auto; }

/* ----- Хиро ----- */
.hero { position: relative; color: #fff; padding: clamp(4rem, 10vw, 7rem) 0 clamp(5rem, 10vw, 8rem); overflow: hidden;
  background: linear-gradient(100deg, rgba(11, 29, 58, .96) 30%, rgba(11, 29, 58, .55)), url('../img/hero.jpg') center/cover, var(--navy); }
.hero::after { content: ''; position: absolute; right: -10%; bottom: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(225, 29, 46, .35), transparent 65%); }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { display: inline-flex; gap: .5rem; align-items: center; padding: .4rem .9rem; border-radius: 30px; background: rgba(255, 255, 255, .1); font-size: .85rem; margin-bottom: 1.2rem; border: 1px solid rgba(255, 255, 255, .15); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 760px; }
.hero h1 span { color: var(--red); }
.hero p { max-width: 560px; margin: 1.2rem 0 2rem; color: #c4d0e6; font-size: 1.1rem; }
.search-box { background: var(--card); color: var(--text); border-radius: 18px; padding: 1.2rem; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: .7rem; max-width: 1000px; }
.search-box .btn { height: 100%; }
.page-hero { background: linear-gradient(120deg, var(--navy), var(--navy-3)); color: #fff; padding: 3.2rem 0; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -5%; top: -60%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(225, 29, 46, .4), transparent 65%); }
.page-hero p { color: #c4d0e6; margin-top: .5rem; max-width: 640px; }
.page-hero .crumbs, .page-hero .crumbs a { color: #93a6c9; }

/* ----- Секције ----- */
section.block { padding: clamp(3rem, 6vw, 5rem) 0; }
section.alt { background: var(--card); border-block: 1px solid var(--border); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.sec-head .kicker { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; display: block; margin-bottom: .3rem; }
.link-more { color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.stats-bar { margin-top: -3.5rem; position: relative; z-index: 2; }
.stats-bar .container { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.6rem; gap: 1rem; border: 1px solid var(--border); }
.stats-bar div { text-align: center; }
.stats-bar b { display: block; font-family: var(--head); font-size: 2rem; color: var(--red); }
.stats-bar span { color: var(--muted); font-size: .9rem; }

/* ----- Картице ----- */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: .25s; position: relative; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy-2); display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.06); }
.badges { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .4rem; }
.badge { display: inline-block; padding: .25rem .6rem; border-radius: 6px; font-size: .72rem; font-weight: 700; background: var(--navy); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.badge.red { background: var(--red); }
.fav { position: absolute; top: .7rem; right: .7rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; transition: .2s; z-index: 2; }
.fav:hover { transform: scale(1.1); color: var(--red); }
.fav.on { color: var(--red); } .fav.on .ic { fill: var(--red); }
.card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { font-size: 1.02rem; }
.card-body h3 a:hover { color: var(--red); }
.specs { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--muted); font-size: .85rem; }
.specs span, .meta, .meta span, .card-foot span { display: inline-flex; align-items: center; gap: .35rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--border); }
.price { color: var(--red); font-family: var(--head); font-size: 1.15rem; }
.meta { color: var(--muted); font-size: .82rem; gap: .8rem; flex-wrap: wrap; }
.meta.big { font-size: .92rem; margin: .7rem 0 1.4rem; }
.more { color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: .25rem; margin-top: auto; font-size: .92rem; }
.art-card p { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stars { display: inline-flex; gap: 1px; color: #f59e0b; }
.stars span { display: inline-flex; color: #cbd5e1; }
.stars span.on { color: #f59e0b; } .stars span.on .ic { fill: #f59e0b; }
.stars span.half .ic { fill: url(#none); color: #f59e0b; }
.ic.gold { fill: #f59e0b; color: #f59e0b; }



.cta { background: linear-gradient(110deg, var(--red), var(--red-2)); color: #fff; border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .08); }
.cta p { opacity: .9; margin-top: .5rem; max-width: 560px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.feature .ic-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(225, 29, 46, .1); color: var(--red); margin-bottom: 1rem; }
.feature .ic-box .ic { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .4rem; font-size: 1rem; }
.feature p { color: var(--muted); font-size: .93rem; }

/* ----- Форме ----- */
input, select, textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: 10px; background: var(--card); transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(29, 58, 107, .15); }
textarea { resize: vertical; }
.form { display: flex; flex-direction: column; gap: .9rem; }
.form label { display: block; font-weight: 600; font-size: .9rem; }
.form label > :is(input, select, textarea, .pass-wrap) { display: block; margin-top: .35rem; }
.form label.check, label.check { display: flex; align-items: center; gap: .55rem; font-weight: 500; cursor: pointer; }
.form label.check > input { margin-top: 0; }
.star { color: var(--red); }
label.check input { width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; }
.pass-wrap { position: relative; display: block; }
.pass-wrap button { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); color: var(--muted); padding: .3rem; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.panel h3 { margin-bottom: 1rem; }
.notice { background: var(--soft); border-left: 4px solid var(--navy-3); padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; }
.notice a { color: var(--red); font-weight: 600; }
.notice.pending { border-color: var(--amber); }
.notice.rejected { border-color: var(--red); }
.notice.ok { border-color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 30px; background: var(--soft); font-size: .88rem; }
.chip .ic { color: var(--green); }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill, .tab { padding: .5rem 1rem; border-radius: 30px; border: 1px solid var(--border); background: var(--card); font-weight: 600; font-size: .9rem; transition: .2s; }
.pill:hover, .tab:hover { border-color: var(--navy-3); }
.pill.active, .tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ----- Огласи (листа + филтери) ----- */
.listing { display: grid; grid-template-columns: 290px 1fr; gap: 2rem; align-items: start; padding: 2.5rem 0 4rem; }
.filters { position: sticky; top: 90px; }
.filters h3 { display: flex; justify-content: space-between; align-items: center; }
.filters .form { gap: .75rem; }
.filters label { font-size: .82rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.toolbar select { width: auto; }
.toolbar .row { gap: .4rem; }
[data-view].active { background: var(--navy); color: #fff; border-color: var(--navy); }
#toggle-filters { display: none; }
.list-view { grid-template-columns: 1fr; }
.list-view .ad-card { flex-direction: row; }
.list-view .ad-card .card-img { width: 300px; aspect-ratio: auto; min-height: 190px; flex-shrink: 0; }
.list-view .ad-card .fav { left: 250px; right: auto; }
.empty { grid-column: 1/-1; text-align: center; padding: 3rem 1rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.empty > .ic { width: 48px; height: 48px; opacity: .5; }

/* ----- Детаљи огласа ----- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a:hover { color: var(--red); }
.ad-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: start; flex-wrap: wrap; }
.ad-price { font-family: var(--head); font-size: 2rem; color: #fff; background: var(--red); padding: .5rem 1.2rem; border-radius: 12px; }
.ad-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.ad-side { position: sticky; top: 90px; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); aspect-ratio: 16/10; margin-bottom: .8rem; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.img-count { position: absolute; bottom: .8rem; right: .8rem; background: rgba(0, 0, 0, .6); color: #fff; padding: .25rem .7rem; border-radius: 20px; font-size: .82rem; }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow); }
.nav-arrow:hover { background: var(--red); color: #fff; }
.nav-arrow.l { left: .8rem; } .nav-arrow.r { right: .8rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; margin-bottom: 1.5rem; }
.thumbs button { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; border: 3px solid transparent; opacity: .7; }
.thumbs button.active { border-color: var(--red); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: .7rem .5rem; border-bottom: 1px solid var(--border); text-align: left; font-size: .93rem; }
.spec-table th { color: var(--muted); font-weight: 500; width: 45%; }
.spec-table td { font-weight: 600; }
.spec-table.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.spec-table.two tbody { display: contents; }
.spec-table.two tr { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); }
.spec-table.two th, .spec-table.two td { border: 0; width: auto; }
.seller { display: flex; flex-direction: column; gap: .9rem; }
.seller > div:nth-child(2) { display: flex; flex-direction: column; }
.seller .row .btn { flex: 1; padding-inline: .6rem; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-3), var(--navy)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; flex-shrink: 0; }
.tips ul { padding-left: 1.2rem; color: var(--muted); font-size: .9rem; }
.tips h4 { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.prose p { margin-bottom: 1.1rem; }

/* ----- Чланак ----- */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; padding: 2.5rem 0 4rem; align-items: start; }
.article-hero { width: 100%; border-radius: 18px; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 1.5rem; background: var(--navy); }
.lead-text { font-size: 1.2rem; font-weight: 500; margin-bottom: 1.4rem; border-left: 4px solid var(--red); padding-left: 1rem; }
#article .prose { font-size: 1.06rem; }
.verdict { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 1.2rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; }
.score { text-align: center; background: var(--navy); color: #fff; border-radius: 12px; padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.score b { font-family: var(--head); font-size: 2.6rem; }
.score span:last-child { font-size: .8rem; color: #c4d0e6; }
.pc h4 { display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; }
.pc .pro { color: var(--green); } .pc .con { color: var(--red); }
.pc ul { padding-left: 1.1rem; }
.share { display: flex; align-items: center; gap: .5rem; margin: 2rem 0; padding: 1rem 0; border-block: 1px solid var(--border); font-weight: 600; }
.sidebar .panel h3 { font-size: 1rem; }
.mini { display: flex; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.mini:last-child { border: 0; }
.mini img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--navy); }
.mini span { font-weight: 600; font-size: .9rem; line-height: 1.35; display: flex; flex-direction: column; gap: .2rem; }
.mini small { color: var(--muted); font-weight: 400; }
.mini small.price { font-size: .95rem; color: var(--red); font-weight: 700; }
.mini:hover span { color: var(--red); }
.comments h3 { margin-bottom: 1rem; }
.comment, .comment-form { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: start; }
.comment-form { flex-direction: row; flex-wrap: wrap; border: 0; }
.comment-form textarea { flex: 1; min-width: 200px; }
.comment-form .btn { margin-left: auto; }
.comment .avatar, .comment-form .avatar { width: 42px; height: 42px; font-size: 1rem; }

/* ----- Галерија ----- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; grid-auto-flow: dense; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--navy); }
.g-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.g-item span { position: absolute; inset: auto 0 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); color: #fff; text-align: left; display: flex; flex-direction: column; transform: translateY(30%); opacity: 0; transition: .3s; }
.g-item span small { color: #ff8b95; }
.g-item:hover img { transform: scale(1.07); }
.g-item:hover span, .g-item:focus-visible span { transform: none; opacity: 1; }
.lightbox { position: relative; }
.lightbox img { max-height: 78vh; width: 100%; object-fit: contain; border-radius: 10px; }
.lb-cap { color: #fff; text-align: center; margin-top: .8rem; }
.modal-bg.dark { background: rgba(3, 8, 18, .94); }
.modal-bg.dark .modal { background: transparent; box-shadow: none; border: 0; }
.modal-bg.dark .modal-x { color: #fff; background: rgba(255, 255, 255, .12); }

/* ----- Контакт ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; padding: 3rem 0; align-items: start; }
.info-item { display: flex; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.info-item:last-child { border: 0; }
.info-item .ic-box { width: 46px; height: 46px; border-radius: 12px; background: rgba(225, 29, 46, .1); color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.info-item b { display: block; }
.map { width: 100%; height: 400px; border: 0; border-radius: var(--radius); display: block; background: var(--soft); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; padding: 1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq-q::after { content: '+'; color: var(--red); font-size: 1.4rem; line-height: 1; transition: .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 1rem; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* ----- О нама ----- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-img { border-radius: 22px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); background: var(--navy); }
.about-grid ul { list-style: none; display: grid; gap: .6rem; margin-top: 1.2rem; }
.about-grid li { display: flex; gap: .6rem; align-items: center; }
.about-grid li .ic { color: var(--red); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.2rem; }
.member { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; }
.member .avatar { width: 76px; height: 76px; margin: 0 auto .8rem; font-size: 1.6rem; }
.member:nth-child(even) .avatar { background: linear-gradient(135deg, var(--red), var(--red-2)); }
.member span { color: var(--muted); font-size: .88rem; }
.timeline { display: grid; gap: 1rem; border-left: 3px solid var(--red); padding-left: 1.5rem; }
.timeline div { position: relative; }
.timeline div::before { content: ''; position: absolute; left: calc(-1.5rem - 9px); top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--card); border: 3px solid var(--red); }
.timeline b { color: var(--red); font-family: var(--head); }

/* ----- Пријава ----- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 110px); }
.auth-side { background: linear-gradient(160deg, rgba(11, 29, 58, .92), rgba(19, 42, 82, .85)), url('../img/auth.jpg') center/cover, var(--navy);
  color: #fff; padding: 4rem; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; }
.auth-side ul { list-style: none; display: grid; gap: .8rem; }
.auth-side li { display: flex; gap: .6rem; align-items: center; color: #c4d0e6; }
.auth-side li .ic { color: var(--red); }
.auth-main { display: grid; place-items: center; padding: 3rem 1rem; }
.auth-box { width: min(460px, 100%); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); padding: .3rem; border-radius: 12px; margin-bottom: 1.5rem; gap: .3rem; }
.auth-tabs .tab { border: 0; border-radius: 9px; background: transparent; }
.auth-tabs .tab.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.demo { font-size: .85rem; background: var(--soft); border-radius: 10px; padding: .8rem 1rem; margin-top: 1rem; color: var(--muted); }

/* ----- Постављање огласа ----- */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; padding: 2.5rem 0 4rem; align-items: start; }
.step { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }
.step i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-style: normal; font-weight: 700; font-size: .9rem; }
.step h3 { margin: 0; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; margin-top: .8rem; }
.ph { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--soft); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .badge { position: absolute; left: .4rem; bottom: .4rem; }
.ph > button { position: absolute; top: .3rem; right: .3rem; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; }
.ph > button:hover { background: var(--red); }
.form label.drop, .drop { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem; border: 2px dashed var(--border); border-radius: 12px; cursor: pointer; text-align: center; color: var(--muted); transition: .2s; font-weight: 500 !important; }
.drop:hover { border-color: var(--red); color: var(--red); }
.drop .ic { width: 34px; height: 34px; }
.equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }

/* ----- Профил ----- */
.profile-head { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.profile-head .avatar { width: 80px; height: 80px; font-size: 2rem; border: 4px solid rgba(255, 255, 255, .2); }
.p-stats { display: flex; gap: 2rem; margin-left: auto; }
.p-stats div { text-align: center; color: #c4d0e6; font-size: .85rem; }
.p-stats b { display: block; font-family: var(--head); font-size: 1.5rem; color: #fff; }
.p-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 2rem 0 1.5rem; }
.row-item { display: flex; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.row-item img { width: 100px; height: 70px; object-fit: cover; border-radius: 8px; background: var(--navy); }
.row-item .grow { display: flex; flex-direction: column; }
.row-item a:hover b { color: var(--red); }
.status { display: inline-block; padding: .25rem .65rem; border-radius: 20px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.status.ok { background: rgba(22, 163, 74, .14); color: var(--green); }
.status.warn { background: rgba(217, 119, 6, .14); color: var(--amber); }
.status.bad { background: rgba(225, 29, 46, .12); color: var(--red); }
.msg { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.msg.unread { border-left: 4px solid var(--red); padding-left: 1rem; }
.msg-head { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: .2rem; }
.msg-head a { color: var(--navy-3); }
.msg-head .muted { margin-left: auto; }
.msg p { margin: .5rem 0; }

/* ----- Админ ----- */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2rem 0 4rem; align-items: start; }
.admin-nav { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem; position: sticky; top: 90px; display: flex; flex-direction: column; gap: .15rem; }
.admin-nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 10px; font-weight: 500; color: var(--muted); }
.admin-nav a:hover { background: var(--soft); color: var(--text); }
.admin-nav a.active { background: var(--navy); color: #fff; }
.admin-main h2 { margin-bottom: 1.4rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .2rem; transition: .2s; }
.stat-card:hover { border-color: var(--red); transform: translateY(-2px); }
.stat-card .ic { width: 28px; height: 28px; color: var(--red); margin-bottom: .4rem; }
.stat-card b { font-family: var(--head); font-size: 1.7rem; }
.stat-card span { color: var(--muted); font-size: .88rem; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; align-items: start; }
.admin-cols .panel { margin: 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: .6rem; border-bottom: 2px solid var(--border); white-space: nowrap; }
.table td { padding: .7rem .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: var(--soft); }
.table a:hover b { color: var(--red); }
.thumb { width: 64px; height: 46px; object-fit: cover; border-radius: 6px; background: var(--navy); }
.actions { white-space: nowrap; text-align: right; }
.actions > * { margin-left: .25rem; vertical-align: middle; }
.actions .icon-btn { width: 34px; height: 34px; }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.admin-gallery .ph { aspect-ratio: auto; background: var(--card); border: 1px solid var(--border); }
.admin-gallery .ph img { aspect-ratio: 4/3; height: auto; }
.admin-gallery .ph div { padding: .6rem .8rem; display: flex; flex-direction: column; font-size: .9rem; }
.admin-gallery small { color: var(--muted); }
.danger-zone { border-color: rgba(225, 29, 46, .4); }
.preview { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; background: var(--soft); }
.form label.file-btn { display: inline-flex; align-self: start; }

/* ----- Модал и обавештења ----- */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 12, 26, .65); z-index: 100; display: grid; place-items: center; padding: 1rem; animation: fade .2s; backdrop-filter: blur(3px); }
.modal { background: var(--card); border-radius: 18px; padding: 2rem; width: min(480px, 100%); max-height: 92vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); animation: pop .25s; border: 1px solid var(--border); }
.modal.wide { width: min(860px, 100%); }
.modal h3 { margin-bottom: 1rem; padding-right: 2rem; }
.modal-x { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); z-index: 2; }
#toasts { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 200; display: flex; flex-direction: column; gap: .5rem; max-width: calc(100vw - 2.4rem); }
.toast { display: flex; align-items: center; gap: .6rem; background: var(--navy); color: #fff; padding: .9rem 1.2rem; border-radius: 12px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--green); animation: pop .25s; transition: .4s; }
.toast.error { border-color: var(--red); }
.toast.out { opacity: 0; transform: translateX(30px); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ----- Подножје ----- */
footer { background: var(--navy); color: #c4d0e6; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer-grid h4 { color: #fff; margin-bottom: 1rem; font-family: var(--head); font-size: .95rem; }
.footer-grid > div > a:not(.logo) { display: block; padding: .25rem 0; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { margin: 1rem 0; font-size: .92rem; }
.footer-grid .social a { background: rgba(255, 255, 255, .08); }
.footer-grid .small { display: flex; gap: .4rem; align-items: center; }
.newsletter { display: flex; gap: .5rem; }
.newsletter input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }
.newsletter input::placeholder { color: #8fa3c7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.2rem 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .3s; z-index: 40; }
.to-top .ic { transform: rotate(90deg); }
.to-top.show { opacity: 1; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(24px); transition: .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, .reveal { transition: none !important; animation: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ----- Прилагођавање уређајима ----- */
@media (max-width: 1100px) {
  .search-box { grid-template-columns: 1fr 1fr 1fr; }
  .search-box > :first-child { grid-column: 1/-1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .burger { display: inline-grid; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--card); flex-direction: column; padding: 1rem; gap: .2rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .3s; z-index: -1; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { transform: none; }
  .nav a { padding: .85rem 1rem; }
  .nav a.active { background: var(--soft); }
  .nav a.active::after { display: none; }
  .nav .nav-cta { display: flex; margin-top: .5rem; }
  .hide-sm { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 980px) {
  .listing, .ad-layout, .article-layout, .post-layout, .contact-grid, .about-grid, .admin-wrap, .auth-wrap { grid-template-columns: 1fr; }
  .filters, .ad-side, .admin-nav { position: static; }
  #toggle-filters { display: inline-flex; }
  #filters-panel { display: none; }
  #filters-panel.open { display: block; }
  .admin-nav { flex-direction: row; overflow-x: auto; }
  .admin-nav a { white-space: nowrap; }
  .auth-side { display: none; }
  .verdict { grid-template-columns: 1fr 1fr; }
  .score { grid-column: 1/-1; }
}
@media (max-width: 640px) {
  .topbar-info a:not(:first-child), .nav-actions .btn.ghost span { display: none; }
  .navbar .container { gap: .6rem; }
  .logo { font-size: 1.15rem; }
  .stats-bar .container { grid-template-columns: 1fr 1fr; }
  .search-box { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-table.two { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; }
  .g-item:nth-child(5n+1) { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
  .list-view .ad-card { flex-direction: column; }
  .list-view .ad-card .card-img { width: 100%; }
  .list-view .ad-card .fav { left: auto; right: .7rem; }
  .p-stats { margin-left: 0; }
  .ad-price { font-size: 1.5rem; }
  .modal { padding: 1.4rem; }
  .grid, .grid.g3 { grid-template-columns: 1fr; }
}

@media print {
  .topbar, .navbar, footer, .ad-side, .share, .comments, .sidebar, .to-top, #toasts, .nav-arrow, .thumbs { display: none !important; }
  .ad-layout, .article-layout { grid-template-columns: 1fr; }
  body { background: #fff; color: #000; }
}

/* ===== Ауто плац, делови, сервис ===== */
/* Падајући мени „Магазин“ */
.nav-sub { position: relative; }
.nav-sub > button { display: inline-flex; align-items: center; gap: .25rem; padding: .55rem .8rem; border-radius: 8px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav-sub.active > button, .nav-sub > button:hover { color: var(--text); }
.nav-sub > div { position: absolute; top: 100%; left: 0; min-width: 180px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .4rem; display: none; z-index: 60; }
.nav-sub:hover > div, .nav-sub.open > div { display: block; }
.nav-sub > div a { display: block; }
.nav-sub > div a.active::after { display: none; }
.nav-sub > div a.active { background: var(--soft); }
@media (max-width: 1180px) {
  .nav-sub > button { padding: .85rem 1rem; width: 100%; justify-content: space-between; }
  .nav-sub > div { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 1rem; }
}

.badge.green { background: var(--green); }
.kicker { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; display: block; margin-bottom: .3rem; }

/* Три дела фирме на почетној */
.divisions { margin-top: -3.5rem; position: relative; z-index: 2; }
.divisions .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.division { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: .6rem; transition: .25s; border-top: 4px solid var(--red); }
.division:hover { transform: translateY(-4px); }
.div-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.div-ic .ic { width: 28px; height: 28px; }
.division p { color: var(--muted); font-size: .95rem; }
.div-more { margin-top: auto; color: var(--red); font-weight: 600; font-size: .92rem; }

.service-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.service-band h2 { margin-bottom: .8rem; }
.price-list { list-style: none; margin: 1.4rem 0; border-top: 1px solid var(--border); }
.price-list li { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.price-list li .ic { color: var(--red); }
.price-list li span { flex: 1; font-weight: 500; }

/* Трака са предностима */
.perks-bar { background: var(--card); border-bottom: 1px solid var(--border); }
.perks-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.2rem 0; }
.perks-bar div { display: flex; gap: .8rem; align-items: center; }
.perks-bar .ic { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: rgba(225, 29, 46, .1); color: var(--red); }
.perks-bar span { display: flex; flex-direction: column; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.perks-bar b { color: var(--text); font-size: .92rem; }

/* Продавница делова */
.part-img { aspect-ratio: 16/9; display: grid; place-items: center; background: linear-gradient(135deg, var(--soft), var(--card)); border-bottom: 1px solid var(--border); }
.part-ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: #fff; }
.part-ic .ic { width: 42px; height: 42px; }
.part-ic.sm { width: 52px; height: 52px; flex-shrink: 0; } .part-ic.sm .ic { width: 26px; height: 26px; }
.part-card .card-body { gap: .35rem; }
.part-card .price { font-size: 1.05rem; }
.stock { font-size: .8rem; font-weight: 700; }
.stock.ok { color: var(--green); } .stock.bad { color: var(--red); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.slots p { grid-column: 1/-1; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .7rem; margin-bottom: 1.5rem; }
.cat-btn { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1rem .5rem; border-radius: 14px; border: 1px solid var(--border); background: var(--card); font-weight: 600; font-size: .85rem; transition: .2s; text-align: center; }
.cat-btn .ic { width: 28px; height: 28px; color: var(--red); }
.cat-btn small { color: var(--muted); font-weight: 400; }
.cat-btn:hover { border-color: var(--navy-3); }
.cat-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-btn.active .ic, .cat-btn.active small { color: #fff; }
.order-sum { display: flex; gap: 1rem; align-items: center; background: var(--soft); padding: 1rem; border-radius: 12px; margin-bottom: 1rem; }
.order-sum div { display: flex; flex-direction: column; }
.total { text-align: right; font-size: 1.05rem; }
.total b { color: var(--red); font-family: var(--head); font-size: 1.3rem; margin-left: .4rem; }
.done-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 1rem 0; }
.done-box > .ic { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--green); color: #fff; }

/* Сервис */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.svc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; transition: .2s; }
.svc:hover { border-color: var(--red); box-shadow: var(--shadow); }
.svc-ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: rgba(225, 29, 46, .1); color: var(--red); }
.svc-ic .ic { width: 26px; height: 26px; }
.svc h3 { font-size: 1rem; }
.svc p { font-size: .9rem; }
.svc-foot { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--border); }
.svc-foot div { display: flex; flex-direction: column; }
.svc-foot b { color: var(--red); }
.svc-foot span { display: inline-flex; gap: .3rem; align-items: center; }
.booking { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.booking .panel { margin: 0 0 1.5rem; }
.label { font-weight: 600; font-size: .9rem; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: .4rem; margin-top: .35rem; }
.slot { padding: .55rem 0; border-radius: 8px; border: 1.5px solid var(--border); font-weight: 600; font-size: .88rem; background: var(--card); }
.slot:hover:not(:disabled) { border-color: var(--navy-3); }
.slot.active { background: var(--red); border-color: var(--red); color: #fff; }
.slot:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.booking-done { display: flex; gap: .8rem; align-items: start; }
.booking-done .ic { color: var(--green); width: 24px; height: 24px; }
.steps { padding-left: 1.2rem; display: grid; gap: .8rem; }
.steps li { display: flex; flex-direction: column; }
.steps li::marker { color: var(--red); font-weight: 700; }

/* Плац на детаљима огласа */
.lot-head { display: flex; gap: .8rem; align-items: center; }
.lot-head div { display: flex; flex-direction: column; }
.perks { list-style: none; display: grid; gap: .45rem; font-size: .92rem; }
.perks li { display: flex; gap: .5rem; align-items: center; }
.perks .ic { color: var(--green); }

/* Админ: статус као падајући мени */
.status-sel { width: auto; padding: .35rem .6rem; font-size: .82rem; font-weight: 600; border-radius: 20px; }
.status-sel.s-new { border-color: var(--amber); color: var(--amber); }
.status-sel.s-confirmed, .status-sel.s-sent { border-color: var(--navy-3); }
.status-sel.s-done { border-color: var(--green); color: var(--green); }
.status-sel.s-cancelled { border-color: var(--red); color: var(--red); }

@media (max-width: 980px) {
  .divisions .container, .service-band, .booking { grid-template-columns: 1fr; }
  .perks-bar .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .divisions { margin-top: -2rem; }
  .perks-bar .container { grid-template-columns: 1fr; }
  .search-box { grid-template-columns: 1fr; }
}

/* Деценије и возила за делове */
.badge.dark { background: #111827; }
.decade-pills { margin: -1rem 0 1.5rem; }
.pill.red { border-color: var(--red); color: var(--red); }
.pill.red:hover { background: var(--red); color: #fff; }
@media (max-width: 1440px) { .user-btn span { display: none; } .nav a, .nav-sub > button { padding-inline: .65rem; } }
#home-plac { transition: opacity .35s; }
#home-plac.fade { opacity: 0; }

/* VIN */
.vin-input { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, Consolas, monospace; }
#vin-hint, #svc-vin-hint { display: block; margin-top: .3rem; font-weight: 500; }
#vin-hint.bad { color: var(--red); }
.vin-box { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.vin-box > div { display: flex; flex-direction: column; }
.vin-result { display: flex; align-items: center; gap: .6rem; }
.vin-result .ic { color: var(--green); }
.vin-result button { margin-left: auto; }
@media (max-width: 760px) { .vin-box { grid-template-columns: 1fr; } }
/* Слике делова: цео производ на белој позадини */
.part-img { background: #fff; }
.part-img img { position: absolute; inset: 0; object-fit: contain; padding: 10px; }

/* ===================== LIQUID GLASS ===================== */
:root {
  --glass: rgba(255, 255, 255, .6); --glass-strong: rgba(255, 255, 255, .82); --glass-edge: rgba(255, 255, 255, .7);
  --glass-blur: blur(20px) saturate(180%);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(255, 255, 255, .18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --glass: rgba(15, 27, 51, .55); --glass-strong: rgba(15, 27, 51, .8); --glass-edge: rgba(255, 255, 255, .12); --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .12); }
}
:root[data-theme="dark"] { --glass: rgba(15, 27, 51, .55); --glass-strong: rgba(15, 27, 51, .8); --glass-edge: rgba(255, 255, 255, .12); --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .12); }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* мени: стакло на псеудо-елементу, да падајући мени испод може да има своје стакло */
  .navbar { background: transparent; border-bottom-color: var(--glass-edge); }
  .navbar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-hi); }
  .dropdown-menu, .nav-sub > div, .modal, .division {
    background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border-color: var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-lg);
  }
  @media (max-width: 1180px) { .nav { background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); } }
  .search-box { background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 24px 60px rgba(0, 0, 0, .35); }
  .badge { -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); background: rgba(11, 29, 58, .62); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
  .badge.red { background: rgba(225, 29, 46, .8); } .badge.green { background: rgba(22, 163, 74, .8); } .badge.dark { background: rgba(17, 24, 39, .62); }
  .fav, .nav-arrow, .modal-x { background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .65); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 18px rgba(0, 0, 0, .15); }
  .img-count, .toast { -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
  .img-count { background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .2); }
  .toast { background: rgba(11, 29, 58, .72); border-top: 1px solid rgba(255, 255, 255, .15); border-right: 1px solid rgba(255, 255, 255, .08); }
  .modal-bg { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(5, 12, 26, .45); }
  .page-hero .crumbs, .hero .eyebrow { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}

/* „течни“ сјај на дугмадима и прелаз светла преко картица */
.btn:not(.ghost) { background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 58%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 18px -8px rgba(11, 29, 58, .6); }
.btn.red:not(.ghost), .to-top { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 22px -8px rgba(225, 29, 46, .7); }
.card::after { content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transition: transform .9s ease; }
.card:hover::after { transform: translateX(120%); }

@media (prefers-reduced-transparency: reduce) {
  :root, :root[data-theme="dark"] { --glass: var(--card); --glass-strong: var(--card); }
  .search-box { background: var(--card); }
}

/* ===================== ПРЕЛАЗ ИЗМЕЂУ СТРАНА ===================== */
/* Слајд лево/десно са замућењем: стара страна оде у једну страну, нова дође са друге (смер прати мени). */
#view { view-transition-name: page; }
::view-transition-old(root), ::view-transition-new(root), ::view-transition-group(page) { animation: none; }
::view-transition-old(page) { animation: slide-out .6s cubic-bezier(.65, 0, .35, 1) both; }
::view-transition-new(page) { animation: slide-in .6s cubic-bezier(.65, 0, .35, 1) both; }
:root[data-dir="back"]::view-transition-old(page) { animation-name: slide-out-back; }
:root[data-dir="back"]::view-transition-new(page) { animation-name: slide-in-back; }
@keyframes slide-out { to { transform: translateX(-22%); opacity: 0; filter: blur(14px); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } }
@keyframes slide-in { from { transform: translateX(22%); opacity: 0; filter: blur(14px); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } }
@keyframes slide-out-back { to { transform: translateX(22%); opacity: 0; filter: blur(14px); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } }
@keyframes slide-in-back { from { transform: translateX(-22%); opacity: 0; filter: blur(14px); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } }
/* меке ивице: у мировању су прелази маске ван стране (125%), а током клизања ивице избледе — без видљиве линије */
::view-transition-old(page), ::view-transition-new(page) {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-size: 125% 100%; mask-size: 125% 100%; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* прегледачи без View Transitions: нова страна само склизне */
@supports not (view-transition-name: none) { #view { animation: slide-in .5s cubic-bezier(.22, 1, .36, 1) both; } :root[data-dir="back"] #view { animation-name: slide-in-back; } }
html, body { overflow-x: clip; }

/* црвена трака напретка на врху екрана */
#route-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300; pointer-events: none;
  background: linear-gradient(90deg, var(--red), #ff6b6b); box-shadow: 0 0 12px rgba(225, 29, 46, .8); opacity: 0; }
#route-bar.go { animation: route-bar .8s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes route-bar { 0% { width: 0; opacity: 1; } 70% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  #view, #route-bar.go { animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
.modal-bg.dark .modal { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }

/* 3D приказ возила (Sketchfab) */
.badge.b3d { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.btn-3d { position: absolute; left: .8rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 30px; font-weight: 700; font-size: .85rem;
  color: #fff; background: rgba(11, 29, 58, .55); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); border: 1px solid rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-3d:hover { background: rgba(225, 29, 46, .85); }
.model3d .m3d-head { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1rem; }
.model3d h3 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.m3d-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1d3a6b, #070f1e); display: grid; place-items: center; margin-bottom: .8rem; }
.m3d-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: blur(1px); }
.m3d-frame .btn { position: relative; padding: 1rem 1.6rem; font-size: 1rem; }
.m3d-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.model3d a { color: var(--red); font-weight: 600; }
/* горња трака Sketchfab прегледача (назив и аутор) је ван видљивог дела — аутор и линк остају испод прегледача */
.m3d-frame iframe { top: -64px; height: calc(100% + 64px); }

/* Филтери: на рачунару панел прати страну и има свој скрол — точкић миша изнад филтера скролује филтере */
@media (min-width: 981px) {
  .filters { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border) transparent; padding-right: 4px; border-radius: var(--radius); }
  .filters::-webkit-scrollbar { width: 6px; }
  .filters::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
  .filters .panel { margin-bottom: 0; }
}

/* Налог: мерило лозинке, провера поља, слика профила */
.pw-meter { display: block; height: 6px; border-radius: 6px; background: var(--soft); margin-top: .45rem; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .3s, background .3s; }
.pw-meter[data-s="0"] i { width: 12%; background: #dc2626; } .pw-meter[data-s="1"] i { width: 30%; background: #ea580c; }
.pw-meter[data-s="2"] i { width: 55%; background: #d97706; } .pw-meter[data-s="3"] i { width: 80%; background: #16a34a; }
.pw-meter[data-s="4"] i { width: 100%; background: #15803d; }
.pw-label { display: block; margin-top: .25rem; font-weight: 500; color: var(--muted); font-size: .8rem; }
.field-msg { display: block; margin-top: .3rem; color: var(--red); font-size: .8rem; font-weight: 500; }
.field-msg:empty { display: none; }
input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 29, 46, .12); }
input.ok { border-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; padding-right: 2.4rem; }
.pass-wrap input.ok { background-position: right 2.6rem center; padding-right: 4.2rem; }
.auth-row { justify-content: space-between; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar { overflow: hidden; }
.avatar.big { width: 84px; height: 84px; font-size: 2rem; }
.avatar.xs { width: 22px; height: 22px; font-size: .7rem; }
.avatar-edit { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
