:root {
  --red: #c8161d;          /* brand accent – used sparingly */
  --red-dark: #a01217;
  --dark: #111111;
  --text: #161616;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --border: #e6e6e3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--dark); color: #fff;
  border: 1px solid var(--dark);
  padding: 12px 22px;
  border-radius: 10px;
  font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--bg-alt); border-color: #d6d6d2; }
.btn--light { background: #fff; color: var(--dark); border-color: #fff; }
.btn--light:hover { background: #ededeb; border-color: #ededeb; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--small { padding: 8px 14px; font-size: .88rem; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }
.link-btn:hover { color: var(--text); }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: #fff;
  transition: background .3s, color .3s, box-shadow .3s;
}
.header.is-solid {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  color: var(--text);
  box-shadow: 0 1px 0 var(--border);
}
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; letter-spacing: 1.5px; font-size: .95rem; }
.logo__img { width: 36px; height: 36px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.logo__text { white-space: nowrap; font-weight: 500; }
.logo__text strong { font-weight: 800; }
.nav { display: flex; gap: 30px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .85; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.header__right { display: flex; align-items: center; gap: 8px; }
.login-btn {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; font-size: .88rem; font-weight: 500;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid currentColor; opacity: .75;
  transition: opacity .2s;
}
.login-btn:hover { opacity: 1; }
.login-btn svg { width: 16px; height: 16px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; color: inherit; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .25s; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ===== Hero slideshow ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: min(92svh, 860px);
  display: flex; align-items: center;
  color: #fff; background: #0b0b0b;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: -24px;               /* hides blurred edges */
  background-size: cover; background-position: center;
  filter: blur(2px) brightness(.68) saturate(.92) contrast(1.05);
  opacity: 0; transform: scale(1.1);
  transition: opacity 1.6s ease, transform 8s ease-out;
}
.hero__slide.is-active { opacity: 1; transform: scale(1.02); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.08) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 70%, rgba(0,0,0,.45) 100%);
}
.hero__content { position: relative; padding: calc(var(--header-h) + 40px) 0 96px; }
.hero__eyebrow { font-size: .82rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; opacity: .8; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.07; font-weight: 700; letter-spacing: -1.5px; max-width: 760px; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 520px; margin: 22px 0 34px; color: rgba(255,255,255,.85); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__count { display: flex; align-items: center; gap: 10px; margin-top: 40px; font-size: .92rem; color: rgba(255,255,255,.8); }
.hero__count .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); }
.hero__dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero__dots button {
  width: 28px; height: 3px; border: 0; border-radius: 2px; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background .3s, width .3s;
}
.hero__dots button.is-active { background: #fff; width: 44px; }

/* ===== Trust strip ===== */
.trust { border-bottom: 1px solid var(--border); }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 28px 20px; }
.trust__item + .trust__item { border-inline-start: 1px solid var(--border); }
.trust__item svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trust__item strong { display: block; font-size: .95rem; font-weight: 600; }
.trust__item span { font-size: .85rem; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-alt); }
.section__head { margin-bottom: 40px; max-width: 640px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.8px; line-height: 1.15; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }

