/* CAR WAY public website.
   White showroom, grey tiles, near-black ink, gold only where it earns it.
   The one signature: a corner carved out of a photo that holds the next action. */

:root {
  --page: #ffffff;
  --tile: #f2f2f0;
  --tile-strong: #e7e7e4;
  --line: #e2e2df;
  --text: #0f0f10;
  --muted: #5f5f64;
  --ink: #0f0f10;
  --on-ink: #ffffff;
  --band: #111214;
  --on-band: #ffffff;
  --on-band-muted: rgba(255, 255, 255, 0.74);
  --band-line: rgba(255, 255, 255, 0.16);
  --gold: #c9a26c;
  --gold-text: #875f33;
  --gold-bg: #fbf1e1;
  --focus: #875f33;
  --ok: #1e7a4f;
  --ok-bg: #e6f3ec;
  --warn: #8f5e0c;
  --warn-bg: #fbf1df;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;

  --r-frame: 28px;
  --r-tile: 20px;
  --r-ctl: 14px;
  --r-sq: 10px;

  --gutter: clamp(16px, 3.2vw, 44px);
  --wrap: 1400px;
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;

  --fs-display: clamp(2.5rem, 1.55rem + 3.9vw, 5.25rem);
  --fs-h1: clamp(2.125rem, 1.6rem + 2.5vw, 4rem);
  --fs-h2: clamp(1.625rem, 1.32rem + 1.35vw, 2.625rem);
  --fs-h3: 1.1875rem;
  --fs-small: 0.875rem;

  --lh-body: 1.75;
  --lh-head: 1.24;
  --notch-c: 0 0;
  color-scheme: light;
}

[data-theme='dark'] {
  --page: #0f0f10;
  --tile: #1a1a1d;
  --tile-strong: #26262a;
  --line: #2c2c31;
  --text: #f4f4f2;
  --muted: #a6a6ad;
  --ink: #f4f4f2;
  --on-ink: #0f0f10;
  --band: #17171a;
  --gold-text: #ddb984;
  --gold-bg: #33291a;
  --focus: #ddb984;
  --ok: #5ccb93;
  --ok-bg: #12301f;
  --warn: #ebb75a;
  --warn-bg: #36290f;
  --bad: #f2837a;
  --bad-bg: #3a1714;
  color-scheme: dark;
}

[dir='rtl'] { --notch-c: 100% 0; }
html[lang='en'] { --lh-body: 1.6; --lh-head: 1.1; }

