*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    background: #f5f5f5;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,.35);
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #111;
    color: #fff;
}

header nav .logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}
header nav .logo::after {
    content: '.';
    color: #e63946;
}

header nav ul { list-style: none; display: flex; gap: 1.75rem; align-items: center; }
header nav ul a { color: #aaa; font-size: .9rem; font-weight: 500; transition: color .2s; }
header nav ul a:hover { color: #fff; }
header nav ul .lang-switch {
    border: 1px solid #444;
    border-radius: 3px;
    padding: .15rem .5rem;
    font-size: .78rem;
    color: #888;
}
header nav ul .lang-switch:hover { color: #fff; border-color: #888; }

/* ── Main ── */
main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem; }

/* ── Footer ── */
footer {
    background: #111;
    color: #666;
    margin-top: 5rem;
    padding: 2.25rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.footer-brand { display: flex; flex-direction: column; gap: .35rem; }
.footer-name   { color: #ccc; font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.footer-location { font-size: .85rem; }
.footer-hours  { font-size: .8rem; color: #555; }
.footer-phones { display: flex; flex-direction: column; gap: .1rem; font-size: .85rem; }

.footer-details { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; }

.footer-copy { font-size: .78rem; text-align: right; align-self: end; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: .65rem 1.5rem;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
    transition: background .18s, transform .15s;
}
.btn:hover { background: #c1121f; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: #3a3a3a; }
.btn-secondary:hover { background: #222; }

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(145deg, #111 0%, #1f1f1f 60%, #141414 100%);
    color: #fff;
    border-radius: 10px;
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,.12) 0%, transparent 65%);
    pointer-events: none;
}
.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: .6rem;
    line-height: 1.15;
}
.hero p { color: #888; font-size: 1.05rem; margin-bottom: 2rem; }

/* ── Car grid ── */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
    gap: 1.25rem;
    margin-top: 1.25rem;
    justify-content: start;
}

.car-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}
.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,.08), 0 12px 28px rgba(0,0,0,.12);
}
.car-card a { display: block; color: inherit; }
.car-card img { width: 100%; height: 190px; object-fit: cover; display: block; }

.no-image {
    height: 190px;
    background: #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: .85rem;
}

.car-info { padding: 1rem 1.1rem 1.2rem; }

.car-info-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .2rem;
}
.car-info-header h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.car-year-badge {
    font-size: .75rem;
    font-weight: 600;
    color: #888;
    background: #f0f0f0;
    border-radius: 3px;
    padding: .1rem .4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.car-info .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #e63946;
    letter-spacing: -.02em;
    margin: .3rem 0 .6rem;
}

.car-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.car-tags span {
    font-size: .75rem;
    color: #555;
    background: #f5f5f5;
    border-radius: 3px;
    padding: .15rem .45rem;
}

/* ── Listings page ── */
.listings-page { max-width: 1100px; }

.listings-results h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}
.listings-results h1 span {
    font-size: .85rem;
    font-weight: 500;
    color: #999;
    margin-left: .25rem;
}

/* ── Car detail ── */
.car-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.06);
}
#main-image { width: 100%; border-radius: 8px; display: block; }
.no-image.large { height: 400px; }

.thumbnails {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}
.thumbnails .thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .65;
    transition: opacity .15s, border-color .15s;
}
.thumbnails .thumb:hover { opacity: 1; }
.thumbnails .thumb.active { border-color: #e63946; opacity: 1; }

.clickable { cursor: zoom-in; }

.car-detail-info h1 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: .4rem;
}
.car-detail-info .price {
    font-size: 2rem;
    font-weight: 800;
    color: #e63946;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
}