/* ===== Filters ===== */
.filters { display: grid; grid-template-columns: 1.7fr repeat(5, 1fr) 1.3fr auto; gap: 8px; align-items: center; margin-bottom: 36px; }
.filters input, .filters select,
.contact__form input, .contact__form select, .contact__form textarea {
  width: 100%; font: inherit; font-size: .92rem;
  padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.filters select { appearance: none; -webkit-appearance: none; padding-inline-end: 30px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%236e6e73' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; }
.filters input:focus, .filters select:focus,
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.results-count { color: var(--muted); font-size: .92rem; }

/* ===== Car cards ===== */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 40px 24px; }
.car { cursor: pointer; outline: none; }
.car__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.car__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.car:hover .car__img img, .car:focus-visible .car__img img { transform: scale(1.04); }
.car:focus-visible .car__img { box-shadow: 0 0 0 3px var(--text); }
.placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #a5a5a0; font-size: .82rem; font-weight: 500;
}
.placeholder svg { width: 38%; opacity: .45; }
.badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(255,255,255,.95); color: var(--text);
  font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .3px;
}
.badge--sold { background: var(--dark); color: #fff; }
.car.is-sold .car__img img, .car.is-sold .placeholder { filter: grayscale(1); opacity: .6; }
.car__body { padding: 16px 2px 0; }
.car__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.car__title { font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.price { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.car__meta { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.empty a { color: var(--text); }

/* ===== Workshop ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.service { padding: 28px 0; border-top: 1px solid #dcdcd8; }
.service__num { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.service h3 { font-size: 1.1rem; font-weight: 600; margin: 8px 0 6px; }
.service p { color: var(--muted); font-size: .95rem; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; display: grid; gap: 0; }
.checklist li { position: relative; padding-block: 16px; padding-inline: 36px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.checklist li:first-child { border-top: 1px solid var(--border); }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 50%;
  width: 14px; height: 8px; margin-top: -6px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}
.sourcing {
  margin-top: 72px; padding: 36px 40px;
  border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.sourcing h3 { font-size: 1.25rem; font-weight: 600; }
.sourcing p { color: var(--muted); margin-top: 4px; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.info-list { margin-top: 32px; display: grid; }
.info-list div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid #dcdcd8; }
.info-list dt { color: var(--muted); font-size: .9rem; }
.info-list dd a { color: var(--text); text-decoration: none; border-bottom: 1px solid #c9c9c4; }
.info-list dd a:hover { border-color: var(--text); }
.contact__form { background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); display: grid; gap: 16px; }
.contact__form label { display: grid; gap: 6px; font-weight: 500; font-size: .88rem; }
.contact__form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.optional { color: var(--muted); font-weight: 400; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-note:empty { display: none; }

/* ===== Footer ===== */
.footer { padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .logo { color: var(--text); font-size: .85rem; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__box {
  position: relative; background: #fff; border-radius: 18px;
  width: min(960px, 100%); max-height: 92vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  animation: pop .25s ease-out;
}
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.15);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.detail { display: grid; grid-template-columns: 1.25fr 1fr; }
.detail__gallery { background: var(--bg-alt); }
.detail__main { aspect-ratio: 4 / 3; }
.detail__main img { width: 100%; height: 100%; object-fit: cover; }
.detail__thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.detail__thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .55; transition: opacity .2s; }
.detail__thumbs img.active, .detail__thumbs img:hover { opacity: 1; }
.detail__info { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.detail__info h3 { font-size: 1.45rem; font-weight: 700; line-height: 1.2; letter-spacing: -.3px; }
.detail__info .price { font-size: 1.6rem; margin-top: -8px; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; font-size: .9rem; }
.spec-table div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); padding: 8px 0; }
.spec-table dt { color: var(--muted); }
.spec-table dd { font-weight: 500; text-align: end; }
.detail__desc { color: #4a4a4f; font-size: .95rem; }
.detail__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .filters { grid-template-columns: repeat(3, 1fr); }
  .filters #f-search { grid-column: 1 / -1; }
  .filters .link-btn { justify-self: start; }
  .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-inline-start: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: #fff; color: var(--text);
    padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); opacity: 1; }
  .header__right { margin-inline-start: auto; }
  .about, .contact, .detail { grid-template-columns: 1fr; gap: 40px; }
  .services { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .login-btn span { display: none; }
  .login-btn { padding: 7px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .trust__inner { grid-template-columns: 1fr; }
  .trust__item { padding: 18px 4px; }
  .trust__item + .trust__item { border-inline-start: 0; border-top: 1px solid var(--border); }
  .services { grid-template-columns: 1fr; }
  .form-row, .spec-table { grid-template-columns: 1fr; }
  .contact__form, .detail__info { padding: 22px; }
  .sourcing { padding: 26px 22px; margin-top: 56px; }
  .hero__dots { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide { transition: opacity .6s; transform: none !important; }
}

/* ===== Admin ===== */
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.admin-body { background: var(--bg-alt); min-height: 100vh; }
.admin-body .header { position: sticky; }
.admin-tag { margin-left: 6px; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.admin-header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.admin-link { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .92rem; }
.admin-link:hover { color: var(--text); }
.demo-banner { background: #fff7d6; color: #6b5300; border-bottom: 1px solid #f0de94; padding: 10px 16px; text-align: center; font-size: .92rem; }

.login { display: grid; place-items: center; padding: 72px 16px; }
.login__card { width: min(400px, 100%); background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 14px; }
.login__card h1 { font-size: 1.6rem; }
.login__card p { color: var(--muted); margin-top: -8px; }
.login__card label, .car-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.login__card input, .car-form input:not([type=checkbox]), .car-form select, .car-form textarea, .dash-actions input {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
}
.login__card input:focus, .car-form input:focus, .car-form select:focus, .car-form textarea:focus, .dash-actions input:focus {
  outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.form-error { color: var(--red); font-weight: 600; font-size: .9rem; min-height: 1.2em; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--danger:hover { color: var(--red); }

.dashboard { padding-top: 40px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { font-size: 1.8rem; font-weight: 800; }
.dash-actions { display: flex; gap: 10px; }
.dash-actions input { width: 220px; }

.admin-list { display: grid; gap: 12px; }
.admin-row {
  display: grid; grid-template-columns: 120px 1fr auto auto; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px;
}
.admin-row.is-sold .admin-row__img { filter: grayscale(1); opacity: .6; }
.admin-row__img { width: 120px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e9ebef; display: grid; place-items: center; color: #8a909b; font-size: .8rem; }
.admin-row__img img { width: 100%; height: 100%; object-fit: cover; }
.admin-row__info { display: grid; gap: 2px; }
.admin-row__info .muted { font-size: .88rem; }
.admin-row__tags { display: flex; gap: 6px; margin-top: 4px; }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(225,6,0,.1); color: var(--red); }
.tag--dark { background: #111317; color: #fff; }
.tag--green { background: #dcfce7; color: #166534; }
.admin-row__price { font-size: 1.2rem; font-weight: 800; }
.admin-row__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-row__actions .btn--ghost { color: var(--text); border-color: var(--border); }
.admin-empty { text-align: center; padding: 48px 0; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.admin-empty .btn--ghost { color: var(--text); }

.editor { width: min(760px, 100%); }
.car-form { padding: 28px; display: grid; gap: 18px; }
.car-form h2 { font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.checks { display: flex; gap: 24px; flex-wrap: wrap; }
.car-form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.photos { border: 1px dashed #cdd1d8; border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.photos__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-grid:empty { display: none; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e9ebef; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__cover { position: absolute; left: 6px; bottom: 6px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.photo__btn { position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; font-size: .95rem; line-height: 1; }
.photo__btn--remove { left: auto; right: 6px; font-size: 1.2rem; }
.photo-add { justify-self: start; color: var(--text) !important; border-color: var(--border) !important; }
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; }
.editor-actions .btn--ghost { color: var(--text); border-color: var(--border); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 8px; box-shadow: var(--shadow); font-weight: 500; max-width: calc(100% - 32px); }

@media (max-width: 760px) {
  .admin-row { grid-template-columns: 90px 1fr; }
  .admin-row__img { width: 90px; }
  .admin-row__price { grid-column: 2; }
  .admin-row__actions { grid-column: 1 / -1; justify-content: stretch; }
  .admin-row__actions .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .dash-actions { width: 100%; }
  .dash-actions input { width: auto; flex: 1; }
  .admin-header-actions { gap: 12px; }
  .car-form { padding: 22px 16px; }
}
@media (max-width: 420px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ===== Contact form status ===== */
.honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-note--ok { color: #166534; font-weight: 500; }
.form-note--error { color: var(--red); font-weight: 500; }
.form-note a { color: inherit; }

/* ===== Map ===== */
.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; background: #e9e9e6; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.directions { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--text); }
.directions:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Phone refinements ===== */
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  .container { width: calc(100% - 32px); }
  .logo__img { width: 32px; height: 32px; }
  .logo { font-size: .9rem; }

  .hero { min-height: min(82svh, 720px); }
  .hero__content { padding: calc(var(--header-h) + 24px) 0 72px; }
  .hero__eyebrow { font-size: .72rem; letter-spacing: 1.5px; margin-bottom: 14px; }
  .hero h1 { font-size: 2.15rem; letter-spacing: -1px; }
  .hero__lead { font-size: 1rem; margin: 16px 0 26px; }
  .hero__actions .btn { flex: 1; padding: 13px 16px; }
  .hero__count { margin-top: 28px; }

  .trust__inner { grid-template-columns: 1fr 1fr; }
  .trust__item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 12px; }
  .trust__item + .trust__item { border-top: 0; }
  .trust__item:nth-child(even) { border-inline-start: 1px solid var(--border); }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .trust__item svg { width: 22px; height: 22px; }
  .trust__item strong { font-size: .88rem; }
  .trust__item span { font-size: .78rem; }

  .section { padding: 56px 0; }
  h2 { font-size: 1.65rem; }
  .section__lead { font-size: .98rem; }
  .section__head { margin-bottom: 28px; }

  .filters { gap: 8px; margin-bottom: 24px; }
  .filters input, .filters select { padding: 10px 12px; font-size: .88rem; }
  .filters select { padding-inline-end: 26px; background-position: right 10px center; }

  .car-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .car__img { border-radius: 10px; }
  .car__body { padding-top: 10px; }
  .car__top { flex-direction: column; gap: 2px; }
  .car__title { font-size: .9rem; line-height: 1.3; }
  .car .price { font-size: .95rem; }
  .car__meta { font-size: .76rem; line-height: 1.45; }
  .badge { top: 8px; inset-inline-start: 8px; font-size: .66rem; padding: 3px 8px; }
  .placeholder span { font-size: .7rem; }

  .services { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .service { padding: 20px 0; }
  .service h3 { font-size: .98rem; }
  .service p { font-size: .85rem; }

  .about { gap: 28px; }
  .checklist li { padding-block: 13px; padding-inline: 32px 0; font-size: .95rem; }
  .sourcing .btn { width: 100%; }

  .contact { gap: 32px; }
  .info-list div { grid-template-columns: 80px 1fr; gap: 12px; font-size: .95rem; }
  .map { aspect-ratio: 4 / 3; }
  .contact__form input, .contact__form select, .contact__form textarea { font-size: 16px; } /* stops iPhone zoom on focus */

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }

  .modal { padding: 0; place-items: end center; }
  .modal__box { border-radius: 18px 18px 0 0; max-height: 94svh; }
  .detail__actions .btn { flex: 1; }
}

/* ===== Language switcher ===== */
.lang { position: relative; }
.lang__btn {
  display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  border: 1.5px solid currentColor; background: none; cursor: pointer; color: inherit;
  opacity: .9; transition: opacity .2s, transform .15s;
}
.lang__btn:hover { opacity: 1; transform: scale(1.05); }
.lang__btn img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: block; }
.lang__menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60;
  min-width: 170px; padding: 6px;
  background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
  display: grid; gap: 2px;
}
.lang__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: .92rem; color: inherit; cursor: pointer; text-align: start;
}
.lang__menu button:hover { background: var(--bg-alt); }
.lang__menu button img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang__menu button[aria-checked="true"] { font-weight: 600; }
.lang__menu button[aria-checked="true"]::after { content: "✓"; margin-inline-start: auto; color: var(--red); }
@media (max-width: 560px) {
  .lang__btn { width: 32px; height: 32px; }
  .lang__btn img { width: 24px; height: 24px; }
}

/* ===== Greek text is longer ===== */
:not(:lang(en)) .hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 820px; }
:not(:lang(en)) .filters { grid-template-columns: 1.5fr repeat(5, 1fr) 1.5fr auto; }
@media (max-width: 560px) {
  :not(:lang(en)) .hero h1 { font-size: 1.85rem; }
}
@media (max-width: 560px) {
  .hero__actions .btn { white-space: nowrap; padding: 13px 10px; font-size: .9rem; }
}

/* ===== Extra touches ===== */
/* Primary buttons turn KAP red on hover */
.btn:not(.btn--ghost):not(.btn--light):not(.btn--outline-light):hover { background: var(--red); border-color: var(--red); }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }

/* Animated underline on menu links (desktop) */
@media (min-width: 861px) {
  .nav a { position: relative; }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--red); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  }
  .nav a:hover::after { transform: scaleX(1); }
}

/* Short red line before section labels */
.kicker { display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; flex: none; }

/* Red trust icons */
.trust__item svg { stroke: var(--red); }

/* Car cards: gentle lift on hover, red price, pop in when listed */
.car__img { transition: box-shadow .3s ease, transform .3s ease; }
.car:hover .car__img { transform: translateY(-4px); box-shadow: var(--shadow); }
.car .price { color: var(--red); }
.car.is-sold .price { color: var(--muted); }
.car { animation: pop .45s ease both; }
.car:nth-child(2) { animation-delay: .05s; }
.car:nth-child(3) { animation-delay: .1s; }
.car:nth-child(4) { animation-delay: .15s; }
.car:nth-child(5) { animation-delay: .2s; }
.car:nth-child(6) { animation-delay: .25s; }
.car:nth-child(n+7) { animation-delay: .3s; }

/* Workshop services: red numbers, red line on hover */
.service { position: relative; }
.service__num { color: var(--red); font-weight: 600; }
.service::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service:hover::before { transform: scaleX(1); }

/* Sections fade in while scrolling (classes added by app.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .car { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .car:hover .car__img { transform: none; }
}

/* ===== Right-to-left languages (Hebrew) ===== */
[dir="rtl"] .filters select { background-position: left 12px center; }
@media (max-width: 560px) {
  [dir="rtl"] .filters select { background-position: left 10px center; }
}