/* ─── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block-start: 96px; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: var(--lh-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-block-end: var(--dock-pad, 0px);
}
main { flex: 1; outline: none; display: block; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-weight: 500; line-height: var(--lh-head); text-wrap: balance; }
html[lang='en'] h1, html[lang='en'] h2, html[lang='en'] .display { letter-spacing: -0.022em; }
bdi { unicode-bidi: isolate; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.on-band, .on-photo { --focus: #ffffff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 5vw, 72px); }
.section--tight { padding-block-start: clamp(12px, 1.6vw, 20px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-block-end: clamp(20px, 2.6vw, 34px); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.4; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.prose { max-width: 70ch; }
.prose p + p { margin-block-start: 1em; }
.prewrap { white-space: pre-line; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.link:hover { color: var(--gold-text); }
[dir='rtl'] .flip { transform: scaleX(-1); }

.skip {
  position: absolute; inset-inline-start: 12px; inset-block-start: -80px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: var(--r-ctl);
}
.skip:focus { inset-block-start: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ─── Logo ─────────────────────────────────────────────── */
/* The lockup keeps symbol-then-name order in both languages. */
.logo { display: inline-flex; align-items: center; gap: 10px; direction: ltr; min-height: 44px; }
.logo__tile { width: 44px; height: 44px; border-radius: 12px; background: #111214; display: grid; place-items: center; flex: none; }
[data-theme='dark'] .logo__tile { box-shadow: inset 0 0 0 1px var(--line); }
.logo__tile img { width: 31px; height: auto; }
.logo__name { font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.2em; white-space: nowrap; line-height: 1; }

/* ─── Announcement + header ───────────────────────────── */
#site-header, #site-footer { display: contents; }
.announce { background: var(--gold); color: #0f0f10; font-size: var(--fs-small); text-align: center; padding: 8px var(--gutter); font-weight: 500; line-height: 1.5; }
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.announce { --focus: #0f0f10; }

.hdr { position: sticky; inset-block-start: 0; z-index: 30; background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hdr__in { max-width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.hdr__in > .logo { padding-inline-start: 4px; }
.nav { display: none; gap: 2px; background: var(--tile); padding: 4px; border-radius: 16px; }
.nav a { padding: 8px 16px; min-height: 44px; display: flex; align-items: center; border-radius: 12px; font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav a[aria-current='page'] { background: var(--page); color: var(--text); }
.hdr__tools { display: flex; align-items: center; gap: 6px; }

.ic-btn {
  width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center;
  border-radius: 12px; color: var(--text); background: var(--tile); position: relative;
  font-size: 0.8125rem; font-weight: 600; line-height: 1;
}
.ic-btn:hover { background: var(--tile-strong); }
.ic-btn__badge {
  position: absolute; inset-block-start: 4px; inset-inline-end: 4px; min-width: 16px; height: 16px; padding-inline: 4px;
  border-radius: 8px; background: var(--gold); color: #0f0f10; font-size: 0.6875rem; font-weight: 600;
  display: grid; place-items: center; line-height: 1;
}
.hide-sm { display: none; }
.menu-only { display: inline-grid; }
.hdr .pill { display: none; }

@media (min-width: 520px) { .hide-sm { display: inline-grid; } }
@media (min-width: 1060px) {
  .nav { display: flex; }
  .menu-only { display: none; }
}
@media (min-width: 1280px) { .hdr .pill { display: inline-flex; } }

/* Menu sheet (phones and tablets) */
dialog { color: var(--text); }
.menu-sheet {
  border: 0; padding: 12px; margin: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh;
  background: var(--page);
}
.menu-sheet[open] { display: flex; flex-direction: column; gap: 12px; }
.menu-sheet__top { display: flex; align-items: center; justify-content: space-between; }
.menu-sheet__links { display: grid; gap: 2px; padding-block: 12px; flex: 1; align-content: start; overflow: auto; }
.menu-sheet__links a { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2rem); font-weight: 500; padding: 8px 8px; min-height: 52px; display: flex; align-items: center; border-radius: 12px; line-height: 1.3; }
.menu-sheet__links a:hover, .menu-sheet__links a[aria-current='page'] { background: var(--tile); }
.menu-sheet__foot { display: flex; gap: 8px; flex-wrap: wrap; padding-block-end: env(safe-area-inset-bottom); }

/* ─── Buttons ─────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 52px; padding-block: 6px; padding-inline: 20px 6px; border-radius: 16px;
  background: var(--ink); color: var(--on-ink); font-weight: 500; line-height: 1.3;
  transition: background-color 0.15s ease;
}
.pill__sq {
  width: 40px; height: 40px; border-radius: var(--r-sq); background: var(--on-ink); color: var(--ink);
  display: grid; place-items: center; flex: none; transition: background-color 0.15s ease;
}
.pill:hover .pill__sq { background: var(--gold); color: #0f0f10; }
.pill--light { background: #ffffff; color: #0f0f10; }
.pill--light .pill__sq { background: #0f0f10; color: #ffffff; }
.pill--gold { background: #0f0f10; color: #ffffff; }
.pill--gold .pill__sq { background: #ffffff; color: #0f0f10; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 10px 22px; border-radius: 14px; font-weight: 500; line-height: 1.3; text-align: center;
  background: var(--ink); color: var(--on-ink); transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.6; cursor: progress; }
.btn--tile { background: var(--tile); color: var(--text); }
.btn--tile:hover { opacity: 1; background: var(--tile-strong); }
.btn--line { background: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--line:hover { opacity: 1; background: var(--tile); }
.btn--light { background: #ffffff; color: #0f0f10; }
.btn--on-band { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.btn--on-band:hover { background: rgba(255, 255, 255, 0.2); opacity: 1; }
.btn--danger { background: var(--bad); color: #ffffff; }
[data-theme='dark'] .btn--danger { color: #0f0f10; }
.btn--full { width: 100%; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 0.9375rem; border-radius: 12px; }

.more-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.more-link:hover { color: var(--gold-text); }

.round-arrow {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--on-ink);
  display: grid; place-items: center; flex: none; transition: background-color 0.15s ease, color 0.15s ease;
}

/* ─── The carved corner ───────────────────────────────── */
.frame { position: relative; overflow: hidden; border-radius: var(--r-tile); background: var(--tile-strong); isolation: isolate; }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame__blank { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }

.notch {
  --n: 18px;
  position: absolute; inset-block-end: 0; inset-inline-end: 0; z-index: 2;
  padding-block-start: 8px; padding-inline-start: 8px;
  background: var(--notch, var(--page));
  border-start-start-radius: var(--n);
}
.notch::before, .notch::after {
  content: ''; position: absolute; width: var(--n); height: var(--n); pointer-events: none;
  background: radial-gradient(circle at var(--notch-c), transparent calc(var(--n) - 0.5px), var(--notch, var(--page)) var(--n));
}
.notch::before { inset-block-end: 100%; inset-inline-end: 0; }
.notch::after { inset-block-end: 0; inset-inline-end: 100%; }

/* ─── Hero ────────────────────────────────────────────── */
.hero { padding-inline: 12px; position: relative; }
.hero__frame {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-frame); background: #111214; color: #ffffff;
  min-height: clamp(400px, 56svh, 640px); display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: settle 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 11, 0.86) 0%, rgba(10, 10, 11, 0.42) 38%, rgba(10, 10, 11, 0.06) 68%, rgba(10, 10, 11, 0.24) 100%); }
.hero__art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__copy { padding: clamp(22px, 3.6vw, 52px); padding-block-end: 64px; }
.hero__title { font-size: var(--fs-display); font-weight: 500; }
.hero__title span { display: block; }
.hero__sub { margin-block-start: 14px; color: rgba(255, 255, 255, 0.84); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); max-width: 46ch; }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }

