:root {
    --bg: #f7fafc;
    --bg-card: #ffffff;
    --bg-hover: #eef3f7;
    --text: #15202b;
    --text-muted: #6b7c90;
    --primary: #0f766e;
    --primary-hover: #0b5f59;
    --accent: #0f766e;
    --accent-hover: #0b5f59;
    --danger: #dc2626;
    --border: rgba(21, 32, 43, 0.12);
    --radius: 18px;
    --shadow: 0 1px 0 rgba(21, 32, 43, 0.04), 0 18px 40px rgba(21, 48, 72, 0.08);
    --best: rgba(15, 118, 110, 0.12);
    --teal-soft: #d7f0ec;
    --sky: #dbe7f2;
    --ink-soft: #3d4f63;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background:
        radial-gradient(1200px 500px at 10% -10%, #d9e8f5 0%, transparent 55%),
        radial-gradient(900px 420px at 90% 0%, #d8f1ec 0%, transparent 50%),
        linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.main-content,
.find-section,
.catalog-form,
.find-panel,
.catalog-layout,
.page-main,
.page-with-sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

img, video, svg { max-width: 100%; height: auto; }
table { max-width: 100%; }

/* Header */
.site-header {
    background: rgba(247, 250, 252, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 64px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.05rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo em { font-style: normal; color: var(--primary); }
.logo-icon { display: none; }

.header-search {
    flex: 1 1 auto;
    max-width: 420px;
    min-width: 0;
    margin: 0 auto;
}
.header-search .find-search {
    padding: 0.1rem 0.1rem 0.1rem 0.8rem;
    border-radius: 12px;
}
.header-search .find-search input {
    font-size: 0.92rem;
    padding: 0.5rem 0;
    min-width: 0;
}
.header-search .find-search .btn-go {
    min-height: 2.35rem;
    padding: 0 0.95rem;
    border-radius: 10px;
    font-size: 0.86rem;
}
.header-search .search-suggest {
    z-index: 120;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.main-nav a:hover { color: var(--text); }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.car-generation {
    margin: 0.25rem 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ownership-panel {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
}
.ownership-panel h2 { margin: 0 0 0.5rem; }
.ownership-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
}
.ownership-controls {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.ownership-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
.ownership-controls input[type="range"] { width: 100%; }
.ownership-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.ownership-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}
.ownership-save {
    color: var(--accent);
    font-weight: 600;
}
.ownership-extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.ownership-card {
    padding: 1rem;
    border-radius: 10px;
    background: var(--bg-hover);
}
.ownership-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}
@media (max-width: 720px) {
    .ownership-prices { grid-template-columns: 1fr; }
}

/* Ads */
.ad-top-wrap {
    padding-top: 1rem;
}
.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.ad-slot--top { min-height: 100px; }
.ad-slot--sidebar { min-height: 250px; position: sticky; top: 80px; }
.ad-slot--incontent { min-height: 120px; }
.ad-slot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 1rem;
}
.ad-slot-placeholder small { opacity: 0.7; }

.page-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 960px) {
    .page-with-sidebar { grid-template-columns: 1fr; }
    .ad-slot--sidebar { position: static; }
}

/* Consent banner */
.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}
.consent-banner-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.consent-text { flex: 1; min-width: 220px; }
.consent-text p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.consent-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Legal */
.legal-page { padding-bottom: 3rem; }
.legal-article { max-width: 720px; }
.legal-article h1 { margin-bottom: 0.5rem; }
.legal-updated { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }
.legal-article h2 { margin: 1.5rem 0 0.5rem; font-size: 1.15rem; }
.legal-article p { color: var(--text-muted); margin-bottom: 0.75rem; }

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}
.footer-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--text); }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin: 1rem 0 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }

.compare-verdict {
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.compare-verdict h2 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}
.compare-verdict p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-muted);
}

