/* ============================================
   WYNAJMUJEMY.TO — MAIN BRAND CSS
   Modern automotive portal
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-primary: #1a56db;
    --color-primary-dark: #1444b0;
    --color-primary-light: #3b82f6;
    --color-accent: #f59e0b;
    --color-accent-dark: #d97706;
    --color-dark: #1e293b;
    --color-dark-2: #334155;
    --color-gray: #64748b;
    --color-gray-light: #94a3b8;
    --color-gray-lighter: #cbd5e1;
    --color-bg: #f1f5f9;
    --color-bg-alt: #e2e8f0;
    --color-white: #ffffff;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    --color-warning: #f59e0b;
    --color-wynajem: #10b981;
    --color-leasing: #3b82f6;
    --color-kredyt: #8b5cf6;
    --color-sprzedaz: #f59e0b;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(15,52,128,.04);
    --shadow: 0 2px 6px rgba(15,52,128,.06), 0 1px 2px rgba(15,52,128,.04);
    --shadow-md: 0 4px 12px rgba(15,52,128,.07), 0 2px 4px rgba(15,52,128,.04);
    --shadow-lg: 0 10px 24px rgba(15,52,128,.1), 0 4px 8px rgba(15,52,128,.04);
    --shadow-xl: 0 20px 40px rgba(15,52,128,.12), 0 8px 16px rgba(15,52,128,.06);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;
    --transition: 200ms cubic-bezier(.25,.8,.25,1);
    --container: 1280px;
    --transition-smooth: .4s cubic-bezier(.25,.8,.25,1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-family); font-size: 16px; line-height: 1.6; color: var(--color-dark); background: var(--color-bg); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Typography --- */
h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; color: var(--color-dark); }
h2 { font-size: 1.4rem; font-weight: 700; line-height: 1.3; color: var(--color-dark); }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--color-gray); }
p { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-muted { color: var(--color-gray); }

/* --- Layout --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.section { padding: 2rem 0; }
.section-title { text-align: center; margin-bottom: 1.25rem; }
.section-title h2 { margin-bottom: .35rem; }
.section-title p { color: var(--color-gray); max-width: 600px; margin: 0 auto; font-size: .9rem; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Flex utils */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Spacing */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3rem; }
.py-1 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.hidden { display: none !important; }

/* ============ TOP BAR (auth + contact) ============ */
.top-bar {
    background: var(--color-primary);
    color: rgba(255,255,255,.85);
    font-size: .75rem;
    line-height: 1;
}
.top-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 34px; gap: 1rem;
}
.top-bar-left, .top-bar-right {
    display: flex; align-items: center; gap: 1rem;
}
.top-bar-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: rgba(255,255,255,.85); font-weight: 500;
    text-decoration: none; transition: color .15s;
}
.top-bar-link:hover { color: #fff; }
.top-bar-link svg { opacity: .7; }
.top-bar-register {
    background: rgba(255,255,255,.15);
    padding: 3px 10px; border-radius: 4px;
    font-weight: 600;
}
.top-bar-register:hover { background: rgba(255,255,255,.25); color: #fff; }
.compare-badge {
    display: inline-flex; align-items: center; gap: 4px;
    color: rgba(255,255,255,.85); font-weight: 600; font-size: .75rem;
}
.compare-badge:hover { color: #fff; }

@media (max-width: 768px) {
    .top-bar-left { display: none; }
}

/* ============ HEADER ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(26,86,219,.06);
    transition: all .3s cubic-bezier(.25,.8,.25,1);
    backdrop-filter: blur(12px);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(15,52,128,.08); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 1.5rem;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo svg { height: 32px; width: auto; }
.site-header .logo img { height: 52px; width: auto; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; }
.nav-link {
    display: flex; align-items: center; gap: .375rem;
    padding: .625rem 1rem;
    font-size: .8125rem; font-weight: 600;
    color: var(--color-dark-2);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.nav-link:hover { color: var(--color-primary); }
.nav-link--active { color: var(--color-primary); }
.nav-link--active::after {
    content: ''; position: absolute; bottom: 0; left: 1rem; right: 1rem;
    height: 3px; background: var(--color-primary); border-radius: 3px 3px 0 0;
}

.hamburger { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--color-dark); border-radius: 2px; transition: all var(--transition); }

@media (max-width: 1024px) {
    .main-nav { display: none; }
    .hamburger { display: flex; }
}

/* ============ MOBILE MENU ============ */
.mobile-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; pointer-events: none; }
.mobile-menu.open { pointer-events: auto; }
.mobile-menu__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.mobile-menu.open .mobile-menu__overlay { opacity: 1; }
.mobile-menu__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: 300px;
    background: var(--color-white); transform: translateX(100%);
    transition: transform .3s ease; overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.mobile-menu.open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-bg-alt); }