.search-card { position: relative; margin: -38px 8px 0; padding: 16px; border-radius: 22px; background: var(--page); z-index: 2; }
.search-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-block-end: 12px; }
.search-card__title { font-size: 1.125rem; font-weight: 600; }
.search-card__count { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: var(--fs-small); color: var(--muted); }
.search-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.search-card__grid .field--make { grid-column: 1 / -1; }
.search-card__grid .btn { grid-column: 1 / -1; }

@media (min-width: 620px) {
  .search-card__grid { grid-template-columns: repeat(3, 1fr); }
  .search-card__grid .field--make { grid-column: auto; }
}

@media (min-width: 1040px) {
  .hero__frame { min-height: clamp(540px, calc(100svh - 176px), 860px); }
  .hero__copy { max-width: 46%; padding-block-end: clamp(36px, 3.6vw, 52px); }
  .search-card {
    --n: 28px; position: absolute; margin: 0; padding: 22px 22px 12px; border-radius: 0; border-start-start-radius: var(--n);
    inset-block-end: -1px; inset-inline-end: 11px; width: min(52%, 720px);
  }
  .search-card::before, .search-card::after {
    content: ''; position: absolute; width: var(--n); height: var(--n); pointer-events: none;
    background: radial-gradient(circle at var(--notch-c), transparent calc(var(--n) - 0.5px), var(--page) var(--n));
  }
  .search-card::before { inset-block-end: 100%; inset-inline-end: 0; }
  .search-card::after { inset-block-end: 0; inset-inline-end: 100%; }
  .search-card__grid { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
  .search-card__grid .btn { grid-column: auto; }
}

/* ─── Forms ───────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: var(--fs-small); font-weight: 500; line-height: 1.4; }
.field__opt { color: var(--muted); font-weight: 400; margin-inline-start: 6px; }
.field__ctl { position: relative; display: flex; align-items: stretch; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-ctl); border: 1px solid transparent;
  background: var(--tile); font-size: 1rem; line-height: 1.5; outline: none; transition: border-color 0.12s ease;
}
.textarea { min-height: 112px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.8; }
.input[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--bad); background: var(--bad-bg); }
input[dir='ltr'].input { text-align: start; }
[dir='rtl'] input[dir='ltr'].input { text-align: right; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23767679' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; text-overflow: ellipsis;
}
[dir='rtl'] .select { background-position: left 14px center; }
.select option { color: #0f0f10; background: #ffffff; }
[data-theme='dark'] .select option { color: #f4f4f2; background: #1a1a1d; }
.field__suffix { position: absolute; inset-block: 0; inset-inline-end: 16px; display: flex; align-items: center; color: var(--muted); font-size: var(--fs-small); pointer-events: none; }
.field--suffix .input { padding-inline-end: 64px; }
.field__err { color: var(--bad); font-size: var(--fs-small); line-height: 1.5; }
.field__hint { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.field__toggle { position: absolute; inset-block: 4px; inset-inline-end: 4px; width: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.field__toggle:hover { color: var(--text); }

.form-grid { display: grid; gap: 16px; }
.form-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.6; min-height: 44px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span, button.chip-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; min-width: 56px;
  padding: 6px 14px; border-radius: 12px; background: var(--tile); font-size: 0.9375rem; font-weight: 500; line-height: 1.3; text-align: center;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.chip input:hover:not(:disabled) + span, button.chip-btn:hover { background: var(--tile-strong); }
.chip input:checked + span, button.chip-btn[aria-pressed='true'] { background: var(--ink); color: var(--on-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip input:disabled + span { opacity: 0.38; text-decoration: line-through; }
.chip input:disabled { cursor: not-allowed; }
.chips--days { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.chips--days .chip, .chips--days .chip span { width: 100%; }
.chips--days small { font-size: 0.75rem; font-weight: 400; opacity: 0.78; }

.notice { padding: 12px 16px; border-radius: var(--r-ctl); font-size: 0.9375rem; line-height: 1.6; background: var(--tile); }
.notice--warn { background: var(--warn-bg); color: var(--warn); }
.notice--bad { background: var(--bad-bg); color: var(--bad); }
.notice--ok { background: var(--ok-bg); color: var(--ok); }
.consent { font-size: var(--fs-small); color: var(--muted); line-height: 1.6; }

.success { display: flex; flex-direction: column; gap: 14px; align-items: stretch; text-align: center; padding-block: 12px; }
.success__mark { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; margin-inline: auto; }
.success__ref { background: var(--tile); border-radius: var(--r-ctl); padding: 14px; display: grid; gap: 2px; }
.success__ref strong { font-size: 1.5rem; font-weight: 600; letter-spacing: 0.08em; direction: ltr; }
.success__actions { display: grid; gap: 8px; }

/* ─── Offers ──────────────────────────────────────────── */
.offers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.offer {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-tile); min-height: 240px; padding: clamp(20px, 2.4vw, 32px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px; background: var(--band); color: #ffffff;
}
.offer--gold { background: var(--gold); color: #0f0f10; --focus: #0f0f10; }
.offer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.offer--photo { color: #ffffff; --focus: #ffffff; }
.offer--photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 11, 0.82), rgba(10, 10, 11, 0.28)); }
.offer__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); font-weight: 500; max-width: 22ch; }
.offer__text { margin-block-start: 8px; opacity: 0.88; max-width: 40ch; }
.offer .pill { align-self: flex-start; }
.offer__art { position: absolute; inset-block: 0; inset-inline-end: -8%; height: 100%; width: 62%; z-index: -1; pointer-events: none; }
[dir='rtl'] .offer__art { transform: scaleX(-1); }