.lang-switcher {
    display: inline-flex;
    gap: 0.35rem;
    margin-left: 0.5rem;
    align-items: center;
}
.lang-switcher .lang-link {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.55;
    padding: 0.15rem 0.35rem;
}
.lang-switcher .lang-link.active {
    opacity: 1;
    color: var(--primary);
    background: var(--teal-soft);
    border-radius: 8px;
}
.price-secondary {
    display: block;
    font-size: 0.78em;
    font-weight: 500;
    opacity: 0.7;
    margin-top: 0.15rem;
}
.car-price .price-secondary,
.car-price-large .price-secondary {
    display: inline;
    margin-left: 0.35rem;
    margin-top: 0;
}

.compare-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-badge {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    min-width: 1.25rem;
    text-align: center;
}

.compare-badge:empty,
.compare-badge[data-count="0"] { display: none; }

.admin-link {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* Hero */
.hero {
    background: transparent;
    padding: 1.75rem 0 0.5rem;
    margin-bottom: 0;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.hero p { color: var(--text-muted); font-size: 1.05rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }

.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); text-decoration: none; }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-hover); text-decoration: none; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* Filters */
.filter-panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.filter-main {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr) auto;
    gap: 1rem;
    padding: 1.5rem;
    align-items: end;
}

.filter-search { grid-column: span 1; }

.filter-advanced {
    display: none;
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.5rem 1.5rem;
    background: var(--bg);
}

.filter-advanced.open { display: block; }

.filter-advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.filter-advanced-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.filter-count-badge {
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    margin-left: 0.25rem;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.active-filters-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.filter-chip {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .filter-main {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    align-items: end;
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.filter-group input,
.filter-group select,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
}

.filter-group input:focus,
.filter-group select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-actions { display: flex; gap: 0.5rem; }

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-header h2 { font-size: 1.25rem; }

/* Car grid — fixed column counts (auto-fill was expanding past the viewport) */
.car-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
}

.car-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 0;
    max-width: 100%;
}

.car-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.car-card-image {
    position: relative;
    height: 180px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-card-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.5rem;
}

.car-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.car-placeholder.large { font-size: 6rem; }

.car-year {
    position: absolute;
    left: 0.7rem;
    bottom: 0.7rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-soft);
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.car-card-body { padding: 1.25rem; }

.car-card-body h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.car-card-body h3 a { color: var(--text); text-decoration: none; }
.car-card-body h3 a:hover { color: var(--primary); }

.car-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: var(--bg);
    border-radius: 6px;
    color: var(--text-muted);
}

.car-specs-preview {
    list-style: none;
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.car-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.car-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.car-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Car detail */
.car-detail { padding: 2rem 0 3rem; }

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.car-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .car-detail-header { grid-template-columns: 1fr; }
}

.car-detail-image {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.car-detail-image img,
.car-gallery-main img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
}

.car-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.car-gallery-main {
    position: relative;
    display: block;
    cursor: zoom-in;
    border-radius: calc(var(--radius) - 4px);
    outline: none;
}

.car-gallery-main:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 45%, transparent);
}

.car-gallery-zoom {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-card) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-muted) 35%, transparent);
    pointer-events: none;
    opacity: 0.85;
}

.car-gallery-zoom::before,
.car-gallery-zoom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--text);
}

.car-gallery-zoom::before {
    width: 0.7rem;
    height: 2px;
    transform: translate(-50%, -50%);
}

.car-gallery-zoom::after {
    width: 2px;
    height: 0.7rem;
    transform: translate(-50%, -50%);
}

.car-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.car-gallery-thumb {
    appearance: none;
    border: 2px solid transparent;
    background: color-mix(in srgb, var(--bg) 70%, var(--bg-card));
    border-radius: 0.5rem;
    padding: 0.2rem;
    width: 4.75rem;
    height: 3rem;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.car-gallery-thumb img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    display: block;
}

.car-gallery-thumb:hover {
    border-color: color-mix(in srgb, var(--primary) 55%, transparent);
}