.mobile-menu__title { font-weight: 700; font-size: 1.125rem; }
.mobile-menu__close { font-size: 1.75rem; color: var(--color-gray); line-height: 1; }
.mobile-menu__nav { padding: .5rem 0; }
.mobile-menu__link { display: block; padding: .75rem 1.25rem; color: var(--color-dark-2); font-weight: 500; transition: all var(--transition); }
.mobile-menu__link:hover, .mobile-menu__link.active { color: var(--color-primary); background: var(--color-bg); }
.mobile-menu__divider { border: none; border-top: 1px solid var(--color-bg-alt); margin: .5rem 0; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .65rem 1.35rem; font-weight: 600; font-size: .875rem;
    border-radius: var(--radius); transition: all .3s cubic-bezier(.25,.8,.25,1);
    cursor: pointer; border: 2px solid transparent; line-height: 1.4;
    position: relative;
}
.btn-primary {
    background: linear-gradient(135deg, #1a56db 0%, #2563eb 100%);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(26,86,219,.2);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1444b0 0%, #1a56db 100%);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(26,86,219,.3);
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent; color: var(--color-primary);
    border-color: rgba(26,86,219,.25);
}
.btn-secondary:hover {
    background: rgba(26,86,219,.05); color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--color-dark);
    box-shadow: 0 2px 8px rgba(245,158,11,.2);
}
.btn-accent:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 4px 16px rgba(245,158,11,.3);
    transform: translateY(-1px);
}
.btn-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: var(--color-white); box-shadow: 0 2px 8px rgba(16,185,129,.2); }
.btn-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: var(--color-white); box-shadow: 0 2px 8px rgba(239,68,68,.2); }
.btn-white { background: var(--color-white); color: var(--color-dark); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.btn-white:hover { background: var(--color-bg); color: var(--color-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--color-gray); }
.btn-ghost:hover { color: var(--color-dark); background: var(--color-bg); }
.btn-sm { padding: .4rem .85rem; font-size: .8125rem; }
.btn-outline { background: transparent; color: var(--color-gray); border: 1.5px solid var(--color-gray-lighter); }
.btn-outline:hover { color: var(--color-dark); border-color: var(--color-gray); transform: translateY(-1px); }
.btn-lg { padding: .8rem 1.85rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ============ CARDS ============ */
.card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15,52,128,.04);
    overflow: hidden;
    transition: all .35s cubic-bezier(.25,.8,.25,1);
    border: 1px solid rgba(26,86,219,.05);
}
.card:hover {
    box-shadow: 0 8px 28px rgba(26,86,219,.1);
    transform: translateY(-3px);
    border-color: rgba(26,86,219,.1);
}
.card-img {
    position: relative; overflow: hidden;
    aspect-ratio: 16 / 10;
}
.card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s cubic-bezier(.25,.8,.25,1);
}
.card:hover .card-img img { transform: scale(1.05); }
.card-img::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(15,52,128,.08) 0%, transparent 100%);
    pointer-events: none;
}
.card-body { padding: .75rem 1rem; }
.card-title { font-size: .95rem; font-weight: 600; margin-bottom: .2rem; color: var(--color-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title a { color: inherit; transition: color .2s; }
.card-title a:hover { color: var(--color-primary); }
.card-subtitle { font-size: .8125rem; color: var(--color-gray); margin-bottom: .75rem; }
.card-specs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.card-spec {
    display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem;
    color: var(--color-gray); background: #f0f4ff; padding: .3rem .6rem;
    border-radius: 8px; transition: all .2s;
}
.card-spec:hover { background: #e0e8ff; color: var(--color-primary); }
.card-price { font-size: 1.05rem; font-weight: 700; color: var(--color-primary); }
.card-price small { font-size: .75rem; font-weight: 400; color: var(--color-gray); }
.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: .6rem 1rem; border-top: 1px solid rgba(26,86,219,.04);
}

/* ============ BADGES ============ */
.badge {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .25rem .625rem; border-radius: var(--radius-full);
    font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
.badge-wynajem { background: rgba(16,185,129,.1); color: var(--color-wynajem); }
.badge-leasing { background: rgba(59,130,246,.1); color: var(--color-leasing); }
.badge-kredyt { background: rgba(139,92,246,.1); color: var(--color-kredyt); }
.badge-sprzedaz { background: rgba(245,158,11,.1); color: var(--color-sprzedaz); }
.badge-hot { background: var(--color-error); color: var(--color-white); }
.badge-new { background: var(--color-success); color: var(--color-white); }

/* Position badge on card */
.card-img .badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .875rem; font-weight: 500; color: var(--color-dark-2); margin-bottom: .375rem; }
.form-input, .form-select {
    width: 100%; padding: .65rem .95rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px; font-size: .9375rem;
    background: #f8fafc; color: var(--color-dark);
    transition: all .3s cubic-bezier(.25,.8,.25,1);
}
.form-input:focus, .form-select:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
    background: #fff;
}
.form-input::placeholder { color: var(--color-gray-light); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-checkbox { display: flex; align-items: flex-start; gap: .5rem; }
.form-checkbox input[type="checkbox"] { margin-top: .25rem; accent-color: var(--color-primary); }
.form-error { font-size: .8125rem; color: var(--color-error); margin-top: .25rem; }
.form-hint { font-size: .8125rem; color: var(--color-gray); margin-top: .25rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

/* ============ SEARCH BAR ============ */
.search-bar {
    background: #fff; border-radius: 18px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 32px rgba(15,52,128,.08);
    border: 1px solid rgba(26,86,219,.05);
}
.search-bar .form-row { gap: .75rem; }
.search-bar .btn { height: 44px; border-radius: 12px; }

/* ============ VEHICLE GRID ============ */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .vehicle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .vehicle-grid { grid-template-columns: 1fr; } }

/* ============ SPEC TABLE ============ */
.spec-table { width: 100%; }
.spec-row { display: flex; padding: .625rem 0; border-bottom: 1px solid var(--color-bg); }
.spec-row:last-child { border-bottom: none; }
.spec-label { flex: 0 0 40%; font-size: .875rem; color: var(--color-gray); }
.spec-value { flex: 1; font-size: .875rem; font-weight: 500; color: var(--color-dark); }

/* ============ GALLERY ============ */
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: .75rem; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.gallery-thumb { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; opacity: .6; transition: opacity var(--transition); border: 2px solid transparent; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--color-primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============ TABS ============ */
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--color-bg-alt); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-item {
    padding: .75rem 1.25rem; font-weight: 500; font-size: .9375rem;
    color: var(--color-gray); white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: all var(--transition); cursor: pointer;
}
.tab-item:hover { color: var(--color-dark); }
.tab-item--active { color: var(--color-primary); border-color: var(--color-primary); font-weight: 600; }

/* ============ PAGINATION ============ */
.pagination { display: flex; justify-content: center; align-items: center; gap: .375rem; margin-top: 2rem; }
.page-link {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 .5rem;
    border-radius: var(--radius); font-size: .875rem; font-weight: 500;
    color: var(--color-dark-2); background: var(--color-white);
    border: 1px solid var(--color-gray-lighter);
    transition: all var(--transition);
}
.page-link:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-link--active { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.page-link--disabled { opacity: .4; pointer-events: none; }

/* ============ FOOTER ============ */
#footer-brand {
    background: linear-gradient(180deg, #0f2a5e 0%, #0a1e42 100%);
    color: rgba(255,255,255,.8);
    padding: 48px 0 0;
    margin-top: 0;
    font-size: 14px;
    position: relative;
}
/* Kolorowy pasek oddzielający */
#footer-brand::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #f59e0b 50%, #3b82f6 100%);
}
#footer-brand a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
#footer-brand a:hover { color: #fff; }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 48px;
    align-items: start;
}

/* Left column */
.footer-left { position: relative; z-index: 2; }

/* Footer logo */
.footer-logo { margin-bottom: 18px; }
.footer-logo img {
    height: 52px; width: auto;
    display: block;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.4));
}