/* ─── Brands ──────────────────────────────────────────── */
.brands { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(30%, 148px), 1fr)); }
@media (min-width: 1100px) { .brands { grid-template-columns: repeat(var(--brand-cols, 8), minmax(0, 1fr)); } }
.brand { position: relative; background: var(--tile); border-radius: 16px; padding: 14px; min-height: 124px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; transition: background-color 0.15s ease; }
.brand:hover { background: var(--tile-strong); }
.brand__mark { width: 52px; height: 52px; border-radius: 13px; background: #ffffff; display: grid; place-items: center; overflow: hidden; }
.brand__mark img { width: 80%; height: 80%; object-fit: contain; }
.brand__mono { font-weight: 600; font-size: 1.0625rem; color: #0f0f10; direction: ltr; }
.brand__name { font-weight: 500; font-size: 0.9375rem; line-height: 1.35; }
.brand__count { font-size: 0.8125rem; color: var(--muted); }

/* ─── Car cards ───────────────────────────────────────── */
.cars-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 296px), 1fr)); }
.car { position: relative; display: flex; flex-direction: column; background: var(--tile); border-radius: var(--r-tile); padding: 8px; min-width: 0; }
.car .frame { aspect-ratio: 4 / 3; --notch: var(--tile); border-radius: 14px; }
.car .notch { --n: 16px; }
.photo-count {
  position: absolute; inset-block-end: 10px; inset-inline-start: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding-inline: 8px; border-radius: 12px;
  background: rgba(15, 15, 16, .62); color: #fff; font-size: .75rem;
}
.car__tools { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; display: flex; gap: 6px; z-index: 3; }
.tool-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); color: #0f0f10; transition: background-color 0.12s ease, color 0.12s ease;
}
.tool-btn:hover { background: #ffffff; }
.tool-btn[aria-pressed='true'] { background: #0f0f10; color: var(--gold); }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 8px; font-size: 0.8125rem; font-weight: 500; line-height: 1.3; background: #0f0f10; color: #ffffff; }
.badge--reserved { background: var(--gold); color: #0f0f10; }
.car .badge { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; z-index: 2; }
.car__body { padding: 14px 10px 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.45; }
.car__title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-tile); z-index: 1; }
.car__title a:focus-visible { outline: none; }
.car__title a:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; }
.car__specs { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: var(--fs-small); color: var(--muted); }
.car__foot { margin-block-start: auto; display: grid; gap: 2px; padding-block-start: 10px; border-block-start: 1px solid var(--line); }
.price { display: flex; align-items: baseline; gap: 2px 10px; flex-wrap: wrap; }
.price__now { font-size: 1.25rem; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.price__cur { font-size: 0.8125rem; font-weight: 500; margin-inline-start: 4px; }
.price__old { font-size: var(--fs-small); color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.car__monthly { font-size: var(--fs-small); color: var(--gold-text); font-weight: 500; }
@media (hover: hover) { .car:hover .round-arrow { background: var(--gold); color: #0f0f10; } }

.sk { background: var(--tile); border-radius: 12px; position: relative; overflow: hidden; }
.sk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--page) 55%, transparent), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sk-card { background: var(--tile); border-radius: var(--r-tile); padding: 8px; display: grid; gap: 12px; }
.sk-card .sk { background: var(--tile-strong); }
.sk-photo { aspect-ratio: 4 / 3; border-radius: 14px; }
.sk-line { height: 14px; border-radius: 6px; margin-inline: 8px; }

.state { background: var(--tile); border-radius: var(--r-tile); padding: clamp(32px, 6vw, 72px) 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.state__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--page); display: grid; place-items: center; color: var(--muted); margin-block-end: 6px; }
.state .btn { margin-block-start: 10px; }

/* ─── Services and steps ──────────────────────────────── */
.services { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.service { position: relative; background: var(--tile); border-radius: var(--r-tile); padding: clamp(20px, 2.2vw, 28px); min-height: 230px; display: flex; flex-direction: column; gap: 8px; transition: background-color 0.15s ease; }
.service__icon { color: var(--gold-text); margin-block-end: auto; padding-block-end: 22px; }
.service__title { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); font-weight: 500; padding-inline-end: 56px; }
.service__title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-tile); }
.service p { color: var(--muted); padding-inline-end: 56px; }
.service .round-arrow { position: absolute; inset-block-end: clamp(20px, 2.2vw, 28px); inset-inline-end: clamp(20px, 2.2vw, 28px); }
@media (hover: hover) { .service:hover .round-arrow { background: var(--gold); color: #0f0f10; } }

.band { position: relative; overflow: hidden; isolation: isolate; margin-inline: 12px; border-radius: var(--r-frame); background: var(--band); color: var(--on-band); }
.band__art { position: absolute; inset-block-start: 0; inset-inline-end: 0; height: 100%; width: min(60%, 560px); z-index: -1; pointer-events: none; }
[dir='rtl'] .band__art { transform: scaleX(-1); }
.band__in { padding-block: clamp(30px, 4.6vw, 64px); }
.band h1 { font-size: var(--fs-h1); }
.band .lead { color: var(--on-band-muted); margin-block-start: 12px; }

.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-block-start: clamp(24px, 3vw, 44px); }
.step { display: grid; gap: 6px; padding-block-start: 14px; border-block-start: 1px solid var(--band-line); }
.step__n { color: var(--gold); font-weight: 500; font-variant-numeric: tabular-nums; }
.step__t { font-size: 1.25rem; font-weight: 500; }
.step p { color: var(--on-band-muted); }
.band__cta { margin-block-start: clamp(22px, 3vw, 36px); }

/* ─── FAQ ─────────────────────────────────────────────── */
.faq-layout { display: grid; gap: 24px 64px; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: minmax(240px, 4fr) 8fr; } }
.faq-item { border-block-end: 1px solid var(--line); }
.faq-item:first-child { border-block-start: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 14px; cursor: pointer; list-style: none; font-weight: 500; font-size: 1.0625rem; line-height: 1.5; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { flex: none; transition: transform 0.18s ease; }
.faq-item[open] summary .ic { transform: rotate(45deg); }
.faq-item p { padding-block-end: 18px; color: var(--muted); max-width: 70ch; white-space: pre-line; }

/* ─── Help band ───────────────────────────────────────── */
.help { background: var(--tile); border-radius: var(--r-frame); padding: clamp(24px, 4vw, 52px); display: grid; gap: 24px 40px; align-items: end; }
@media (min-width: 900px) { .help { grid-template-columns: 1fr auto; } }
.help__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-block-start: 16px; color: var(--muted); font-size: 0.9375rem; }
.help__fact { display: inline-flex; gap: 8px; align-items: center; }
.help__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.help__actions > * { flex: 1 1 auto; }