.specs { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.specs th, .specs td { padding: .55rem .4rem; border-bottom: 1px solid #f0f0f0; text-align: left; font-size: .9rem; }
.specs th { color: #888; font-weight: 600; width: 42%; }
.specs td { font-weight: 500; }

.autoplius-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    font-weight: 600;
    color: #e63329;
    text-decoration: none;
    margin-bottom: 1.25rem;
}
.autoplius-link:hover { text-decoration: underline; }

.reg-tax {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    background: #fafafa;
    border-left: 3px solid #e63946;
    padding: .65rem 1rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.reg-tax-label { font-size: .82rem; color: #888; }
.reg-tax-amount { font-size: 1.15rem; font-weight: 700; color: #1a1a1a; }
.reg-tax-note { font-size: .78rem; color: #aaa; }

.description { margin-bottom: 1.5rem; }
.description h2 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: #555; text-transform: uppercase; letter-spacing: .04em; }
.description p { font-size: .95rem; color: #444; }

.back-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: 1.5rem; color: #888; font-size: .9rem; transition: color .15s; }
.back-link:hover { color: #1a1a1a; }

/* Car detail phone CTA */
.car-cta { margin-top: 1.5rem; }
.car-cta-label { font-size: .82rem; color: #888; margin-bottom: .5rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.car-phone-btn { font-size: 1.05rem; padding: .8rem 1.75rem; width: 100%; }

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.94);
    z-index: 1000;
}
.lightbox.open { display: block; }

.lightbox-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lightbox-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.lightbox-track img {
    flex-shrink: 0;
    width: 100vw;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-close {
    position: fixed; top: 1rem; right: 1.25rem;
    background: none; border: none; color: #fff;
    font-size: 2.5rem; line-height: 1; cursor: pointer; opacity: .7;
    z-index: 1001;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev, .lightbox-next {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.08); border: none; color: #fff;
    font-size: 3rem; line-height: 1; padding: .5rem .9rem;
    cursor: pointer; border-radius: 4px; transition: background .15s;
    z-index: 1001;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
    position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.5); font-size: .85rem; z-index: 1001;
}

/* ── Rentals page ── */
.rentals-page h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 1.75rem;
}
.rentals-empty { color: #888; }

.rental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
    gap: 1.5rem;
    justify-content: start;
}

.rental-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
    color: inherit;
}
.rental-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,.08), 0 12px 28px rgba(0,0,0,.12);
}

.rental-card-image img { width: 100%; height: 230px; object-fit: cover; display: block; }
.rental-card-image .no-image { height: 230px; }

.rental-card-body { padding: 1.25rem 1.35rem 1.5rem; }
.rental-card-body h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.rental-card-meta {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: .85rem;
}
.rental-card-meta span {
    font-size: .75rem;
    color: #555;
    background: #f5f5f5;
    border-radius: 3px;
    padding: .15rem .45rem;
}

.rental-price { margin-top: .25rem; }
.rental-price-label { font-size: .78rem; color: #888; margin-right: .25rem; }
.rental-price strong { font-size: 1.6rem; font-weight: 800; color: #e63946; letter-spacing: -.03em; }
.rental-price-unit { font-size: .85rem; color: #888; }

/* ── Rental detail ── */
.rental-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.06);
}
.rental-detail-images #main-image { width: 100%; border-radius: 8px; display: block; }
.rental-detail-info h1 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.rental-pricing { margin: 1.5rem 0; }
.rental-pricing h2 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #888; margin-bottom: .2rem; }
.rental-pricing-subtitle { font-size: .82rem; color: #aaa; margin-bottom: .75rem; }

.pricing-display { width: 100%; border-collapse: collapse; }
.pricing-display th, .pricing-display td { padding: .55rem .4rem; border-bottom: 1px solid #f0f0f0; text-align: left; }
.pricing-display th { color: #888; font-weight: 600; font-size: .88rem; width: 55%; }
.pricing-display td { font-size: 1.05rem; font-weight: 700; }

.rental-cta { margin-top: 1.5rem; }
.rental-cta-label { font-size: .82rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.rental-phone-btn { font-size: 1.05rem; padding: .8rem 1.75rem; width: 100%; }

/* ── Contact page ── */
.contact-page h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 1.75rem;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; align-items: start; }

.contact-card, .contact-map-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.06);
}
.contact-card h2, .contact-map-card h2 {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #888;
    margin-bottom: 1.25rem;
}

.contact-table { width: 100%; border-collapse: collapse; }
.contact-table th, .contact-table td {
    padding: .6rem .25rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: top;
    font-size: .9rem;
}
.contact-table th { color: #888; font-weight: 600; width: 42%; white-space: nowrap; }
.contact-table a { color: #e63946; font-weight: 600; }
.contact-table a:hover { text-decoration: underline; }

.contact-hours { margin-top: 1.25rem; font-size: .85rem; color: #888; }
.contact-car-ref { margin-top: .75rem; font-size: .85rem; color: #aaa; }

.map-wrapper { height: 340px; border-radius: 7px; overflow: hidden; margin-top: .5rem; }
.map-wrapper iframe { width: 100%; height: 100%; display: block; }

/* ── Featured section ── */
.featured h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}

/* ── Hamburger — hidden on desktop ── */
.nav-toggle { display: none; }

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {
    .car-detail { grid-template-columns: 1fr; }
    .rental-detail { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

}

/* ── Phone (≤ 640px) ── */
@media (max-width: 640px) {
    header nav { position: relative; flex-wrap: wrap; padding: .85rem 1.25rem; }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: .25rem .5rem;
        line-height: 1;
    }

    header nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: .5rem 0 .25rem;
    }
    header nav ul li a {
        display: block;
        padding: .65rem 0;
        border-bottom: 1px solid #222;
        font-size: .95rem;
    }
    header nav ul li:last-child a { border-bottom: none; }
    header nav.open ul { display: flex; }

    main { padding: 1.25rem 1rem; }

    .hero { padding: 2.75rem 1.25rem; border-radius: 8px; margin-bottom: 2rem; }
    .hero h1 { font-size: 1.85rem; }

    .car-grid { grid-template-columns: 1fr; gap: 1rem; justify-content: stretch; }
    .car-grid .car-card { max-width: none; }

    .car-detail { padding: 1rem; gap: 1.5rem; }
    .car-detail-info h1 { font-size: 1.35rem; }
    .car-detail-info .price { font-size: 1.6rem; margin-bottom: 1rem; }

    .thumbnails .thumb { width: 64px; height: 48px; }

    .lightbox-prev, .lightbox-next { font-size: 2.2rem; padding: .75rem .8rem; }
    .lightbox-prev { left: .25rem; }
    .lightbox-next { right: .25rem; }

    .back-link { margin-top: 1rem; }

    .rental-grid { grid-template-columns: 1fr; justify-content: stretch; }
    .rental-card-image img { height: 200px; }
    .rental-detail { padding: 1rem; gap: 1.25rem; }
    .rental-detail-info h1 { font-size: 1.35rem; }

    .footer-inner { grid-template-columns: 1fr; gap: .75rem; }
    .footer-copy  { text-align: left; }
}