.footer-desc {
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255,255,255,.6);
    font-size: 14px;
}

.footer-company {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,.6);
    margin-bottom: 28px;
}
.footer-company strong {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 4px;
}
.footer-company a { color: rgba(165,200,255,.9) !important; }
.footer-company a:hover { color: #fff !important; }

/* Map button (emoji pin) */
.footer-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 6px;
    background: rgba(255,255,255,.1);
    font-size: 14px;
    margin-left: 6px;
    vertical-align: middle;
    text-decoration: none !important;
    transition: background .2s;
}
.footer-map-btn:hover { background: rgba(255,255,255,.2); }

/* Links — single block, 2-column ul */
.footer-links h4 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.footer-links ul {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 32px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,.65) !important;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
    display: inline-block;
}
.footer-links a:hover { color: #fff !important; }

/* Right column — Facebook widget */
.footer-facebook {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    z-index: 1;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
}
.footer-facebook iframe {
    display: block;
    width: 100% !important;
    min-height: 500px !important;
    border: 0;
}
.fb-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(10,30,66,.95), rgba(10,30,66,.6), transparent);
    color: rgba(165,200,255,.9) !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.fb-overlay:hover { color: #fff !important; }

/* Bottom bar — ciemny */
.footer-bottom {
    margin-top: 40px;
    padding: 18px 0;
    background: rgba(0,0,0,.2);
    font-size: 13px;
    text-align: center;
    color: rgba(255,255,255,.45);
    border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-facebook { width: 100%; max-width: 100%; margin: 0; }
}
@media (max-width: 600px) {
    #footer-brand { padding: 36px 0 0; }
    .footer-logo img { height: 44px; }
    .footer-links ul { grid-template-columns: 1fr 1fr; gap: 2px 20px; }
}
@media (max-width: 400px) {
    .footer-links ul { grid-template-columns: 1fr; }
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, rgba(15,52,128,.8) 0%, rgba(15,23,42,.65) 100%),
                url('/img/hero-bg.jpg') center/cover no-repeat;
    color: var(--color-white); padding: 2.5rem 0 3rem; position: relative; overflow: hidden;
    min-height: 240px; display: flex; align-items: center;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-title { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; position: relative; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,.9); margin-bottom: 1.25rem; max-width: 600px; position: relative; text-shadow: 0 1px 8px rgba(0,0,0,.3); line-height: 1.5; }
