body {
    margin: 0;
    padding-bottom: 78px;
}

.back-link {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.3);
    padding: 8px 12px;
    border-radius: 40px;
}

.header-inner {
    justify-content: space-between;
    flex-wrap: wrap;
}

.catalog-subtitle {
    color: #b7c8ea;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.theme-toggle-inline {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.14);
    color: #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.theme-toggle-inline svg {
    width: 18px;
    height: 18px;
}

main.container {
    padding-top: 26px;
    padding-bottom: 26px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.car-card {
    background: #121c32;
    border: 1px solid #2f4570;
    border-radius: 14px;
    overflow: hidden;
}

.car-photo {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #0e1629;
}

.car-body {
    padding: 14px;
}

.car-title {
    margin: 0 0 10px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rating-stars {
    position: relative;
    display: inline-block;
    line-height: 1;
    font-size: 20px;
    letter-spacing: 1px;
}

.rating-stars-bg {
    color: #4b5f89;
}

.rating-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #fbbf24;
}

.rating-value {
    font-size: 14px;
    color: #c5d0ea;
    font-weight: 600;
}

.meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    color: #c5d0ea;
    font-size: 14px;
}

.desc {
    margin: 12px 0 0;
    color: #dbe6ff;
    line-height: 1.45;
}

.empty {
    text-align: center;
    color: #9eb0d3;
    margin-top: 30px;
}

.hidden {
    display: none;
}

body.light-theme .car-card {
    background: #fff;
    border-color: #c3d6fb;
}

body.light-theme .car-photo {
    background: #e8f0ff;
}

body.light-theme .meta,
body.light-theme .desc,
body.light-theme .catalog-subtitle,
body.light-theme .rating-value {
    color: #163052;
}

body.light-theme .back-link {
    color: #0b1f36;
    background: #eef4ff;
    border-color: #bdd1f7;
}

body.light-theme .theme-toggle-inline {
    color: #1f4b8f;
    background: #eef4ff;
    border-color: #bdd1f7;
}