.car-gallery-thumb.is-active {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.car-gallery-thumb:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(8, 16, 22, 0.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-dialog {
    position: relative;
    width: min(1100px, 100%);
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.lightbox-figure {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: min(78vh, 820px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.35rem;
}

.lightbox-caption {
    color: #f3f7f8;
    font-size: 0.95rem;
    text-align: center;
    min-height: 1.25em;
}

.lightbox-btn {
    appearance: none;
    border: 0;
    background: color-mix(in srgb, #0f1c24 70%, transparent);
    color: #fff;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    transition: background 0.15s ease;
}

.lightbox-btn:hover {
    background: color-mix(in srgb, var(--primary) 75%, #0f1c24);
}

.lightbox-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-btn[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .car-gallery-thumb {
        width: 4rem;
        height: 2.6rem;
    }

    .lightbox-prev { left: 0.15rem; }
    .lightbox-next { right: 0.15rem; }
}

.car-brand-label {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.car-detail-info h1 {
    font-size: 2rem;
    margin: 0.25rem 0 1rem;
}

.year-badge {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.car-price-large {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0;
}

.car-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.specs-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.specs-table-wrapper h2 { margin-bottom: 1rem; }

.suitability-panel {
    margin: 1.75rem 0 2rem;
    padding: 1.35rem 1.4rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
}
.suitability-panel h2 {
    margin: 0 0 0.45rem;
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.suitability-note {
    margin: 0 0 1.15rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}
.suitability-scores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
}
.suitability-score-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}
.suitability-score-label { font-weight: 650; }
.suitability-score-value {
    color: var(--text-muted);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.suitability-bar {
    height: 8px;
    border-radius: 999px;
    background: #e8eef2;
    overflow: hidden;
}
.suitability-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}
.suitability-text p {
    margin: 0 0 0.9rem;
    line-height: 1.6;
    color: var(--text);
}
.suitability-text p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
    .suitability-scores { grid-template-columns: 1fr; }
    .suitability-panel { padding: 1.1rem 1rem 1.2rem; }
}

/* RSS reviews + related news */
.reviews-header { margin: 1.25rem 0 1.5rem; }
.reviews-header h1 {
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
}
.reviews-intro {
    color: var(--text-muted);
    margin: 0 0 1rem;
    max-width: 48rem;
    line-height: 1.5;
}
.reviews-filter select {
    min-width: 220px;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
}
.reviews-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.review-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    padding: 0.9rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}
.review-card.no-image {
    grid-template-columns: 1fr;
}
.catalog-search-articles {
    margin: 0 0 1.5rem;
}
.catalog-search-articles .car-news-head {
    margin-bottom: 0.85rem;
}
.catalog-article-hits {
    margin-bottom: 0.5rem;
}
.review-card-media {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #eef3f7;
    aspect-ratio: 16 / 10;
}
.review-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.review-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.review-source { font-weight: 700; color: var(--ink-soft); }
.review-card-title {
    font-size: 1.1rem;
    margin: 0 0 0.4rem;
    line-height: 1.35;
}
.review-card-title a { color: inherit; text-decoration: none; }
.review-card-title a:hover { color: var(--primary); }
.review-card-excerpt {
    margin: 0 0 0.65rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}
.review-card-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.review-card-link:hover { text-decoration: underline; }

.car-news-panel {
    margin: 1.75rem 0 2rem;
    padding: 1.25rem 1.35rem 1.35rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
}
.car-news-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}
.car-news-head h2 {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
}
.car-news-all {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.car-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.car-news-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.75rem;
    align-items: start;
}
.car-news-item.no-thumb { grid-template-columns: 1fr; }
.car-news-thumb {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #eef3f7;
}
.car-news-thumb img {
    width: 96px;
    height: 64px;
    object-fit: cover;
    display: block;
}
.car-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}
.car-news-badge {
    background: var(--teal-soft);
    color: var(--primary-hover);
    font-weight: 800;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.68rem;
}
.car-news-title {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.35;
}
.car-news-title:hover { color: var(--primary); }
.car-news-disclaimer {
    margin: 0.9rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
@media (max-width: 720px) {
    .review-card { grid-template-columns: 1fr; }
}

.review-article-page {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
}
.review-article {
    max-width: none;
    width: 100%;
}
.review-article-header h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.2;
    margin: 0.35rem 0 0;
}
.review-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.review-article-meta a { color: var(--primary); text-decoration: none; font-weight: 600; }
.review-article-hero {
    margin: 1.25rem 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}
.review-article-hero img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
}
.review-article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
}
.review-article-body p { margin: 0 0 1rem; }
.review-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.review-article-body a { color: var(--primary); }
.review-article-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.review-article-disclaimer {
    flex: 1 1 100%;
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.review-brand-cars {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.review-brand-cars-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
@media (max-width: 720px) {
    .review-brand-cars-grid {
        grid-template-columns: 1fr;
    }
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    width: 40%;
    color: var(--text-muted);
    font-weight: 500;
}

/* Compare */
.compare-page { padding: 2rem 0 3rem; }

.compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.compare-table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.compare-table th,
.compare-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.compare-table .spec-label-col,
.compare-table .spec-label {
    text-align: left;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    position: sticky;
    left: 0;
    z-index: 1;
}

.compare-car-header {
    position: relative;
    padding: 0.5rem;
}

.compare-car-thumb {
    display: block;
    margin-bottom: 0.35rem;
}

.compare-car-thumb-img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 8px;
}

.image-attribution {
    margin-top: 0.65rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.image-attribution a {
    color: var(--primary);
}

.compare-car-header strong { display: block; font-size: 1rem; }
.compare-car-header span { color: var(--text-muted); }
.compare-car-header small { color: var(--text-muted); font-size: 0.8rem; }

.remove-compare {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
a.remove-compare:hover {
    color: white;
    opacity: 0.9;
}

.best-value {
    background: var(--best);
    color: var(--accent);
    font-weight: 600;
}

.empty-col { color: var(--text-muted); }

.add-car-slot {
    display: block;
    padding: 2rem 1rem;
    color: var(--text-muted);
    border: 2px dashed var(--border);
    border-radius: 8px;
    text-decoration: none;
}

.add-car-slot:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.empty-state h2 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.main-content { min-height: calc(100vh - 64px - 60px); }

/* Admin */
.admin-body {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    flex-shrink: 0;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    flex: 1;
}

.admin-nav a {
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--bg-hover);
    color: var(--text);
}

.admin-nav .inline-form { margin-top: auto; display: block; }
.admin-nav .logout-link {
    display: block;
    width: 100%;
    background: none;
    border: 0;
    padding: 0.65rem 1rem;
    text-align: left;
    font: inherit;
    cursor: pointer;
    color: var(--danger);
}

.admin-user {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-x: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-header h1 { font-size: 1.5rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label { color: var(--text-muted); font-size: 0.9rem; }

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-section h2 { font-size: 1.1rem; margin-bottom: 1rem; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.inline-form { display: inline; }

.status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.status-badge.active { background: rgba(16,185,129,0.2); color: var(--accent); }
.status-badge.inactive { background: rgba(239,68,68,0.2); color: var(--danger); }

.text-center { text-align: center; }

/* Forms */
.admin-form .form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-form .form-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .admin-two-col { grid-template-columns: 1fr; }
    .admin-sidebar { width: 100%; }
    .admin-body { flex-direction: column; }
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }

.alert ul { margin-left: 1.25rem; }

/* Login */
.login-card {
    max-width: 400px;
    margin: 10vh auto;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .logo-icon { font-size: 2.5rem; }
.login-header h1 { margin: 0.5rem 0 0.25rem; }
.login-header p { color: var(--text-muted); }

.login-form .form-group { margin-bottom: 1.25rem; }

.login-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.login-hint code {
    background: var(--bg);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.back-to-site {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.compare-btn.added {
    background: var(--accent);
}

.compare-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Image upload */
.form-group-wide { grid-column: 1 / -1; }

.image-upload-area {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.image-preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.image-preview img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.image-preview.empty {
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.preview-placeholder {
    display: block;
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.remove-image-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem;
    font-size: 0.8rem;
    color: var(--danger);
    cursor: pointer;
    border-top: 1px solid var(--border);
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.upload-controls input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .image-upload-area { grid-template-columns: 1fr; }
}

/* ===== Light catalog layout ===== */
.find-section { padding: 1rem 0 0.5rem; overflow: hidden; }
.catalog-form {
    display: grid;
    gap: 1.15rem;
    width: 100%;
    max-width: 100%;
}
.find-panel {
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
    padding: 1.1rem;
    display: grid;
    gap: 0.9rem;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.find-search-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}
.find-search {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #fff;
    border: 1px solid rgba(21,32,43,0.16);
    border-radius: 14px;
    padding: 0.2rem 0.2rem 0.2rem 1rem;
}
.find-search:focus-within,
.find-search-wrap.open .find-search {
    border-color: rgba(15,118,110,0.45);
    box-shadow: 0 0 0 4px rgba(15,118,110,0.12);
}
.search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 80;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    max-height: min(320px, 50vh);
    overflow-y: auto;
}
.search-suggest[hidden] { display: none !important; }
.search-suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}
.search-suggest-item:hover,
.search-suggest-item.active {
    background: var(--teal-soft);
    color: var(--primary-hover);
}
.search-suggest-item small {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
}
.search-suggest-type {
    display: inline-block;
    margin-right: 0.45rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #eef3f7;
    color: var(--ink-soft);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}
.find-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.85rem 0;
    color: var(--text);
}
.find-search .btn-go {
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 0 1.25rem;
    font-weight: 700;
    min-height: 3.1rem;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.find-search .btn-go:hover { background: var(--primary-hover); }
.quick-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.quick-chip {
    border: 1px solid rgba(21,32,43,0.16);
    background: #fff;
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.quick-chip:hover { border-color: rgba(15,118,110,0.35); color: var(--text); text-decoration: none; }
.quick-chip.on {
    background: var(--teal-soft);
    border-color: transparent;
    color: var(--primary-hover);
}

.brands-rail-section { padding: 0.25rem 0 1.25rem; }
.brands-rail-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.65rem;
}
.brands-rail-head h2 {
    font-family: Syne, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.brands-rail-head a { color: var(--primary); font-weight: 700; font-size: 0.88rem; }
.brand-rail-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.brand-rail-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink-soft);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.brand-rail-btn:hover:not(:disabled) {
    background: var(--teal-soft);
    border-color: transparent;
    color: var(--primary-hover);
}
.brand-rail-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.brand-rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.15rem 0.1rem 0.35rem;
    scrollbar-width: none;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.brand-rail::-webkit-scrollbar { display: none; }
.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.95rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
    flex: 0 0 auto;
}
.brand-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(15,118,110,0.3);
    box-shadow: 0 10px 24px rgba(21,48,72,0.08);
    text-decoration: none;
}
.brand-pill.on { background: var(--teal-soft); border-color: transparent; }
.brand-pill i {
    width: 1.55rem; height: 1.55rem; border-radius: 8px;
    display: grid; place-items: center;
    background: var(--sky); font-style: normal;
    font-size: 0.7rem; font-weight: 800; color: var(--ink-soft);
}
.brand-pill small { color: var(--text-muted); font-weight: 600; }

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 1.35rem;
    padding-bottom: 5.5rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.catalog-filters {
    position: sticky;
    top: 84px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    min-width: 0;
    max-width: 100%;
}
.page-main { min-width: 0; max-width: 100%; overflow: hidden; }
.catalog-filters h3 {
    font-family: Syne, sans-serif;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}
.catalog-filters .filter-group { margin-bottom: 0.85rem; }
.catalog-filters .range-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}
.catalog-filters .filter-actions {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.5rem;
}
.catalog-filters .filter-actions .btn { width: 100%; }

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.results-bar h2 {
    font-family: Syne, sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.results-bar h2 span {
    display: block;
    font-family: Manrope, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.25rem;
    letter-spacing: 0;
}
.toolbar { display: flex; align-items: center; gap: 0.5rem; }
.view-toggle {
    display: flex;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 11px;
    overflow: hidden;
}
.view-toggle button {
    width: 2.4rem; height: 2.4rem;
    display: grid; place-items: center;
    border: 0; background: transparent;
    color: var(--text-muted); cursor: pointer;
}
.view-toggle button.on { background: var(--teal-soft); color: var(--primary-hover); }

.car-card-main { min-width: 0; }

.car-grid.list-view {
    grid-template-columns: 1fr;
}
.car-grid.list-view .car-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: stretch;
}
.car-grid.list-view .car-card-image {
    height: 100%;
    min-height: 140px;
    aspect-ratio: auto;
}
.car-grid.list-view .car-card-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
    padding: 1rem 1.15rem;
}
.car-grid.list-view .car-card-main {
    flex: 1 1 auto;
    min-width: 0;
}
.car-grid.list-view .car-card-main h3 {
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: normal;
}
.car-grid.list-view .car-tags {
    flex-wrap: nowrap;
    overflow: hidden;
    margin-bottom: 0.4rem;
}
.car-grid.list-view .car-specs-preview {
    flex-wrap: nowrap;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
}
.car-grid.list-view .car-card-footer {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.55rem;
    border-top: 0;
    padding-top: 0;
    min-width: 220px;
    max-width: 280px;
}
.car-grid.list-view .car-price {
    white-space: normal;
    text-align: right;
    font-size: 0.92rem;
    line-height: 1.3;
}
.car-grid.list-view .car-actions {
    flex-wrap: nowrap;
}

.compare-related {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.compare-related h2 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
}
.compare-related-note {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.compare-related-list {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 1;
    column-gap: 1.5rem;
}
.compare-related-list li {
    break-inside: avoid;
    margin: 0 0 0.35rem;
}
.compare-related-list a {
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1.35;
}
.compare-related-list a span {
    color: var(--text-muted);
    font-weight: 500;
}
@media (min-width: 700px) {
    .compare-related-list { columns: 2; }
}
@media (min-width: 1100px) {
    .compare-related-list { columns: 3; }
}

.car-card-image {
    aspect-ratio: 16 / 10;
    height: auto;
    background: linear-gradient(180deg, #edf3f8, #e4ecf4);
}
.tag { background: #eef3f7; border-radius: 999px; font-weight: 700; }
.car-price { font-family: Syne, sans-serif; letter-spacing: -0.02em; }

.compare-dock {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 2rem));
    background: #15202b;
    color: #fff;
    border-radius: 18px;
    padding: 0.85rem 1rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 18px 50px rgba(10, 20, 30, 0.35);
    z-index: 150;
}
.compare-dock.visible { display: flex; }
.compare-dock-top {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}
.compare-dock-cars {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}
.compare-dock-thumbs { display: flex; gap: 0.35rem; }
.compare-dock-thumbs img {
    width: 44px; height: 32px; object-fit: cover;
    border-radius: 7px; border: 1px solid rgba(255,255,255,0.2);
    background: #2a3a4a;
}
.compare-dock-cars p {
    font-size: 0.9rem;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.compare-dock-cars p span { color: #9fefe4; }
.compare-dock-toggle {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.compare-dock-toggle:hover,
.compare-dock-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}
.compare-dock-chevron {
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform 0.2s ease;
}
.compare-dock.minimized .compare-dock-chevron {
    transform: rotate(-135deg) translate(-1px, -1px);
}
.compare-dock-side {
    display: none;
}
.compare-dock .btn-go {
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 0.65rem 1.1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border: 0;
}
.compare-dock .btn-go:hover { background: var(--primary-hover); text-decoration: none; color: #fff; }

.tires-panel {
    margin-top: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.tires-panel h2 {
    font-family: Syne, sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}
.tires-note {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}
.tires-table { width: 100%; border-collapse: collapse; }
.tires-table th, .tires-table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.92rem;
}
.tires-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; }
.tire-oem {
    display: inline-block;
    background: var(--teal-soft);
    color: var(--primary-hover);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    margin-left: 0.35rem;
}

.main-nav a {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
}
.main-nav a:hover { background: rgba(15,118,110,0.08); text-decoration: none; }
.compare-link {
    background: #15202b !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 0.5rem 0.9rem !important;
}
.compare-link:hover { color: #fff !important; opacity: 0.92; }

@media (max-width: 1200px) {
    .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .main-nav { gap: 0.5rem; }
    .main-nav a { padding: 0.4rem 0.65rem; font-size: 0.88rem; }
    .catalog-layout { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 1rem; }
}

@media (max-width: 960px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        padding-bottom: 6.5rem;
    }
    .catalog-filters {
        position: static;
        order: -1;
    }
    .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .car-grid.list-view { grid-template-columns: 1fr; }
    .car-grid.list-view .car-card {
        grid-template-columns: 140px minmax(0, 1fr);
    }
    .car-grid.list-view .car-card-body { min-width: 0; }
    .find-panel { padding: 0.9rem; }
    .results-bar { align-items: flex-start; }
    .toolbar { width: 100%; flex-wrap: wrap; }
    .toolbar .filter-group { flex: 1 1 auto; min-width: 0; max-width: 100%; }
}

@media (max-width: 720px) {
    .container { padding: 0 0.9rem; }
    .header-inner {
        height: auto;
        min-height: 56px;
        padding: 0.55rem 0;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .logo { font-size: 1.2rem; }
    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin: 0;
    }
    .header-search .find-search {
        flex-direction: row;
        align-items: center;
        padding: 0.15rem 0.15rem 0.15rem 0.7rem;
        gap: 0.4rem;
    }
    .header-search .find-search input {
        padding: 0.45rem 0;
        font-size: 0.9rem;
        width: auto;
    }
    .header-search .find-search .btn-go {
        width: auto;
        min-height: 2.2rem;
        padding: 0 0.8rem;
    }
    .main-nav {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
        gap: 0.35rem;
        flex-wrap: wrap;
    }
    .main-nav > a:first-child { display: none; }
    .compare-link {
        font-size: 0.82rem !important;
        padding: 0.45rem 0.75rem !important;
    }
    .lang-switcher { margin-left: 0; border-left: 0; padding-left: 0; }

    .hero { padding: 1.1rem 0 0.25rem; }
    .hero h1 { font-size: 1.35rem; }
    .hero p { font-size: 0.95rem; }

    .find-section .find-search {
        flex-direction: column;
        align-items: stretch;
        padding: 0.55rem;
        gap: 0.45rem;
    }
    .find-section .find-search input {
        padding: 0.65rem 0.35rem;
        font-size: 1rem;
        width: 100%;
    }
    .find-section .find-search .btn-go {
        width: 100%;
        min-height: 2.75rem;
    }

    .quick-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.15rem;
        scrollbar-width: thin;
    }
    .quick-chip { flex: 0 0 auto; }

    .brand-rail {
        margin: 0 -0.25rem;
        padding: 0 0.25rem 0.4rem;
    }

    .car-grid,
    .car-grid.list-view {
        grid-template-columns: 1fr;
    }
    .car-grid.list-view .car-card {
        grid-template-columns: 1fr;
    }
    .car-grid.list-view .car-card-image {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
    .car-grid.list-view .car-card-body {
        flex-direction: column;
        align-items: stretch;
    }
    .car-grid.list-view .car-card-footer {
        align-items: stretch;
        min-width: 0;
        width: 100%;
    }
    .car-grid.list-view .car-card-main h3 {
        white-space: normal;
    }
    .car-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .brand-rail-btn {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }
    .car-actions {
        width: 100%;
    }
    .car-actions .btn {
        flex: 1;
    }
    .car-specs-preview {
        flex-wrap: wrap;
        gap: 0.5rem 0.85rem;
    }

    .compare-dock {
        left: 0.65rem;
        right: 0.65rem;
        width: auto;
        transform: none;
        bottom: 0.65rem;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
        gap: 0.65rem;
        border-radius: 14px;
        transition: left 0.2s ease, right 0.2s ease, padding 0.2s ease, border-radius 0.2s ease, width 0.2s ease;
    }
    .compare-dock-top {
        width: 100%;
        gap: 0.4rem;
    }
    .compare-dock-cars {
        flex: 1;
        min-width: 0;
        width: auto;
    }
    .compare-dock-cars p {
        white-space: normal;
        font-size: 0.84rem;
        line-height: 1.3;
    }
    .compare-dock-toggle { display: inline-flex; }
    .compare-dock .btn-go {
        width: 100%;
        text-align: center;
    }
    .compare-dock.minimized {
        width: auto;
        max-width: none;
        flex-direction: column;
        align-items: center;
        padding: 0.55rem 0.5rem;
        gap: 0.35rem;
        border-radius: 18px;
        cursor: pointer;
        bottom: 5.5rem;
    }
    .compare-dock.minimized.dock-right {
        left: auto;
        right: 0.65rem;
        transform: none;
    }
    .compare-dock.minimized.dock-left {
        left: 0.65rem;
        right: auto;
        transform: none;
    }
    .compare-dock.minimized .compare-dock-top {
        width: auto;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
    }
    .compare-dock.minimized .compare-dock-cars {
        flex: 0 0 auto;
        width: auto;
    }
    .compare-dock.minimized .compare-dock-thumbs {
        flex-direction: column;
        gap: 0.3rem;
    }
    .compare-dock.minimized .compare-dock-cars p,
    .compare-dock.minimized .btn-go {
        display: none;
    }
    .compare-dock.minimized .compare-dock-thumbs img {
        width: 40px;
        height: 28px;
    }
    .compare-dock.minimized .compare-dock-toggle {
        order: 1;
    }
    .compare-dock-side {
        display: none;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        cursor: pointer;
        font-size: 0.85rem;
        line-height: 1;
    }
    .compare-dock.minimized .compare-dock-side {
        display: inline-flex;
    }
    .compare-dock-side:hover,
    .compare-dock-side:focus-visible {
        background: rgba(255, 255, 255, 0.22);
        outline: none;
    }
    .compare-dock-count {
        display: none;
        min-width: 1.35rem;
        height: 1.35rem;
        padding: 0 0.3rem;
        border-radius: 999px;
        background: var(--primary);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 800;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    .compare-dock.minimized .compare-dock-count {
        display: inline-flex;
    }

    .tires-panel { padding: 1rem; }
    .tires-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .car-detail-header { grid-template-columns: 1fr; gap: 1.25rem; }
    .car-detail-info h1 { font-size: 1.45rem; }
    .consent-banner-inner { flex-direction: column; align-items: stretch; }
    .consent-actions { width: 100%; }
    .consent-actions .btn { flex: 1; }
}

@media (max-width: 420px) {
    .logo { font-size: 1.1rem; }
    .find-panel { border-radius: 14px; padding: 0.75rem; }
    .catalog-filters { padding: 0.85rem; }
    .btn-sm { padding: 0.45rem 0.6rem; }
}