.hero-counter { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--color-accent); font-weight: 600; margin-bottom: 1rem; position: relative; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; position: relative; }
.hero-tab {
    padding: .5rem 1.25rem; border-radius: var(--radius-full);
    font-size: .875rem; font-weight: 600; color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    transition: all .3s cubic-bezier(.25,.8,.25,1);
    background: rgba(255,255,255,.1); backdrop-filter: blur(6px);
}
.hero-tab:hover {
    color: var(--color-white); border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.18);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.hero-tab--active {
    background: linear-gradient(135deg, #1a56db 0%, #2563eb 100%);
    color: var(--color-white); border-color: transparent;
    box-shadow: 0 4px 14px rgba(26,86,219,.35);
}

@media (max-width: 768px) {
    .hero { padding: 2rem 0 3rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-tabs { flex-wrap: wrap; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }
}

/* ============ BRANDS GRID ============ */
.brands-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem;
}
.brand-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: .7rem .5rem; background: #fff; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(15,52,128,.03);
    border: 1px solid rgba(26,86,219,.04);
    transition: all .3s cubic-bezier(.25,.8,.25,1); cursor: pointer;
}
.brand-item:hover {
    box-shadow: 0 6px 20px rgba(26,86,219,.1);
    transform: translateY(-2px);
    border-color: rgba(26,86,219,.1);
}
.brand-item img { width: 36px; height: 36px; object-fit: contain; margin-bottom: .3rem; transition: transform .3s; }
.brand-item:hover img { transform: scale(1.08); }
.brand-item span { font-size: .72rem; font-weight: 500; color: var(--color-dark-2); }

@media (max-width: 768px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ BODY TYPES ============ */
.body-types { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.body-type-item {
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    padding: .85rem .65rem; background: #fff; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(15,52,128,.03);
    border: 1px solid rgba(26,86,219,.04);
    transition: all .3s cubic-bezier(.25,.8,.25,1); cursor: pointer;
}
.body-type-item:hover {
    box-shadow: 0 6px 20px rgba(26,86,219,.1);
    transform: translateY(-2px); color: var(--color-primary);
    border-color: rgba(26,86,219,.12);
}
.body-type-item svg { width: 38px; height: 26px; color: var(--color-gray); transition: all .3s; }
.body-type-item:hover svg { color: var(--color-primary); transform: scale(1.08); }
.body-type-item span { font-size: .75rem; font-weight: 500; }

@media (max-width: 768px) { .body-types { grid-template-columns: repeat(3, 1fr); } }

/* ============ BENEFITS ============ */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.benefit-card {
    text-align: center; padding: 1.25rem 1rem; background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15,52,128,.04);
    border: 1px solid rgba(26,86,219,.04);
    transition: all .3s cubic-bezier(.25,.8,.25,1);
}
.benefit-card:hover {
    box-shadow: 0 6px 20px rgba(26,86,219,.1);
    transform: translateY(-2px);
    border-color: rgba(26,86,219,.1);
}
.benefit-icon {
    width: 42px; height: 42px; margin: 0 auto .6rem;
    background: linear-gradient(135deg, rgba(26,86,219,.1) 0%, rgba(37,99,235,.05) 100%);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: var(--color-primary);
    transition: all .3s;
}
.benefit-icon svg { width: 20px; height: 20px; }
.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, #1a56db 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26,86,219,.25);
}
.benefit-card h4 { margin-bottom: .35rem; font-size: .95rem; }
.benefit-card p { font-size: .8rem; color: var(--color-gray); margin: 0; line-height: 1.5; }

