/* Samochody.opchnij.com - skin sklepu motoryzacyjnego.
   Bialo-czerwony styl z czarnym paskiem nawigacji, plaskimi listami kategorii
   i ciemna stopka. */
:where(.logout-button) { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; cursor: pointer; text-decoration: none; }
.logout-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

:root {
    --ink: #14141e;
    --ink2: #44454f;
    --red: #e2231a;
    --red-d: #b91910;
    --red-soft: #fdeceb;
    --muted: #8b8f99;
    --line: #e7e8ec;
    --line2: #f0f1f4;
    --bg: #f2f3f5;
    --dark: #1a1a1a;
    --radius: 14px;
    --shadow: 0 6px 22px rgba(20, 20, 30, .08);
}
* { box-sizing: border-box; }
body {
    margin: 0; color: var(--ink); line-height: 1.5; background: var(--bg);
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.am-page { max-width: none; width: 100%; margin: 0; background: var(--bg); }
.muted { color: var(--muted); }

/* ===== Pasek gorny ===== */
.am-top {
    background: #fff; color: var(--ink); display: flex; align-items: center; gap: 18px;
    padding: 14px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.am-logo { font-weight: 900; font-size: 1.45rem; letter-spacing: .5px; white-space: nowrap; color: var(--ink); line-height: 1.15; }
.am-logo .o { color: var(--red); }
.am-tagline { display: block; font-size: .68rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .5px; }
.am-phone { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink); font-weight: 800; }
.am-phone .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--red-soft); color: var(--red);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.am-phone small { display: block; color: var(--muted); font-weight: 600; font-size: .68rem; text-transform: uppercase; }
.am-search { flex: 1; display: flex; max-width: 600px; margin: 0 auto;
    border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.am-search input { flex: 1; border: none; padding: 10px 16px; outline: none; font-size: .95rem; background: transparent; }
.am-search button { border: none; background: var(--red); color: #fff; padding: 0 20px; cursor: pointer; font-size: 1rem; }
.am-search button:hover { background: var(--red-d); }
.am-icons { display: flex; gap: 12px; align-items: center; font-size: 1.15rem; }
.am-icons .am-ic { position: relative; color: var(--ink2); width: 40px; height: 40px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 10px; }
.am-icons .am-ic:hover { background: var(--red-soft); color: var(--red); }
.am-icons .am-text { width: auto; padding: 0 14px; font-size: .8rem; font-weight: 800; text-transform: uppercase;
    border: 1px solid var(--line); }
.am-icons .am-text:hover { border-color: var(--red); color: var(--red); background: #fff; }
.am-icons .am-logout { width: auto; padding: 0 14px; border: 1px solid var(--line);
    font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.am-icons .am-logout i { display: none; }
.am-icons .am-logout:hover { border-color: var(--red); color: var(--red); background: #fff; }
.am-icons .am-badge { position: absolute; top: -2px; right: -2px; background: var(--red); color: #fff;
    font-size: .62rem; font-weight: 700; border-radius: 10px; padding: 1px 5px; }
.am-icons .am-cta { border: none; border-radius: 999px; background: var(--red); color: #fff; }
.am-icons .am-cta:hover { background: var(--red-d); color: #fff; }

/* ===== Pasek zaufania (sekcja na stronie glownej) ===== */
.am-trust { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex;
    flex-wrap: wrap; gap: 10px 26px; justify-content: center; padding: 14px 20px; margin: 16px 0;
    font-size: .8rem; font-weight: 700; color: var(--ink2); }
.am-trust span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.am-trust .ic { font-size: 1.05rem; color: var(--red); }

/* ===== Pasek nawigacji kategorii ===== */
.am-nav { background: var(--dark); display: flex; align-items: stretch; padding: 0 14px; gap: 4px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; position: sticky; top: 69px; z-index: 19; }
.am-nav::-webkit-scrollbar { height: 0; }
.am-nav a { color: #e4e4e7; font-size: .78rem; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
    padding: 14px 13px 12px; white-space: nowrap; border-bottom: 3px solid transparent; }
.am-nav a:hover { color: #fff; }
.am-nav a.active { color: #fff; border-bottom-color: var(--red); }
.am-nav .home { font-size: 1rem; }
.am-nav .promo { margin-left: auto; color: #fff; font-weight: 900; background: var(--red); border-radius: 999px;
    padding: 6px 14px; align-self: center; }
.am-nav .promo:hover { background: var(--red-d); }
.am-nav .buy-request { color: #fff; border-bottom-color: var(--red); }

/* ===== Baner "Znajdz czesci" (czarny, 3-krokowy: marka -> model -> wersja silnikowa) ===== */
.am-finder { background: var(--dark); color: #fff; border-radius: var(--radius); margin: 20px 0;
    padding: 22px 28px; display: flex; flex-direction: column; gap: 16px; }
.am-finder-head b { font-size: 1.05rem; font-weight: 900; }
.am-finder-form { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.am-finder-steps { flex: 1 1 100%; }
.am-step { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; }
.am-step-part { flex: 1 1 320px; margin-left: 40px; }
.am-step-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #55555f;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; color: #fff; }
.am-finder-form select { flex: 1 1 auto; min-width: 0; min-height: 44px;
    border: 1px solid #3a3a42; border-radius: 9px; background: #fff; color: #14141e; padding: 0 12px; font-size: .88rem; }
.am-finder-form select option { color: #14141e; }
.am-finder-form optgroup { color: #52525b; font-weight: 900; }
.am-finder-form button { flex-shrink: 0; border: none; min-height: 44px; padding: 0 26px; border-radius: 9px;
    background: var(--red); color: #fff; font-weight: 800; cursor: pointer; }
.am-finder-form button:hover { background: var(--red-d); }
.am-finder-note { margin: 0; color: #8d8d95; font-size: .74rem; }

/* ===== Kafelki kategorii (landing) - plaski styl list, bez ramek kart ===== */
/* min-width:0 na kazdym poziomie flex/grid ponizej: bez tego elementy z
   white-space:nowrap (nazwy kategorii) maja domyslnie min-width:auto rowny
   pelnej (nie zawinietej) szerokosci tekstu, wiec kafelek/siatka rozpycha sie
   poza ekran na mobile zamiast obcinac tekst elipsa. */
.am-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; margin: 0 0 26px; min-width: 0; }
.am-tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.am-tile-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.am-tile .ic { font-size: 1.4rem; width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center;
    justify-content: center; background: var(--red-soft); border-radius: 10px; }
.am-tile .tx { display: flex; flex-direction: column; min-width: 0; }
.am-tile .tx b { font-size: .96rem; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-tile .tx small { color: var(--muted); font-size: .76rem; }
.am-tile-subs { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.am-tile-subs a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0;
    font-size: .84rem; color: var(--ink2); }
.am-tile-subs a span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.am-tile-subs a .cnt { color: var(--muted); font-size: .78rem; flex-shrink: 0; }
.am-tile-subs a:hover { color: var(--red); }
.am-tile-subs a:hover .cnt { color: var(--red); }
.am-tile-more { font-size: .8rem; font-weight: 800; color: var(--red); margin-top: 2px; }
.am-tile-more:hover { color: var(--red-d); }

/* ===== Body: sidebar + main ===== */
.am-body { display: grid; grid-template-columns: 250px 1fr; gap: 20px; padding: 20px 22px 8px; }
.am-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; align-self: start; }
.am-side h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
    padding-bottom: 8px; margin: 0 0 10px; border-bottom: 1px solid var(--line2); }
.am-side h3 + h3 { margin-top: 18px; }
.am-news { margin-bottom: 12px; }
.am-news b { display: block; font-size: .85rem; }
.am-news span { font-size: .78rem; color: var(--muted); }
.am-cats { display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; }
/* Lisc kategorii / link wewnatrz naglowka */
.am-cat-leaf, .am-cat-link {
    flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px;
    border-radius: 9px; padding: 8px 10px; color: var(--ink2); font-size: .85rem; font-weight: 700;
}
.am-cat-leaf:hover, .am-cat-link:hover { background: var(--red-soft); color: var(--red); }
.am-cat-leaf.active { background: var(--red); color: #fff; }
.am-cat-leaf.active .cat-count, .am-cat-leaf.active .cat-count-active { color: #fff; }
/* Wezel zwijany (details/summary) */
.am-cat-node { display: block; }
.am-cat-sum { display: flex; align-items: center; gap: 2px; cursor: pointer; list-style: none; border-radius: 9px; }
.am-cat-sum::-webkit-details-marker { display: none; }
.am-cat-sum .am-cat-link { font-weight: 800; color: var(--ink); }
.am-cat-sum.active .am-cat-link { color: var(--red); }
.am-cat-toggle { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.am-cat-toggle::before { content: "+"; font-size: 1rem; font-weight: 900; line-height: 1; }
.am-cat-node[open] > .am-cat-sum .am-cat-toggle::before { content: "\2212"; }
.am-cat-sum:hover .am-cat-toggle { border-color: var(--red); color: var(--red); }
/* Poddrzewo (wciecie + ewentualny scroll dla dlugich list, np. marek) */
.am-subtree { margin-left: 10px; padding-left: 8px; border-left: 1px solid var(--line2); }
.am-subtree-scroll { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.cat-count { color: var(--muted); font-weight: 700; font-size: .78rem; }
.cat-count-active { color: #16a34a; font-weight: 900; }
.am-main { min-width: 0; }

/* ===== Hero ===== */
.am-hero { position: relative; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(110deg, #241f1f 0%, #3a1210 55%, var(--red-d) 100%);
    min-height: 200px; display: flex; align-items: center; padding: 30px 36px; }
.am-hero .htxt { position: relative; z-index: 2; }
.am-hero .big { color: #fff; font-size: 2.4rem; font-weight: 900; line-height: 1.05; }
.am-hero .big em { color: #ffb4ae; font-style: normal; }
.am-hero .cta { display: inline-block; margin-top: 16px; background: #fff; color: var(--red-d); font-weight: 800;
    padding: 12px 26px; border-radius: 12px; letter-spacing: .3px; }
.am-hero .cta:hover { background: #ffe9e7; }
.am-hero .gear { position: absolute; right: 28px; bottom: -26px; font-size: 12rem; opacity: .12; color: #fff; z-index: 1; }

/* ===== Sekcja produktow ===== */
.am-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 14px; }
.am-sec-head h2 { font-size: 1.25rem; font-weight: 900; margin: 0; color: var(--ink); }
.am-tools { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.am-tools .pg { border: 1px solid var(--line); border-radius: 9px; padding: 5px 11px; color: var(--ink2); background: #fff; }
.am-tools .pg:hover { border-color: var(--red); color: var(--red); }
.am-tools .pg.on { background: var(--red); color: #fff; border-color: var(--red); }

.am-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.am-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
    display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s, border-color .15s; }
.am-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #dfe1e6; }
.am-thumb { height: 170px; background: linear-gradient(135deg, #f7f8fa, #eceef1); display: flex; align-items: center;
    justify-content: center; overflow: hidden; }
.am-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-thumb .gear { font-size: 3rem; color: #ccd0d6; }
.am-cbody { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.am-name { font-weight: 600; font-size: .92rem; min-height: 2.5em; color: var(--ink); }
.am-name:hover { color: var(--red); }
.am-price { font-weight: 900; font-size: 1.2rem; color: var(--ink); }
.am-price small { color: var(--red); font-size: .72rem; font-weight: 900; vertical-align: middle; }
.am-add { margin-top: auto; background: var(--red); color: #fff; text-align: center; font-weight: 800;
    padding: 10px; border-radius: 10px; font-size: .82rem; letter-spacing: .3px; }
.am-add:hover { background: var(--red-d); }
.am-empty { padding: 48px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line);
    border-radius: var(--radius); }

/* ===== Seller picker ===== */
.shop-seller-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.shop-seller-picker label { font-weight: 800; color: var(--ink); }
.shop-seller-tools { width: 100%; }
.shop-seller-picker { max-width: 100%; }
.shop-seller-picker select { flex: 1 1 220px; min-width: 0; max-width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; padding: 0 12px; }
.shop-seller-picker button, .shop-seller-picker a { display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; border: 1px solid var(--red); border-radius: 10px; background: var(--red); color: #fff;
    padding: 0 15px; font-weight: 800; cursor: pointer; }
.shop-seller-picker a { background: #fff; color: var(--red); }

/* ===== Widok produktu ===== */
.am-listing { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; padding: 20px 22px; }
.am-listing .big-img { height: 360px; border-radius: var(--radius); background: linear-gradient(135deg, #f7f8fa, #eceef1);
    display: flex; align-items: center; justify-content: center; overflow: hidden; }
.am-media { min-width: 0; }
.am-main-photo { width: 100%; height: 100%; display: block; }
.am-listing .big-img img { width: 100%; height: 100%; object-fit: contain; display: block; background: #f7f8fa; }
.am-listing .big-img .gear { font-size: 5rem; color: #ccd0d6; }
.am-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; margin-top: 10px; }
.am-thumbs a { display: block; height: 74px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f7f8fa; }
.am-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-thumbs a:hover { border-color: var(--red); }
.am-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 22px; }
.am-lightbox:target { display: flex; }
.am-lightbox-bg { position: absolute; inset: 0; background: rgba(17, 24, 39, .82); }
.am-lightbox figure { position: relative; z-index: 1; width: min(1120px, 96vw); max-height: 92vh; margin: 0;
    border-radius: 14px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.35); overflow: hidden; }
.am-lightbox figure img { display: block; width: 100%; max-height: 92vh; object-fit: contain; background: #111827; }
.am-lightbox-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: rgba(17,24,39,.86); color: #fff; font-size: 1.6rem;
    line-height: 1; font-weight: 700; }
.am-lightbox-close:hover { background: var(--red); color: #fff; }
.am-listing h1 { margin: 0 0 6px; }
.am-listing .price { font-size: 2rem; font-weight: 900; color: var(--ink); margin: 12px 0; }
.am-listing .desc { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.am-spec-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 16px; font-size: .92rem; }
.am-spec-list dt { color: var(--muted); font-weight: 600; }
.am-spec-list dd { margin: 0; font-weight: 600; }
.am-crumbs { padding: 14px 22px 0; }
.am-crumbs a { color: var(--red); font-weight: 600; }

.listing-message-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
    padding: 0 20px; border: 1px solid #f7c9c6; border-radius: 10px; background: var(--red-soft); color: var(--red-d);
    font-weight: 900; }
.listing-message-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

.listing-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.listing-badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 10px; border-radius: 8px;
    font-size: .72rem; font-weight: 900; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.listing-badge-compact { margin-left: 6px; padding: 2px 8px; font-size: .66rem; vertical-align: middle; }
.listing-badge-demo { border: 1px solid #f7c9c6; background: var(--red-soft); color: var(--red-d); }
.listing-badge-sold { background: var(--dark); color: #fff; }
.listing-badge-reserved { background: #0f766e; color: #fff; }
.listing-badge-stale { border: 1px solid rgba(107, 114, 128, .3); background: rgba(107, 114, 128, .08); color: #9ca3af; text-transform: none; letter-spacing: 0; opacity: 0.75; }
.listing-badge-views { border: 1px solid #abefc6; background: #ecfdf3; color: #067647; text-transform: none; letter-spacing: 0; }

/* ===== Footer ===== */
.am-foot { background: var(--dark); color: #c6c6ce; padding: 30px 24px; margin-top: 22px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: .85rem; }
.am-foot a { color: #c6c6ce; }
.am-foot a:hover { color: #fff; }
.sub-footer-signature { display: inline-block; color: #8d8d95; font-size: .8rem; }
.sub-footer-signature a { color: var(--red); font-weight: 800; }

/* ===== Kupie auto: publiczne zapytanie i formularz propozycji ===== */
.op-form-trap { position: absolute !important; left: -10000px !important; top: auto !important;
    width: 1px !important; height: 1px !important; overflow: hidden !important; }
.vb-page { width: min(1180px, calc(100% - 40px)); margin: 28px auto 56px; }
.vb-flash { margin: 0 0 18px; padding: 14px 18px; border: 1px solid #bfdbfe; border-radius: 12px;
    background: #eff6ff; color: #1e40af; font-weight: 750; }
.vb-flash.success { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.vb-flash.error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.vb-campaign-banner { margin: 0 0 22px; overflow: hidden; border-radius: 22px; background: #071a31;
    box-shadow: 0 22px 55px rgba(15,23,42,.2); }
.vb-campaign-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1823 / 863; object-fit: cover; }
.vb-kicker { display: inline-flex; margin-bottom: 10px; color: var(--red); font-size: .76rem; font-weight: 950;
    letter-spacing: .1em; text-transform: uppercase; }
.vb-landing { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    align-items: center; gap: 56px; padding: 56px; border-radius: 24px; overflow: hidden;
    background: radial-gradient(circle at 90% 10%, rgba(226,35,26,.2), transparent 36%), #17171d; color: #fff;
    box-shadow: 0 24px 70px rgba(20,20,30,.18); }
.vb-landing h1, .vb-request-hero h1 { margin: 0 0 16px; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.04em; }
.vb-landing-copy > p { max-width: 680px; margin: 0 0 25px; color: #c9c9d1; font-size: 1.08rem; line-height: 1.7; }
.vb-steps { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.vb-steps span { display: flex; align-items: center; gap: 8px; color: #e5e5ea; font-size: .86rem; font-weight: 750; }
.vb-steps b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
.vb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
    border: 0; border-radius: 11px; font: inherit; font-weight: 900; cursor: pointer; }
.vb-btn.primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(226,35,26,.25); }
.vb-btn.primary:hover { background: var(--red-d); color: #fff; transform: translateY(-1px); }
.vb-landing-card { align-self: center; padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px;
    background: rgba(255,255,255,.07); backdrop-filter: blur(12px); box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.vb-car-shape { font-size: 5rem; filter: drop-shadow(0 16px 20px rgba(0,0,0,.35)); }
.vb-landing-card > strong { display: block; font-size: 1.7rem; }
.vb-landing-card > span { color: #aaaab4; }
.vb-mini-offer { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 13px;
    border-radius: 13px; background: rgba(255,255,255,.08); color: #d7d7dd; font-size: .8rem; }
.vb-mini-offer i { width: 44px; height: 38px; flex: 0 0 auto; border-radius: 9px;
    background: linear-gradient(135deg, #71717a, #27272a); }
.vb-mini-offer b { display: block; color: #fff; font-size: .88rem; }
.vb-request-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 36px;
    padding: 42px; border-radius: 22px; background: #17171d; color: #fff; box-shadow: var(--shadow); }
.vb-request-hero h1 { max-width: 780px; font-size: clamp(2rem, 4.8vw, 3.4rem); }
.vb-request-hero p { max-width: 760px; margin: 0; color: #c9c9d1; line-height: 1.7; white-space: normal; }
.vb-request-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.vb-request-facts div { min-width: 0; padding: 14px; border: 1px solid #34343d; border-radius: 12px; background: #222229; }
.vb-request-facts small { display: block; color: #92929e; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.vb-request-facts strong { display: block; margin-top: 3px; color: #fff; overflow-wrap: anywhere; }
.vb-form-wrap { margin-top: 22px; padding: 34px 40px 42px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.vb-form-wrap > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.vb-form-wrap h2 { margin: 0 0 8px; font-size: 1.8rem; letter-spacing: -.025em; }
.vb-form-wrap header p { margin: 0; color: var(--ink2); }
.vb-secure { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: .78rem; font-weight: 850; }
.vb-form fieldset { min-width: 0; margin: 0; padding: 28px 0; border: 0; border-bottom: 1px solid var(--line); }
.vb-form fieldset:last-child { padding-bottom: 0; border-bottom: 0; }
.vb-form legend { width: 100%; margin-bottom: 18px; color: var(--ink); font-size: 1.08rem; font-weight: 950; }
.vb-form legend span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px;
    border-radius: 9px; background: var(--red); color: #fff; font-size: .86rem; }
.vb-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.vb-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vb-form label { display: flex; flex-direction: column; gap: 7px; color: #353640; font-size: .82rem; font-weight: 850; }
.vb-form label > span { color: var(--muted); font-weight: 650; }
.vb-form label em { color: var(--red); font-style: normal; }
.vb-form input, .vb-form select, .vb-form textarea { width: 100%; min-height: 46px; border: 1px solid #d7d8de; border-radius: 10px;
    padding: 10px 12px; background: #fff; color: var(--ink); font: inherit; outline: 0; }
.vb-form textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.vb-form input:focus, .vb-form select:focus, .vb-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,35,26,.1); }
.vb-check { flex-direction: row !important; align-items: flex-start; gap: 11px !important; margin-top: 12px; cursor: pointer; }
.vb-check input { width: 19px; min-height: 19px; height: 19px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--red); }
.vb-check span { color: var(--ink2) !important; line-height: 1.5; }
.vb-check span small { display: block; margin-top: 4px; color: var(--muted); }
.vb-check a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.vb-check.featured { padding: 16px; border: 1px solid #f7c9c6; border-radius: 12px; background: var(--red-soft); }
.vb-check.featured span { color: var(--ink) !important; }
.vb-upload { align-items: center; justify-content: center; min-height: 150px; padding: 24px; border: 2px dashed #c9cad1;
    border-radius: 14px; background: #fafafa; text-align: center; cursor: pointer; }
.vb-upload:hover { border-color: var(--red); background: var(--red-soft); }
.vb-upload input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; }
.vb-upload b { color: var(--red); font-size: 1rem; }
.vb-upload span { font-size: .76rem; }
.vb-previews { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.vb-previews span { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.vb-previews img { width: 100%; height: 90px; object-fit: cover; }
.vb-previews small { display: block; padding: 6px 8px; overflow: hidden; color: var(--muted); font-size: .68rem; white-space: nowrap; text-overflow: ellipsis; }
.vb-consents .submit { width: 100%; margin-top: 22px; min-height: 54px; font-size: 1rem; }
.vb-success { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 30px; border: 1px solid #a7f3d0;
    border-radius: 18px; background: #ecfdf5; color: #065f46; }
.vb-success > span { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%; background: #059669; color: #fff; font-size: 1.7rem; }
.vb-success h2, .vb-success p { margin: 0; }
.vb-progress { position: relative; height: 6px; background: #e7e8ec; border-radius: 3px; margin: 0 0 24px; overflow: hidden; }
.vb-progress-bar { height: 100%; background: var(--red); transition: width .3s ease; }
.vb-progress-text { position: absolute; top: 50%; right: 0; transform: translateY(-50%); margin-right: 12px; font-size: .75rem; font-weight: 800; color: var(--red); }
.vb-nav { margin-top: 24px; padding-top: 0 !important; border-top: 0 !important; display: flex; gap: 12px; }
.vb-nav .submit { flex: 1; min-height: 52px; font-size: .95rem; }
.vb-nav .vb-btn { flex: 1; }
.vb-form label em { color: #dc2626; font-weight: 900; font-style: normal; }
.vb-form label span { color: #9ca3af; font-weight: 600; font-size: .8rem; }
.vb-form input[required], .vb-form select[required], .vb-form textarea[required] {
    border-color: #fecaca;
    background-color: #fef2f2;
}
.vb-form input[required]:focus, .vb-form select[required]:focus, .vb-form textarea[required]:focus {
    border-color: #dc2626;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.vb-form input:not([required]), .vb-form select:not([required]), .vb-form textarea:not([required]) {
    border-color: #d1d5db;
    background-color: #f9fafb;
}
.vb-form input:not([required]):focus, .vb-form select:not([required]):focus, .vb-form textarea:not([required]):focus {
    border-color: #9ca3af;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

/* ===== Sekcja "Szukamy samochodów" na home ===== */
.am-buy-request-banner { margin: 20px 0; padding: 32px; border-radius: var(--radius); background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.am-buy-request-content { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.am-buy-request-content > div { display: flex; flex-direction: column; gap: 12px; }
.am-kicker { display: inline-block; font-size: .74rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; width: fit-content; }
.am-buy-request-banner h2 { margin: 0; font-size: 1.8rem; font-weight: 900; line-height: 1.15; }
.am-buy-request-banner p { margin: 0; color: #c9c9d1; line-height: 1.6; max-width: 450px; font-size: .95rem; }
.am-cta-buy { display: inline-flex; align-items: center; margin-top: 12px; background: var(--red); color: #fff; padding: 12px 24px; border-radius: 10px; font-weight: 900; font-size: .9rem; width: fit-content; box-shadow: 0 8px 20px rgba(226,35,26,.25); transition: all .2s; }
.am-cta-buy:hover { background: var(--red-d); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(226,35,26,.35); }
.am-car-emoji { font-size: 6rem; opacity: .15; line-height: 1; text-align: right; }
@media (max-width: 880px) {
    .am-buy-request-content { grid-template-columns: 1fr; gap: 16px; }
    .am-buy-request-banner { padding: 24px; }
    .am-buy-request-banner h2 { font-size: 1.4rem; }
    .am-buy-request-banner p { font-size: .9rem; }
    .am-car-emoji { text-align: left; font-size: 4rem; }
}

/* ===== Ostatnie chęci kupna ===== */
.am-recent-requests { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 28px; }
.am-request-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: all .2s; }
.am-request-card:hover { border-color: var(--red); box-shadow: 0 8px 24px rgba(226,35,26,.12); }
.am-request-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.am-request-header strong { font-size: .95rem; font-weight: 800; color: var(--ink); }
.am-request-time { font-size: .75rem; color: var(--muted); font-weight: 600; flex-shrink: 0; }
.am-request-detail { font-size: .85rem; color: var(--ink2); line-height: 1.4; }
.am-request-cta { display: inline-flex; margin-top: auto; background: var(--red); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: .8rem; font-weight: 850; transition: all .2s; }
.am-request-cta:hover { background: var(--red-d); transform: translateX(2px); }
@media (max-width: 880px) {
    .am-recent-requests { grid-template-columns: 1fr; }
}

/* ===== Strefa "kupujący szukają" - wizualnie oddzielona od ogloszen sprzedazy ===== */
.am-wanted-zone { margin: 20px 0 0; padding: 18px 18px 6px; border: 1px solid #e8e7e6; border-radius: calc(var(--radius) + 4px); background: #f9f8f7; }
.am-wanted-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: #fafaf9; color: #5a5a59; font-size: .85rem; font-weight: 750; }
.am-wanted-ic { font-size: 1.1rem; }
.am-listings-divider { display: flex; align-items: center; gap: 12px; margin: 30px 0 18px; color: var(--muted); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.am-listings-divider::before, .am-listings-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 560px) {
    .am-wanted-banner { font-size: .8rem; }
}

/* ===== Pelna szerokosc: wieksze marginesy boczne na duzych ekranach ===== */
@media (min-width: 1500px) {
    .am-top, .am-nav, .am-trust, .am-foot { padding-left: 48px; padding-right: 48px; }
    .am-body { padding-left: 48px; padding-right: 48px; }
}

/* ===== Responsywnosc ===== */
@media (max-width: 1024px) {
    .am-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
    .am-body { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
    .am-side { order: 2; }
    .am-listing { grid-template-columns: 1fr; }
    .am-tiles { grid-template-columns: repeat(2, 1fr); }
    .am-nav { top: 0; }
    .am-top { position: static; flex-wrap: wrap; gap: 12px; }
    .am-search { order: 3; max-width: none; flex-basis: 100%; margin: 0; }
    .am-logo { font-size: 1.3rem; }
    .am-hero .big { font-size: 1.9rem; }
    .am-hero .gear { font-size: 8rem; }
    .am-step { flex: 1 1 100%; }
    .vb-page { width: min(100% - 28px, 1180px); margin-top: 16px; }
    .vb-landing, .vb-request-hero { grid-template-columns: 1fr; padding: 30px; gap: 28px; }
    .vb-landing-card { max-width: 540px; }
    .vb-form-wrap { padding: 28px 24px 34px; }
    .vb-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vb-previews { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .am-body { padding: 12px; }
    .am-tiles { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
    .am-tile .ic { width: 34px; height: 34px; font-size: 1.15rem; }
    .am-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .am-thumb { height: 140px; }
    .am-icons .am-text { display: none; }
    .am-icons .am-logout { width: 40px; padding: 0; border: 0; font-size: 1rem; }
    .am-icons .am-logout i { display: inline-block; }
    .am-icons .am-logout span { display: none; }
    .am-phone small { display: none; }
    .am-hero { min-height: 150px; padding: 22px; }
    .am-hero .big { font-size: 1.55rem; }
    .am-sec-head h2 { font-size: 1.05rem; }
    .am-foot { flex-direction: column; }
    .am-finder { padding: 16px 18px; }
    .am-finder-head b { font-size: 1rem; }
    .am-finder-form button { width: 100%; }
    .vb-page { width: min(100% - 20px, 1180px); }
    .vb-campaign-banner { border-radius: 16px; }
    .vb-campaign-banner img { aspect-ratio: 4 / 3; object-position: 61% center; }
    .vb-landing, .vb-request-hero { padding: 24px 20px; border-radius: 16px; }
    .vb-landing h1, .vb-request-hero h1 { font-size: 2rem; }
    .vb-steps { flex-direction: column; }
    .vb-request-facts, .vb-grid.three { grid-template-columns: 1fr; }
    .vb-form-wrap { padding: 24px 17px 28px; border-radius: 16px; }
    .vb-form-wrap > header { flex-direction: column; padding-bottom: 22px; }
    .vb-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vb-success { align-items: flex-start; padding: 22px 18px; }
}