/* ─── Footer ──────────────────────────────────────────── */
.ftr { background: var(--band); color: var(--on-band); margin: 12px 12px 0; border-radius: var(--r-frame) var(--r-frame) 0 0; --focus: #ffffff; }
.ftr__in { padding-block: clamp(32px, 5vw, 64px) 24px; display: grid; gap: 32px; }
.ftr__top { display: grid; gap: 32px; }
@media (min-width: 820px) { .ftr__top { grid-template-columns: minmax(220px, 4fr) 8fr; } }
.ftr__logo { width: 112px; height: auto; }
.ftr__tag { margin-block-start: 14px; color: var(--on-band-muted); max-width: 34ch; }
.ftr__cols { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(min(46%, 170px), 1fr)); }
.ftr__h { font-size: var(--fs-small); color: var(--on-band-muted); font-weight: 400; margin-block-end: 8px; }
.ftr__cols a { display: flex; align-items: center; min-height: 44px; line-height: 1.4; }
.ftr__line { line-height: 1.5; }
.ftr__cols a:hover { color: var(--gold); }
.ftr__line { color: var(--on-band-muted); padding-block: 4px; }
.ftr__socials { display: flex; gap: 6px; margin-block-start: 10px; flex-wrap: wrap; }
.ftr__socials a { width: 44px; height: 44px; min-height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; }
.ftr__socials a:hover { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.ftr__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.ftr__bottom { align-items: center; border-block-start: 1px solid var(--band-line); padding-block-start: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; color: var(--on-band-muted); font-size: var(--fs-small); }

/* ─── Dock: floating WhatsApp, compare bar, phone buy bar ─ */
.dock { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 25; display: flex; flex-direction: column; gap: 8px; pointer-events: none; padding-block-end: env(safe-area-inset-bottom); }
.dock > * { pointer-events: auto; }
.dock__wa {
  align-self: flex-end; margin-inline: 14px; margin-block-end: 6px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #0f0f10; color: #ffffff; transition: background-color 0.15s ease, color 0.15s ease;
}
[data-theme='dark'] .dock__wa { background: #f4f4f2; color: #0f0f10; }
.dock__wa:hover { background: var(--gold); color: #0f0f10; }
.dock__compare {
  margin-inline: 12px; align-self: center; width: min(calc(100% - 24px), 520px); display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #111214; color: #ffffff; padding: 6px; padding-inline-start: 16px; border-radius: 18px; --focus: #ffffff; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
[data-theme='dark'] .dock__compare { box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, 0.5); background: #1a1a1d; }
.dock__compare-actions { display: flex; align-items: center; gap: 4px; }
.dock__compare .ic-btn { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.dock__compare .pill { min-height: 44px; padding-block: 2px; padding-inline: 14px 2px; background: #ffffff; color: #0f0f10; border-radius: 13px; }
.dock__compare .pill__sq { background: #0f0f10; color: #ffffff; width: 40px; height: 40px; }
.dock:empty { display: none; }

.buy-bar { background: var(--page); border-block-start: 1px solid var(--line); padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buy-bar .btn { flex: 0 1 auto; }
@media (min-width: 860px) { .buy-bar { display: none; } }

/* ─── Toast ───────────────────────────────────────────── */
.toast-host { position: fixed; inset-block-start: 84px; inset-inline: 0; z-index: 60; display: flex; justify-content: center; pointer-events: none; padding-inline: 16px; }
.toast { background: #111214; color: #ffffff; padding: 10px 18px; border-radius: 12px; font-size: 0.9375rem; line-height: 1.5; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); max-width: 100%; }
[data-theme='dark'] .toast { background: #f4f4f2; color: #0f0f10; }

/* ─── Sheets ──────────────────────────────────────────── */
.sheet { border: 0; padding: 0; background: var(--page); width: min(600px, calc(100vw - 24px)); max-width: 100%; max-height: calc(100dvh - 24px); border-radius: 24px; overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop, .lb::backdrop, .menu-sheet::backdrop { background: rgba(10, 10, 11, 0.62); }
.sheet__head { position: sticky; inset-block-start: 0; z-index: 2; background: var(--page); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 10px 20px; }
[dir='rtl'] .sheet__head { padding: 14px 20px 10px 14px; }
.sheet__title { font-size: 1.375rem; font-weight: 500; }
.sheet__body { padding: 4px 20px 20px; display: grid; gap: 18px; }
@media (max-width: 600px) {
  .sheet { width: 100%; margin: auto 0 0; max-height: 92dvh; border-radius: 24px 24px 0 0; }
}
.car-line { display: flex; align-items: center; gap: 12px; background: var(--tile); border-radius: 16px; padding: 8px; padding-inline-end: 14px; }
.car-line__img { width: 84px; height: 62px; flex: none; border-radius: 10px; }
.car-line__img img { width: 100%; height: 100%; object-fit: cover; }
.car-line strong { display: block; font-weight: 600; line-height: 1.4; }
.car-line span.car-line__price { color: var(--gold-text); font-size: var(--fs-small); font-weight: 500; }
.group-legend { font-size: var(--fs-small); font-weight: 500; margin-block-end: 8px; display: block; line-height: 1.4; }

/* ─── Interior pages ──────────────────────────────────── */
.twocol { display: grid; gap: 28px 56px; }
@media (min-width: 960px) { .twocol { grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); align-items: start; } .sticky { position: sticky; inset-block-start: 88px; } }
.panel { background: var(--tile); border-radius: var(--r-tile); padding: clamp(18px, 2.2vw, 28px); }
.panel-title { font-size: 1.375rem; font-weight: 500; margin-block-end: 14px; }
.stack { display: grid; gap: 28px; }
.stack-sm { display: grid; gap: 14px; }
.info-list { display: grid; }
.info-row { display: flex; gap: 14px; align-items: center; padding-block: 12px; min-height: 60px; border-block-end: 1px solid var(--line); }
.info-row:last-child { border-block-end: 0; }
.info-row .ic { color: var(--gold-text); flex: none; }
.info-row small { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.info-row strong { font-weight: 500; display: block; line-height: 1.5; }
a.info-row:hover strong { color: var(--gold-text); }

/* ─── Cars page ───────────────────────────────────────── */
.filters { background: var(--tile); border-radius: var(--r-tile); padding: 10px; display: grid; gap: 8px; }
.filters .input, .filters .select { background-color: var(--page); }
.filters__top { display: flex; gap: 8px; }
.filters__search { flex: 1; min-width: 0; }
.filters__search .input { padding-inline-start: 46px; }
.filters__search .ic { position: absolute; inset-block: 0; margin-block: auto; inset-inline-start: 14px; color: var(--muted); pointer-events: none; }
.filters__toggle { position: relative; }
.filters__panel { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(46%, 150px), 1fr)); }
@media (max-width: 859px) { .filters__panel:not(.is-open) { display: none; } }
@media (min-width: 860px) { .filters__toggle { display: none; } }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding-block: 18px 14px; }
.results-bar__count { font-weight: 500; }
.results-bar__end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.results-bar .select { min-height: 44px; padding-block: 6px; width: auto; max-width: 100%; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 12px 8px; border-radius: 12px; background: var(--tile); font-size: var(--fs-small); }
.active-chip:hover { background: var(--tile-strong); }

/* ─── Car page ────────────────────────────────────────── */
.car-band { padding-block-end: clamp(120px, 18vw, 260px); }
.car-band__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-band-muted); font-size: 0.9375rem; margin-block-end: clamp(10px, 2vw, 28px); }
.car-band__back:hover { color: #ffffff; }
.car-band__make { color: var(--on-band-muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); }
.car-band h1 { font-size: var(--fs-display); font-weight: 500; max-width: 18ch; }
.car-band__quick { display: flex; flex-wrap: wrap; gap: 14px clamp(22px, 3.6vw, 56px); margin-block-start: clamp(16px, 2.2vw, 30px); }
.car-band__quick dt { color: var(--on-band-muted); font-size: 0.8125rem; line-height: 1.4; }
.car-band__quick dd { font-weight: 500; font-size: 1.0625rem; line-height: 1.5; }
.car-band .badge--reserved { margin-block-end: 10px; }

.gallery { margin-block-start: clamp(-240px, -16vw, -104px); position: relative; z-index: 3; outline-offset: 6px; border-radius: var(--r-frame); }
.gallery__stage { aspect-ratio: 16 / 9; max-height: 78svh; border-radius: var(--r-frame); cursor: zoom-in; display: block; width: 100%; }
@media (max-width: 720px) { .gallery__stage { aspect-ratio: 4 / 3; border-radius: 22px; } }
.gallery__stage > button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__stage > button img { width: 100%; height: 100%; object-fit: cover; }
.gallery .notch { --n: 20px; display: flex; align-items: center; gap: 6px; padding-block-start: 10px; padding-inline-start: 10px; }
.gallery__count { font-size: var(--fs-small); color: var(--muted); padding-inline: 8px; font-variant-numeric: tabular-nums; }
.gallery__tools { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; display: flex; gap: 6px; z-index: 3; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px; scrollbar-width: thin; }
.thumb { flex: none; width: 92px; height: 68px; border-radius: 12px; overflow: hidden; opacity: 0.68; box-shadow: inset 0 0 0 0 var(--ink); transition: opacity 0.12s ease; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-current='true'] { opacity: 1; outline: 2px solid var(--ink); outline-offset: -2px; }
.thumb:focus-visible { opacity: 1; outline: 2px solid var(--focus); outline-offset: 2px; }

.deal { display: grid; gap: 18px 32px; align-items: center; padding-block: clamp(18px, 2.4vw, 30px); border-block-end: 1px solid var(--line); }
@media (min-width: 860px) { .deal { grid-template-columns: 1fr auto; } }
.deal__label { color: var(--muted); font-size: var(--fs-small); }
.deal__price { font-size: clamp(2rem, 1.6rem + 1.9vw, 3.25rem); font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.deal__price .price__cur { font-size: 0.42em; margin-inline-start: 8px; font-weight: 500; }
.deal__old { color: var(--muted); text-decoration: line-through; font-size: 1.0625rem; font-variant-numeric: tabular-nums; margin-inline-start: 10px; }
.deal__est { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--gold-text); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.deal__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.deal__cta > * { flex: 1 1 auto; }
/* Phones have the buy button in the bar fixed to the bottom of the screen. */
@media (max-width: 859px) { .deal__cta .btn:not(.btn--line) { display: none; } }
.car-side { display: grid; gap: 12px; }
.team { display: flex; align-items: center; gap: 12px; }
.team__logo { width: 52px; height: 52px; border-radius: 14px; background: #111214; display: grid; place-items: center; flex: none; }
.team__logo img { width: 34px; height: auto; }
.team strong { display: block; font-weight: 600; line-height: 1.4; }
.action-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(46%, 120px), 1fr)); gap: 8px; }
.action-row .btn { padding-inline: 12px; font-size: 0.9375rem; }
.btn[aria-pressed='true'] { background: var(--ink); color: var(--on-ink); }

.spec-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: 0 24px; }
.spec { padding-block: 12px; border-block-end: 1px solid var(--line); min-width: 0; }
.spec dt { color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.spec dd { font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px 24px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.feature-tick { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; flex: none; margin-block-start: 1px; }
.insp-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-block: 12px; border-block-end: 1px solid var(--line); }
.insp-row strong { font-weight: 500; display: block; line-height: 1.5; }
.insp-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 8px; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.insp-pill--pass { background: var(--ok-bg); color: var(--ok); }
.insp-pill--attention { background: var(--warn-bg); color: var(--warn); }
.insp-pill--fail { background: var(--bad-bg); color: var(--bad); }

.lb { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: #0a0a0b; color: #ffffff; --focus: #ffffff; }
.lb[open] { display: flex; flex-direction: column; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px; }
.lb__stage { flex: 1; min-height: 0; display: grid; place-items: center; padding-inline: 8px; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__nav { display: flex; justify-content: center; gap: 8px; padding: 12px; }
.lb .ic-btn { background: rgba(255, 255, 255, 0.12); color: #ffffff; }

/* ─── Finance ─────────────────────────────────────────── */
.result { background: var(--band); color: var(--on-band); border-radius: var(--r-tile); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 18px; --focus: #ffffff; }
.result__label { color: var(--on-band-muted); font-size: 0.9375rem; }
.result__amount { font-size: clamp(2.5rem, 2rem + 2.2vw, 4rem); font-weight: 500; line-height: 1.15; font-variant-numeric: tabular-nums; }
.result__amount small { font-size: 0.32em; font-weight: 500; margin-inline-start: 6px; }
.result__rows { display: grid; }
.result__row { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-block-start: 1px solid var(--band-line); }
.result__row span { color: var(--on-band-muted); }
.result__row strong { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result .small { color: var(--on-band-muted); }

/* ─── Sell ────────────────────────────────────────────── */
.sell-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block-start: 22px; max-width: 620px; }
.sell-steps li { display: grid; gap: 2px; padding-block-start: 10px; border-block-start: 2px solid var(--band-line); font-size: 0.9375rem; line-height: 1.4; }
.sell-steps li:first-child { border-color: var(--gold); }
.sell-steps span { color: var(--gold); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.form-section { display: grid; gap: 16px; padding-block: clamp(20px, 3vw, 32px); border-block-end: 1px solid var(--line); }
.form-section:first-of-type { padding-block-start: 0; }
.form-section__t { font-size: 1.375rem; font-weight: 500; display: flex; align-items: baseline; gap: 10px; }
.form-section__t span { color: var(--gold-text); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.photos { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.photo { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--tile); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .tool-btn { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; }
.photo .badge { position: absolute; inset-block-end: 6px; inset-inline-start: 6px; }
.photo-add { aspect-ratio: 1; border-radius: 14px; background: var(--tile); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 0.875rem; font-weight: 500; text-align: center; padding: 8px; line-height: 1.3; }
.photo-add:hover { background: var(--tile-strong); }

/* ─── Compare ─────────────────────────────────────────── */
.compare { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare thead th { padding: 0 4px 12px; vertical-align: top; text-align: start; font-weight: 400; }
.compare__car { position: relative; display: grid; gap: 10px; }
.compare__car .frame { aspect-ratio: 4 / 3; border-radius: 14px; }
.compare__car .tool-btn { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; z-index: 3; }
.compare__name { display: block; min-height: 44px; font-weight: 600; line-height: 1.4; font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1.125rem); overflow-wrap: anywhere; }
.compare__name:hover { color: var(--gold-text); }
.compare__label th { text-align: start; padding: 14px 4px 2px; font-size: 0.8125rem; font-weight: 400; color: var(--muted); border-block-start: 1px solid var(--line); }
.compare td { padding: 0 4px 14px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; font-size: clamp(0.875rem, 0.82rem + 0.3vw, 1rem); vertical-align: top; }
.compare .is-best { color: var(--gold-text); }
.compare__add { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--tile); color: var(--muted); }
.compare__add:hover { background: var(--tile-strong); color: var(--text); }

/* ─── Account ─────────────────────────────────────────── */
.auth { max-width: 520px; margin-inline: auto; display: grid; gap: 18px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--tile); padding: 4px; border-radius: 14px; gap: 2px; }
.seg button { min-height: 44px; border-radius: 11px; font-weight: 500; color: var(--muted); padding-inline: 8px; line-height: 1.3; font-size: 0.9375rem; }
.seg button[aria-selected='true'] { background: var(--page); color: var(--text); }
.acc { display: grid; gap: 24px 48px; }
@media (min-width: 960px) { .acc { grid-template-columns: 280px minmax(0, 1fr); align-items: start; } }
.acc__side { display: grid; gap: 10px; }
.acc__me { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--tile); border-radius: 16px; min-width: 0; }
.acc__avatar { width: 52px; height: 52px; border-radius: 14px; background: #111214; color: var(--gold); display: grid; place-items: center; font-weight: 600; flex: none; }
.acc__me strong { display: block; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.acc__me small { color: var(--muted); display: block; font-size: 0.8125rem; overflow-wrap: anywhere; line-height: 1.4; }
.acc__nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
@media (min-width: 960px) { .acc__nav { flex-direction: column; overflow: visible; } }
.acc__nav button { min-height: 44px; padding: 8px 14px; border-radius: 12px; text-align: start; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.acc__nav button:hover { background: var(--tile); color: var(--text); }
.acc__nav button[aria-selected='true'] { background: var(--ink); color: var(--on-ink); }
.req { background: var(--tile); border-radius: 16px; padding: 16px; display: grid; gap: 6px; }
.req__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.req__type { font-weight: 600; line-height: 1.4; }
.req__meta { color: var(--muted); font-size: var(--fs-small); display: flex; flex-wrap: wrap; gap: 2px 14px; }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 8px; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; background: var(--tile-strong); }
.status--new { background: var(--gold-bg); color: var(--gold-text); }
.status--contacted, .status--negotiating { background: var(--page); }
.status--won { background: var(--ok-bg); color: var(--ok); }
.status--lost { background: var(--tile-strong); color: var(--muted); }
.note { position: relative; background: var(--tile); border-radius: 16px; padding: 16px; display: grid; gap: 4px; }
.note--new { box-shadow: inset 0 0 0 1px var(--gold); }
.note__t { font-weight: 600; line-height: 1.45; }
.note__date { color: var(--muted); font-size: 0.8125rem; }
.danger-zone { border-block-start: 1px solid var(--line); padding-block-start: 22px; display: grid; gap: 10px; justify-items: start; }

/* ─── About ───────────────────────────────────────────── */
.about-statement { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); font-weight: 400; line-height: 1.45; max-width: 30ch; white-space: pre-line; }
html[lang='en'] .about-statement { line-height: 1.3; letter-spacing: -0.015em; max-width: 34ch; }

/* ─── Maintenance ─────────────────────────────────────── */
.maint { min-height: 100svh; flex: 1; display: flex; padding: 12px; }
.maint__frame { flex: 1; background: #111214; color: #ffffff; border-radius: var(--r-frame); padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; isolation: isolate; --focus: #ffffff; }
.maint__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.maint__logo { width: 104px; height: auto; }
.maint h1 { font-size: var(--fs-h1); max-width: 18ch; }
.maint p { color: rgba(255, 255, 255, 0.76); margin-block-start: 12px; max-width: 52ch; font-size: 1.125rem; }
.maint__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 24px; }
.maint .ic-btn { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.maint__art { position: absolute; inset-block-start: 0; inset-inline-end: 0; height: 100%; width: min(70%, 640px); z-index: -1; pointer-events: none; }
[dir='rtl'] .maint__art { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .hdr, .ftr, .dock, .gallery__tools, .thumbs { display: none !important; }
}

/* Heart fills once saved. */
[aria-pressed='true'] > .fill-on { fill: currentColor; }