@media (max-width: 1024px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .benefits { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff; border-radius: 14px; margin-bottom: .6rem;
    box-shadow: 0 2px 8px rgba(15,52,128,.03);
    border: 1px solid rgba(26,86,219,.04);
    overflow: hidden;
    transition: all .3s cubic-bezier(.25,.8,.25,1);
}
.faq-item:hover { border-color: rgba(26,86,219,.08); }
.faq-item.open {
    box-shadow: 0 4px 16px rgba(26,86,219,.08);
    border-color: rgba(26,86,219,.12);
}
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: .75rem 1.1rem; font-weight: 600; cursor: pointer;
    transition: all .25s; width: 100%; text-align: left; font-size: .875rem;
}
.faq-question:hover { background: rgba(26,86,219,.02); }
.faq-question::after {
    content: '+'; font-size: 1.25rem; color: var(--color-primary);
    transition: transform .3s; flex-shrink: 0;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    background: rgba(26,86,219,.06); border-radius: 8px;
}
.faq-item.open .faq-question::after { content: '\2212'; background: linear-gradient(135deg, #1a56db, #2563eb); color: #fff; }
.faq-answer { padding: 0 1.1rem; max-height: 0; overflow: hidden; transition: all .35s cubic-bezier(.25,.8,.25,1); }
.faq-item.open .faq-answer { padding: 0 1.1rem .85rem; max-height: 500px; }
.faq-answer p { font-size: .875rem; color: var(--color-gray); line-height: 1.6; margin: 0; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
    background: var(--color-white); box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    border-top: 1px solid var(--color-bg-alt);
}
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem; }
.cookie-inner p { font-size: .8125rem; color: var(--color-gray); margin: 0; flex: 1; }
.cookie-inner a { color: var(--color-primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }

@media (max-width: 640px) {
    .cookie-inner { flex-direction: column; text-align: center; }
}

/* ============ ALERTS ============ */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9375rem; }
.alert-success { background: rgba(16,185,129,.1); color: #065f46; border: 1px solid rgba(16,185,129,.2); }
.alert-error { background: rgba(239,68,68,.1); color: #991b1b; border: 1px solid rgba(239,68,68,.2); }
.alert-info { background: rgba(59,130,246,.1); color: #1e40af; border: 1px solid rgba(59,130,246,.2); }
.alert-warning { background: rgba(245,158,11,.1); color: #92400e; border: 1px solid rgba(245,158,11,.2); }

/* ============ ADMIN ============ */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar { background: var(--color-dark); padding: 1.5rem 0; }
.admin-sidebar .sidebar-link {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem 1.5rem; color: var(--color-gray-light);
    font-size: .875rem; transition: all var(--transition);
}
.admin-sidebar .sidebar-link:hover, .admin-sidebar .sidebar-link.active { color: var(--color-white); background: rgba(255,255,255,.05); }
.admin-content { padding: 2rem; background: var(--color-bg); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th { background: var(--color-bg); padding: .75rem 1rem; text-align: left; font-size: .8125rem; font-weight: 600; color: var(--color-gray); text-transform: uppercase; letter-spacing: .03em; }
.admin-table td { padding: .75rem 1rem; border-top: 1px solid var(--color-bg); font-size: .875rem; }
.admin-table tr:hover td { background: var(--color-bg); }

@media (max-width: 768px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}

/* ============ LOGIN BOX ============ */
.login-box {
    max-width: 420px; margin: 3rem auto;
    background: #fff; border-radius: 20px;
    box-shadow: 0 8px 32px rgba(15,52,128,.08);
    border: 1px solid rgba(26,86,219,.05);
    padding: 2.5rem;
}
.login-box h2 { text-align: center; margin-bottom: .5rem; }
.login-box .login-subtitle { text-align: center; color: var(--color-gray); margin-bottom: 2rem; font-size: .9375rem; }

/* OTP input */
.otp-inputs { display: flex; gap: .75rem; justify-content: center; margin: 1.5rem 0; }
.otp-input {
    width: 48px; height: 56px; text-align: center;
    font-size: 1.5rem; font-weight: 700;
    border: 2px solid var(--color-gray-lighter);
    border-radius: var(--radius); transition: all var(--transition);
}
.otp-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(26,86,219,.1); outline: none; }

/* ============ ANIMATIONS ============ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .4s ease-out; }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.slide-up { animation: slideUp .5s ease-out; }

/* ============ LOADING ============ */
.loading { display: flex; align-items: center; justify-content: center; padding: 3rem; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--color-bg-alt); border-top-color: var(--color-primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ EMPTY STATE ============ */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state svg { width: 80px; height: 80px; color: var(--color-gray-lighter); margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: .5rem; }
.empty-state p { color: var(--color-gray); margin-bottom: 1.5rem; }

/* ============ PAGE WRAPPER ============ */
.site-main { min-height: calc(100vh - 200px); }
.page-content { padding: 2rem 0; }
.page-header { padding: 2rem 0 1rem; }
.page-header h1 { margin-bottom: .5rem; }
.page-header .breadcrumb { font-size: .875rem; color: var(--color-gray); }
.page-header .breadcrumb a { color: var(--color-primary); }

/* ============ LEGAL PAGES ============ */
.legal-content { max-width: 860px; margin: 0 auto; padding: 3rem 1rem; }
.legal-content h1 { margin-bottom: .5rem; font-size: 2rem; }
.legal-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.375rem; color: var(--color-dark); border-bottom: 2px solid var(--color-primary); padding-bottom: .5rem; }
.legal-content h3 { margin-top: 1.5rem; margin-bottom: .75rem; font-size: 1.1rem; color: var(--color-dark); }
.legal-content h4 { margin-bottom: .25rem; font-size: 1rem; }
.legal-content h4 span { font-weight: 400; color: var(--color-gray); font-size: .875rem; }
.legal-content p { margin-bottom: 1rem; line-height: 1.8; color: var(--color-dark-2); }
.legal-content ul, .legal-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.legal-content li { margin-bottom: .5rem; line-height: 1.7; color: var(--color-dark-2); }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content ol ol { list-style: lower-alpha; margin-top: .5rem; }
.legal-content a { color: var(--color-primary); text-decoration: underline; }
.legal-meta { font-size: .875rem; color: var(--color-gray); margin-bottom: 2rem; }
.legal-box { background: #f0f4ff; border-left: 4px solid var(--color-primary); padding: 1.25rem 1.5rem; border-radius: 8px; margin: 1rem 0 1.5rem; line-height: 1.7; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .9rem; }
.legal-table th, .legal-table td { padding: .75rem 1rem; border: 1px solid #e2e8f0; text-align: left; vertical-align: top; line-height: 1.6; }
.legal-table th { background: #f1f5f9; font-weight: 600; color: var(--color-dark); font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }
.legal-table tr:nth-child(even) td { background: #fafbfc; }
.legal-rights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.legal-right { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.25rem; }
.legal-right h4 { color: var(--color-primary); margin-bottom: .5rem; }
.legal-right p { font-size: .875rem; margin: 0; color: var(--color-dark-2); }
@media (max-width: 768px) {
    .legal-content { padding: 2rem 1rem; }
    .legal-content h1 { font-size: 1.5rem; }
    .legal-table { font-size: .8rem; }
    .legal-table th, .legal-table td { padding: .5rem; }
    .legal-rights-grid { grid-template-columns: 1fr; }
}

/* ============ SHARED: BREADCRUMB BAR ============ */
.ob-breadcrumb-bar {
    background: #0f3480;
    padding: 6px 0;
}
.ob-breadcrumb-in {
    max-width: var(--container); margin: 0 auto; padding: 0 1rem;
    font-size: 13px; color: rgba(255,255,255,.6);
}
.ob-breadcrumb-in a {
    color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s;
}
.ob-breadcrumb-in a:hover { color: #fff; text-decoration: underline; }
.ob-breadcrumb-in .sep { margin: 0 6px; opacity: .4; }

/* ============ SHARED: HERO MOSAIC (4 images) ============ */
.ob-hero-mosaic {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 280px;
    overflow: hidden;
    background: #0f3480;
    gap: 3px;
}
.ob-mosaic-item { overflow: hidden; }
.ob-mosaic-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .6s cubic-bezier(.25,.8,.25,1);
}
.ob-hero-mosaic:hover .ob-mosaic-item img { transform: scale(1.04); }
.ob-mosaic-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(0deg, rgba(15,52,128,.7) 0%, rgba(15,52,128,.35) 40%, rgba(15,52,128,.15) 100%);
    pointer-events: none; text-align: center;
    padding: 0 1rem;
}
.ob-mosaic-overlay h1 {
    font-size: 2.25rem; font-weight: 800; color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,.3); margin: 0 0 .5rem;
}
.ob-mosaic-overlay .hero-subtitle,
.ob-mosaic-overlay .ob-hero-desc {
    font-size: 1.0625rem; color: rgba(255,255,255,.85);
    text-shadow: 0 1px 8px rgba(0,0,0,.2); max-width: 600px; margin: 0;
    line-height: 1.5;
}
.ob-mosaic-overlay .hero-counter {
    color: var(--color-accent); font-weight: 600; margin-bottom: .75rem;
    display: inline-flex; align-items: center; gap: .5rem; font-size: .9375rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.ob-mosaic-overlay .ob-hero-badge {
    display: inline-block; padding: 5px 16px; border-radius: 10px;
    background: rgba(255,255,255,.15); color: #fff;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .04em; margin-bottom: 10px;
    backdrop-filter: blur(8px);
    pointer-events: auto;
    border: 1px solid rgba(255,255,255,.15);
}

@media (max-width: 768px) {
    .ob-hero-mosaic { height: 180px; grid-template-columns: repeat(2, 1fr); }
    .ob-mosaic-item:nth-child(n+3) { display: none; }
    .ob-mosaic-overlay h1 { font-size: 1.5rem; }
}

/* ============ SHARED: HERO BAR (gradient, no images) ============ */
.ob-hero-bar {
    background: linear-gradient(135deg, #1a56db 0%, #0f3480 50%, #1e40af 100%);
    padding: 28px 0;
    position: relative; overflow: hidden;
}
.ob-hero-bar::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.08) 0%, transparent 60%);
    pointer-events: none;
}
.ob-hero-bar.ob-hero-wynajem { background: linear-gradient(135deg, #10b981 0%, #065f46 50%, #059669 100%); }
.ob-hero-bar.ob-hero-leasing { background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #2563eb 100%); }
.ob-hero-bar.ob-hero-kredyt  { background: linear-gradient(135deg, #8b5cf6 0%, #5b21b6 50%, #7c3aed 100%); }
.ob-hero-bar.ob-hero-sprzedaz { background: linear-gradient(135deg, #f59e0b 0%, #b45309 50%, #d97706 100%); }
.ob-hero-in {
    max-width: var(--container); margin: 0 auto; padding: 0 1rem; color: #fff;
    position: relative;
}
.ob-hero-in h1 {
    margin: 0; font-size: 1.75rem; font-weight: 800; color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.ob-hero-desc {
    margin: 6px 0 0; font-size: 14px; color: rgba(255,255,255,.75); font-weight: 400;
}

/* ============ SHARED: COMPACT STATS BAR (gradient) ============ */
.ob-stats-compact {
    background: linear-gradient(135deg, #1a56db 0%, #0f3480 40%, #2563eb 100%);
    padding: 0; position: relative;
}
.ob-stats-compact::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,.06) 0%, transparent 70%);
    pointer-events: none;
}
.ob-stats-compact .ob-stats-in {
    max-width: var(--container); margin: 0 auto; padding: 12px 1rem;
    display: flex; align-items: center; justify-content: center;
    gap: 0; flex-wrap: wrap; position: relative;
}
.ob-stats-compact .ob-stat {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 28px; position: relative;
    color: rgba(255,255,255,.9); font-size: 13px;
}
.ob-stats-compact .ob-stat + .ob-stat::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); width: 1px; height: 28px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.25), transparent);
}
.ob-stats-compact .ob-stat-icon {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ob-stats-compact .ob-stat-icon svg {
    width: 16px; height: 16px; color: rgba(255,255,255,.9);
    stroke: currentColor; fill: none;
}
.ob-stats-compact .ob-stat-text {
    display: flex; flex-direction: column;
}
.ob-stats-compact .ob-stat-value {
    font-size: 15px; font-weight: 800; color: #fff; line-height: 1.2;
}
.ob-stats-compact .ob-stat-label {
    font-size: 11px; color: rgba(255,255,255,.55); font-weight: 400;
}

/* Type-specific rules removed — unified blue hero style */

@media (max-width: 768px) {
    .ob-stats-compact .ob-stat { padding: 4px 14px; gap: 6px; }
    .ob-stats-compact .ob-stat-value { font-size: 13px; }
    .ob-stats-compact .ob-stat-icon { width: 24px; height: 24px; }
    .ob-stats-compact .ob-stat-icon svg { width: 13px; height: 13px; }
}

/* ============ SHARED: OB-CONTENT WRAPPER ============ */
.ob-content {
    max-width: 100%; margin: 0 auto;
    padding: 20px 2.5rem 40px;
}

/* ============ SHARED: ADVANCED FILTERS ============ */
.ob-adv-filters { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; }
.ob-adv-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 8px; }
.ob-adv-row:last-child { margin-bottom: 0; }
.ob-adv-group { display: flex; flex-direction: column; gap: 3px; }
.ob-adv-group label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.ob-adv-select, .ob-adv-input { height: 34px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 8px; font-size: 13px; background: #fff; min-width: 100px; }
.ob-adv-input { width: 90px; }
.ob-adv-select:focus, .ob-adv-input:focus { border-color: #1a56db; outline: none; box-shadow: 0 0 0 2px rgba(26,86,219,.15); }
.ob-filter-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.ob-filter-btn {
    padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    border: 1px solid rgba(26,86,219,.15);
    background: #fff; color: var(--color-primary);
    transition: all .2s;
}
.ob-filter-btn:hover { background: #eef3ff; border-color: var(--color-primary); }
.ob-filter-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ============ SHARED: SORT BAR ============ */
.sort-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; padding: 0 2px;
}
.sort-bar .results-count { font-size: .9375rem; color: var(--color-gray); }
.sort-bar .results-count strong { color: var(--color-dark); font-weight: 600; }
.sort-options { display: flex; align-items: center; gap: .5rem; }
.sort-options label { font-size: .82rem; color: var(--color-gray); white-space: nowrap; }

/* ============ SHARED: SIDEBAR ============ */
.ob-sidebar-card {
    background: #fff; border-radius: 10px; padding: 16px;
    border: 1px solid rgba(26,86,219,.06);
    box-shadow: 0 1px 8px rgba(15,52,128,.04);
}
.ob-sidebar-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: .65rem; }
.ob-sidebar-desc { font-size: .82rem; color: var(--color-gray); margin-bottom: .75rem; }
.ob-search-input {
    width: 100%; padding: 8px 12px; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: .85rem;
}
.ob-search-input:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 2px rgba(26,86,219,.12); }
.ob-sidebar-links { display: flex; flex-direction: column; gap: 6px; }
.ob-sib-link {
    display: block; padding: 6px 10px; border-radius: 6px;
    font-size: .82rem; color: var(--color-primary); text-decoration: none;
    transition: background .2s;
}
.ob-sib-link:hover { background: rgba(26,86,219,.05); }
.ob-sidebar-hidden { display: none !important; }
.ob-layout:has(.ob-sidebar-hidden) { grid-template-columns: 1fr !important; }

@media (max-width: 768px) {
    .ob-adv-row { flex-direction: column; }
    .ob-adv-group { width: 100%; }
    .ob-adv-select, .ob-adv-input { width: 100%; }
}

/* ============ SHARED: TABS ============ */
.ob-tabs {
    display: flex; gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(26,86,219,.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 14px 14px 0 0;
}
.ob-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px;
    border: none; background: transparent;
    color: #8896ab; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: all .3s cubic-bezier(.25,.8,.25,1);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; white-space: nowrap;
    font-family: inherit;
}
.ob-tab svg { flex-shrink: 0; opacity: .5; transition: all .3s; width: 16px; height: 16px; }
.ob-tab:hover { color: var(--color-primary); background: rgba(26,86,219,.03); }
.ob-tab:hover svg { opacity: .7; color: var(--color-primary); }
.ob-tab.active {
    color: var(--color-primary); border-bottom-color: var(--color-primary);
    background: rgba(26,86,219,.04);
}
.ob-tab.active svg { opacity: 1; color: var(--color-primary); }

.ob-tab-panel { display: none; }
.ob-tab-panel.active {
    display: block;
    animation: ob-fadeIn .3s ease;
}
@keyframes ob-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============ SHARED: SIDEBAR CARDS ============ */
.ob-sidebar-card {
    background: #fff; border-radius: 16px;
    border: 1px solid rgba(26,86,219,.05);
    padding: 20px; box-shadow: 0 2px 16px rgba(15,52,128,.04);
    transition: all .3s cubic-bezier(.25,.8,.25,1);
}
.ob-sidebar-card:hover {
    box-shadow: 0 4px 20px rgba(15,52,128,.08);
}
.ob-sidebar-card h4 {
    margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #0f3480;
}
.ob-sidebar-desc {
    font-size: 13px; color: #666; margin-bottom: 12px; line-height: 1.5;
}
.ob-sidebar-links {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.ob-sib-link {
    display: inline-block; padding: 6px 14px;
    border-radius: 10px; font-size: 12px;
    text-decoration: none; color: var(--color-primary);
    background: #f0f4ff;
    transition: all .3s cubic-bezier(.25,.8,.25,1); font-weight: 500;
}
.ob-sib-link:hover {
    background: linear-gradient(135deg, #1a56db, #2563eb);
    color: #fff;
    box-shadow: 0 3px 10px rgba(26,86,219,.2);
    transform: translateY(-1px);
}

/* ============ SHARED: INFO CARD ============ */
.ob-info-card {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    border: 1px solid rgba(26,86,219,.08);
    border-radius: 16px; padding: 26px 30px;
    font-size: 15px; line-height: 1.7; color: #444;
    box-shadow: 0 2px 12px rgba(15,52,128,.03);
}
.ob-info-card h3 {
    margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #0f3480;
}

/* ============ SHARED: 2-COLUMN LAYOUT ============ */
.ob-layout {
    display: grid; grid-template-columns: 1fr 320px;
    gap: 24px; align-items: start;
}
.ob-main-col { min-width: 0; }
.ob-sidebar-col {
    position: sticky; top: 80px; min-width: 0;
    display: flex; flex-direction: column; gap: 16px;
}

@media (max-width: 1024px) {
    .ob-layout { grid-template-columns: 1fr; }
    .ob-sidebar-col { position: static; order: 2; }
    .ob-content { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (max-width: 640px) {
    .ob-content { padding-left: 1rem; padding-right: 1rem; }
}

/* --- Compare Badge (header) --- */
.compare-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    background: var(--color-accent); color: #fff;
    padding: .25rem .6rem; border-radius: var(--radius-full);
    font-size: .8rem; font-weight: 700;
    text-decoration: none; transition: all .2s ease;
}
.compare-badge:hover { background: var(--color-accent-dark); }

/* ============ EMBED MODE — kompaktowe kafelki (styl konfiguratora) ============ */
body.embed-mode .ob-stats-compact .ob-stats-in { padding: 6px 1rem; }
body.embed-mode .ob-stats-compact .ob-stat { padding: 3px 18px; gap: 6px; }
body.embed-mode .ob-stats-compact .ob-stat-icon { width: 22px; height: 22px; border-radius: 6px; }
body.embed-mode .ob-stats-compact .ob-stat-icon svg { width: 12px; height: 12px; }
body.embed-mode .ob-stats-compact .ob-stat-value { font-size: 12px; }
body.embed-mode .ob-stats-compact .ob-stat-label { font-size: 9px; }

body.embed-mode .vehicle-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .6rem;
}
body.embed-mode .card {
    border-radius: 10px;
    border: 1px solid rgba(26,86,219,.07);
    box-shadow: 0 1px 4px rgba(15,52,128,.03);
}
body.embed-mode .card:hover {
    box-shadow: 0 4px 16px rgba(26,86,219,.1);
    transform: translateY(-2px);
    border-color: rgba(26,86,219,.14);
}
body.embed-mode .card-img {
    aspect-ratio: 5 / 3;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edf5 100%);
}
body.embed-mode .card-img img {
    transition: transform .35s cubic-bezier(.25,.8,.25,1);
}
body.embed-mode .card:hover .card-img img { transform: scale(1.03); }
body.embed-mode .card-body { padding: .4rem .65rem .45rem; }
body.embed-mode .card-title {
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .1rem;
    line-height: 1.2;
}
body.embed-mode .card-title a { line-height: 1.2; }
body.embed-mode .card-subtitle { font-size: .68rem; margin-bottom: .25rem; }
body.embed-mode .card-specs { gap: .2rem; margin-bottom: .25rem; }
body.embed-mode .card-spec {
    font-size: .6rem;
    padding: .12rem .35rem;
    border-radius: 5px;
    background: #f0f4ff;
}
body.embed-mode .card-price {
    font-size: .85rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2px;
}
body.embed-mode .card-price small { font-size: .6rem; }
/* Footer — kompaktowy link zamiast duzego przycisku */
body.embed-mode .card-footer {
    padding: .25rem .65rem .35rem;
    border-top: 1px solid rgba(26,86,219,.04);
}
body.embed-mode .card-footer .btn {
    font-size: .65rem;
    padding: .2rem .55rem;
    border-radius: 5px;
}
/* Ukryj date dodania — mniej szumu */
body.embed-mode .card-date { display: none !important; }
/* Badge punktowy — maly inline */
body.embed-mode .card-body > div[style*="polecajmy"] {
    font-size: 9px !important;
    padding: 1px 7px !important;
    margin-top: 3px !important;
    border-radius: 10px !important;
    background: #1e293b !important;
}
/* Badge na obrazku — mniejszy */
body.embed-mode .card-img .badge {
    font-size: .55rem;
    padding: .15rem .4rem;
    top: .4rem;
    left: .4rem;
}

body.embed-mode .ob-content { padding: 8px .65rem 14px; }

/* Konfigurator brands grid — kompaktowy */
body.embed-mode .brands-grid { gap: .4rem; }
