/* HMD Auto Trading — public site */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700 800; font-display: swap; src: url("fonts/inter-700.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 600 700; font-display: swap; src: url("fonts/interdisplay-700.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 800 900; font-display: swap; src: url("fonts/interdisplay-800.woff") format("woff"); }
[hidden] { display: none !important; }
:root {
  --ink: #0f1214;
  --ink-2: #1a1f23;
  --ink-3: #2a3136;
  --paper: #f5f3ef;
  --paper-2: #ebe7e0;
  --white: #ffffff;
  --text: #15191c;
  --muted: #687077;
  --line: #ddd8cf;
  --accent: #0066dd;
  --accent-ink: #ffffff;
  --accent-hover: #0057bf;
  --accent-deep: #0757c2;
  --brand-red: #e50a10;
  --wa: #11803f;
  --wa-hover: #0d6e36;
  --danger: #c2412d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 18, 20, .06), 0 8px 24px rgba(15, 18, 20, .07);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}
[lang="ar"] { --font: system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif; --font-display: var(--font); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }
h2, .h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h3 { font-size: 1.5rem; }
.h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.ico { flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
html, body { overflow-x: clip; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1.1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .6em 1em; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: var(--white); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn-outline-light:hover { border-color: var(--white); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-hover); }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; }
.link-arrow .ico { width: 18px; transition: transform .18s; }
.link-arrow:hover .ico { transform: translateX(3px); }
[dir="rtl"] .link-arrow .ico, [dir="rtl"] .btn .ico[data-dir], [dir="rtl"] .hero-cta .btn-accent .ico { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .ico { transform: scaleX(-1) translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 18, 20, .92); color: var(--white);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark {
  font-weight: 800; font-size: 1.15rem; letter-spacing: .04em;
  background: var(--accent); color: var(--accent-ink);
  padding: 6px 9px 5px; border-radius: 6px; line-height: 1;
}
.logo-text { font-size: .66rem; font-weight: 700; letter-spacing: .2em; line-height: 1.15; }
.main-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .82; transition: opacity .15s; }
.main-nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .22); }
.header-actions .btn-ghost:hover { border-color: var(--white); }

.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .88rem; padding: 8px 10px; border-radius: 8px;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: rgba(255, 255, 255, .08); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 170px;
  background: var(--white); color: var(--text); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.lang-menu a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: .95rem; }
.lang-menu a:hover { background: var(--paper); }
.lang-menu a.is-active { font-weight: 700; background: var(--paper-2); }

.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .2s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(120% 90% at 85% 10%, #2b3238 0%, var(--ink) 55%);
  padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 9vw, 110px);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.hero.has-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15, 18, 20, .96) 20%, rgba(15, 18, 20, .55) 60%, rgba(15, 18, 20, .25));
}
[dir="rtl"] .hero.has-image::after { background: linear-gradient(-100deg, rgba(15, 18, 20, .96) 20%, rgba(15, 18, 20, .55) 60%, rgba(15, 18, 20, .25)); }
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .08; z-index: 1;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.5) 0 1px, transparent 1px 7px);
}
.hero-plate {
  position: absolute; inset-inline-end: -2vw; bottom: -4vw; z-index: 1;
  font-weight: 800; font-size: clamp(9rem, 26vw, 24rem); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(10, 124, 255, .22); user-select: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; max-width: 12ch; margin-bottom: .35em; }
[lang="ar"] .hero h1 { max-width: 14ch; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 44ch; color: rgba(255, 255, 255, .78); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 44px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-badges li { display: flex; align-items: center; gap: 9px; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.hero-badges .ico { color: var(--accent); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #0757c2;
}
[lang="ar"] .kicker { letter-spacing: 0; font-size: .9rem; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.kicker-light { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .lead { color: rgba(255, 255, 255, .72); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.count-pill { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }

/* ---------- Filters ---------- */
.filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 26px;
}
.filters label span, .form label span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
select, input, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #faf9f7; border: 1.5px solid #e6e1d8; border-radius: 12px;
  padding: .82em 1em; transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #7d776d; }
select:hover, input:hover, textarea:hover { border-color: #d3ccc0; }
select { appearance: none; padding-inline-end: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23687077' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center; }
[dir="rtl"] select { background-position: left 1em center; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(10, 124, 255, .18); }
input:user-invalid, textarea:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(194, 65, 45, .12); }
textarea { resize: vertical; min-height: 88px; }

/* ---------- Car cards ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 22px; }
.car-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.car-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.car-card[hidden] { display: none; }
.car-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; display: block; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.car-card:hover .car-media img { transform: scale(1.04); }
.no-photo { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #a8a196; font-size: .85rem;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 12px, #e4dfd6 12px 13px); }
.no-photo .ico { width: 44px; height: 44px; stroke-width: 1.2; }
.no-photo.big { aspect-ratio: 4 / 3; }
.status {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--white); color: var(--text);
}
.status-reserved { background: var(--accent); color: var(--accent-ink); }
.status-sold { background: var(--danger); color: var(--white); }
.car-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.car-body h3 { font-size: 1.18rem; margin: 0 0 2px; }
.car-body h3 a { text-decoration: none; }
.car-trim { color: var(--muted); font-size: .92rem; margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 16px; }
.chips li { font-size: .8rem; padding: 4px 9px; border-radius: 6px; background: var(--paper); color: #4a5157; }
.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--paper-2); }
.price { font-size: 1.32rem; font-weight: 800; letter-spacing: -.01em; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
#stock .center { margin-top: 34px; }

/* ---------- Trade-in ---------- */
.tradein-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps { list-style: none; padding: 0; margin: 34px 0; display: grid; gap: 22px; }
.steps li { display: flex; gap: 18px; }
.step-n { flex: none; font-weight: 800; font-size: .9rem; color: var(--accent); border: 1.5px solid rgba(10, 124, 255, .45); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; }
.steps h3 { font-size: 1.12rem; margin: 6px 0 4px; }
.steps p { color: rgba(255, 255, 255, .66); margin: 0; }
.equation { display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .5); }
.equation span { display: grid; place-items: center; width: 64px; height: 48px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, .25); }
.equation .eq-diff { color: var(--accent); font-weight: 800; border-color: rgba(10, 124, 255, .5); }
.equation .eq-new { background: var(--accent); color: var(--accent-ink); border: 0; }
.equation b { font-size: 1.3rem; font-weight: 500; }

.card { background: var(--white); color: var(--text); border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.form h3 { font-size: 1.3rem; margin-bottom: 18px; }
.form label { display: block; margin-bottom: 14px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form fieldset .full { grid-column: 1 / -1; }
.form legend { font-weight: 700; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.form-note .ico { width: 18px; color: var(--wa); margin-top: 1px; }
.form-note a { text-decoration-color: var(--line); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot .form-note { margin: 0; }
.notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.notice-ok { background: #e3f4e9; color: #135c2f; }
.notice-err { background: #fbe6e2; color: #8a2a1b; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.why .ico { width: 30px; height: 30px; color: #0757c2; margin-bottom: 14px; }
.why h3 { font-size: 1.08rem; margin-bottom: 6px; }
.why p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 28px; margin: 26px 0 28px; }
.contact-info dl { margin: 0 0 24px; display: grid; gap: 18px; }
.contact-info dt { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
[lang="ar"] .contact-info dt { letter-spacing: 0; }
.contact-info dt .ico { width: 17px; color: #0757c2; }
.contact-info dd { margin: 0; font-size: 1.08rem; }
.contact-info dd a { text-decoration: none; font-weight: 600; }
.contact-info dd .link-arrow { font-size: .92rem; margin-top: 4px; }
.contact-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.follow-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.socials, .footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 500; }
.social:hover { border-color: var(--text); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; background: var(--paper); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Car page ---------- */
.car-page { padding: 30px 0 90px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.back-link .ico { transform: scaleX(-1); width: 18px; }
[dir="rtl"] .back-link .ico { transform: none; }
.back-link:hover { color: var(--text); }
.car-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 34px; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .9); font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; }
.g-prev { left: 14px; } .g-next { right: 14px; }
.g-count { position: absolute; bottom: 12px; right: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .82rem; padding: 4px 10px; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery-thumbs button { flex: none; width: 92px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; opacity: .65; }
.gallery-thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.car-aside { position: sticky; top: 92px; }
.car-h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 6px; }
.car-h1 span { display: block; font-size: .5em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.car-price { font-size: 2rem; font-weight: 800; margin-bottom: 20px; }
.spec-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-list li { background: var(--white); padding: 11px 14px; }
.spec-list span { display: block; font-size: .78rem; color: var(--muted); }
.spec-list b { font-weight: 600; }
.cta-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.cta-box p { color: var(--muted); font-size: .93rem; margin: 0 0 6px; }
.cta-box h2 { margin: 0; }
.car-details { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 34px; margin-top: 44px; align-items: start; }
.car-details > form:only-child { grid-column: 2; }
.prose { font-size: 1.05rem; color: #353b40; }
.similar { margin-top: 70px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 92vh; max-width: 96vw; object-fit: contain; }
.lb-close { position: absolute; top: 14px; right: 18px; border: 0; background: none; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 56px 0 28px; font-size: .95rem; }
.site-footer .logo { color: var(--white); margin-bottom: 14px; }
.site-footer a { text-decoration: none; }
.site-footer .muted { color: rgba(255, 255, 255, .5); max-width: 32ch; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.footer-social .social { background: transparent; border-color: rgba(255, 255, 255, .18); color: var(--white); }
.footer-social .social:hover { border-color: var(--white); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: rgba(255, 255, 255, .45); }

.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .tradein-grid, .about-grid, .contacts-grid, .car-layout, .car-details { grid-template-columns: 1fr; }
  .car-details > form:only-child { grid-column: auto; }
  .car-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--ink); padding: 8px 20px 20px; margin: 0;
    transform: translateY(-120%); transition: transform .25s; z-index: -1;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .main-nav.is-open { transform: none; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 1.05rem; opacity: 1; }
  .burger { display: block; }
  .header-actions { margin-inline-start: auto; }
  .hide-sm { display: none; }
}
@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .filters { grid-template-columns: 1fr 1fr; }
  .row2, .row3, .form fieldset { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .why { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .spec-list { grid-template-columns: 1fr 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--ink); padding: 8px; gap: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: #fff; }
  .mb-call { background: var(--ink-3); }
  .mb-wa { background: var(--wa); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}


/* =================== v2 additions =================== */
.small { font-size: .82rem; }
.skip { position: absolute; top: 0; transform: translateY(-120%); inset-inline-start: 10px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { transform: translateY(10px); }
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.18); background: rgba(15, 18, 20, .97); }
.filters select { background-color: #fff; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--rd, 0) * 110ms); }
.js .reveal[data-delay="1"] { --rd: 1; } .js .reveal[data-delay="2"] { --rd: 2; } .js .reveal[data-delay="3"] { --rd: 3; }
.js .reveal.in { opacity: 1; transform: none; }
.js .car-card.reveal.in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* Hero entrance */
.js .hero-in { opacity: 0; transform: translateY(24px); animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d) * 120ms + 100ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.js .hero-bg { animation: heroZoom 14s ease-out forwards; transform: scale(1.12); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-plate { will-change: transform; animation: plateIn 1.6s cubic-bezier(.2,.7,.2,1) both .3s; }
@keyframes plateIn { from { opacity: 0; -webkit-text-stroke-color: rgba(10,124,255,0); } }
.hero h1 { background: linear-gradient(100deg, #fff 30%, #9cc9ff 50%, #fff 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite 1.5s; }
.js .hero h1.hero-in { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards calc(var(--d) * 120ms + 100ms), shine 6s linear infinite 2s; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.btn-accent { position: relative; overflow: hidden; }
.btn-accent::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn-accent:hover::after { transform: translateX(120%); }
.step-n { transition: background .3s, color .3s; }
.steps li.in .step-n { background: rgba(10, 124, 255, .12); }
.why li { transition: transform .3s, box-shadow .3s, border-color .3s; }
.why li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b9d3f5; }
.equation .eq-new { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(10,124,255,.5); } 50% { box-shadow: 0 0 0 10px rgba(10,124,255,0); } }

/* Forms v2 */
.form { position: relative; }
.card.form { border: 1px solid rgba(0,0,0,.04); }
.card.form::before { content: ""; position: absolute; top: 0; inset-inline: 28px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--accent), #6fb3ff); }
.form h3 { font-size: 1.4rem; letter-spacing: -.02em; }
.form label span { font-size: .8rem; color: #555c62; letter-spacing: .01em; }
.form .btn[type="submit"] { padding: 1em 1.4em; font-size: 1rem; }
.form.is-sending .btn[type="submit"] { pointer-events: none; opacity: .85; }
.form.is-sending .btn[type="submit"] span::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-inline-end: 9px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note a { color: inherit; }
.form-success { text-align: center; padding: 26px 6px 8px; }
.form-success[hidden] { display: none; }
.form.is-done > :not(.form-success) { display: none !important; }
.form.is-done::before { background: linear-gradient(90deg, var(--wa), #7ed6a0); }
.fs-check { width: 76px; height: 76px; margin: 0 auto 18px; }
.fs-check svg { width: 100%; height: 100%; fill: none; stroke: var(--wa); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fs-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s ease-out forwards; }
.fs-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s ease-out .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 1.5rem; margin-bottom: 6px; animation: heroIn .6s .3s both; }
.form-success p { color: var(--muted); animation: heroIn .6s .4s both; }
.form-success .btn { animation: heroIn .6s .5s both; }

/* Map consent */
.map { position: relative; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 40%, #fff 0, var(--paper) 70%); }
.map-consent .ico { width: 40px; height: 40px; color: #0757c2; stroke-width: 1.3; }
.map-consent p { margin: 0; color: var(--muted); max-width: 32ch; font-size: .95rem; }
.map.loaded .map-consent { display: none; }

/* Footer v2 */
.footer-legal { align-items: center; }
.footer-legal-left { display: flex; flex-direction: column; gap: 8px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-links a, .linklike { color: rgba(255,255,255,.6); text-decoration: none; font: inherit; font-size: .82rem; background: none; border: 0; padding: 0; cursor: pointer; }
.legal-links a:hover, .linklike:hover { color: #fff; }
.dev-credit { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: rgba(255,255,255,.6); font-size: .85rem; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); transition: border-color .2s, color .2s, background .2s; }
.dev-credit img { height: 16px; width: auto; display: block; }
.dev-credit b { color: #fff; font-weight: 600; }
.dev-credit:hover { color: #fff; border-color: rgba(0,190,196,.6); background: rgba(0,190,196,.08); }

/* Cookie banner */
.cookie { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.cookie[hidden] { display: none; }
.cookie-inner { pointer-events: auto; max-width: 980px; width: 100%; display: flex; align-items: center; gap: 22px; background: rgba(15,18,20,.97); color: #fff; border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.35); backdrop-filter: blur(10px); animation: slideUp .5s cubic-bezier(.2,.7,.2,1); }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } }
.cookie-text strong { display: block; margin-bottom: 4px; }
.cookie-text p { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.5; }
.cookie-text a { color: var(--accent); }
.cookie-btns { display: flex; gap: 10px; flex: none; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }

/* Developer popup */
.promo { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(8,10,12,.55); backdrop-filter: blur(4px); animation: fadeIn .3s; }
.promo[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.promo-card { position: relative; width: 100%; max-width: 430px; background: #fff; border-radius: 22px; padding: 34px 30px 28px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: popIn .45s cubic-bezier(.2,.9,.3,1.2); overflow: hidden; }
.promo-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #15202d, #00bec4); }
@keyframes popIn { from { transform: translateY(20px) scale(.94); opacity: 0; } }
.promo-logo img { height: 48px; width: auto; margin: 0 auto 14px; }
.promo-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #00959a; margin-bottom: 8px; }
[lang="ar"] .promo-kicker { letter-spacing: 0; }
.promo-card h2 { font-size: 1.6rem; margin-bottom: 10px; }
.promo-card p { color: var(--muted); }
.promo-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.btn-teal { background: #00bec4; color: #04282a; }
.btn-teal:hover { background: #1bd3d9; }
.promo-x { position: absolute; top: 12px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); transition: background .2s, color .2s, transform .2s; }
.promo-x:hover { background: var(--paper-2); color: var(--text); transform: rotate(90deg); }

/* Legal pages */
.legal-page { padding: 34px 0 90px; }
.legal-wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.legal-meta { color: var(--muted); font-size: .9rem; margin-bottom: 30px; }
.legal-text { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); line-height: 1.75; }
.legal-text h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.legal-text h2:first-child, .legal-text h3:first-child { margin-top: 0; }
.legal-text h3 { font-size: 1.12rem; margin: 1.3em 0 .4em; }
.legal-text ul { padding-inline-start: 1.3em; }
.legal-text a { color: #0757c2; }
.legal-other { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 760px) {
  .cookie { inset-inline: 10px; bottom: 74px; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .cookie-btns .btn { flex: 1; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero-in { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero h1 { animation: none !important; }
}
.form-note.small, .form-foot .form-note { display: block; }

/* =================== v3: brand, blocks, accessibility =================== */
.logo img { height: 46px; width: auto; display: block; }
.site-footer .logo img { height: 52px; }
.header-row { height: 74px; }
@media (max-width: 860px) { .main-nav { inset: 74px 0 auto 0; } .logo img { height: 38px; } }

.hero-emblem { position: absolute; z-index: 1; inset-inline-end: max(2vw, calc((100vw - var(--wrap)) / 2)); top: 50%; width: min(36vw, 470px); height: auto;
  transform: translateY(-50%); filter: drop-shadow(0 30px 60px rgba(0, 90, 220, .35)); animation: emblemIn 1.2s cubic-bezier(.2,.7,.2,1) both .35s, float 7s ease-in-out infinite 1.6s; pointer-events: none; }
.hero.has-image .hero-emblem { display: none; }
@keyframes emblemIn { from { opacity: 0; transform: translateY(-44%) scale(.94); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero { background: radial-gradient(90% 80% at 80% 35%, rgba(10,124,255,.28) 0%, transparent 60%), radial-gradient(60% 60% at 100% 100%, rgba(229,10,16,.18) 0%, transparent 70%), var(--ink); }
.hero h1 { background-image: linear-gradient(100deg, #fff 30%, #9cc9ff 50%, #fff 70%); max-width: 11ch; }
@media (max-width: 980px) { .hero-emblem { opacity: .16; width: 70vw; inset-inline-end: -12vw; } }
.kicker { color: var(--accent-deep); }
.kicker-light { color: #5fb0ff; }
.step-n, .equation .eq-diff { color: #5fb0ff; }
.btn-accent:hover { box-shadow: 0 8px 24px rgba(10,124,255,.35); }

/* Visible focus for keyboard users */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 3px; }
.section-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .cookie :focus-visible { outline-color: #8cc4ff; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 4px rgba(194,65,45,.12) !important; }
.field-err { display: block; color: var(--danger); font-size: .8rem; margin-top: 4px; font-weight: 500; }
.section-dark .field-err { color: #ff9b8e; }

.preview-bar { position: sticky; top: 74px; z-index: 40; background: #ffcf33; color: #2a2100; text-align: center; font-weight: 700; padding: 6px; font-size: .85rem; }

/* Section style presets (page builder) */
.space-compact { padding-block: clamp(36px, 5vw, 56px); }
.space-large { padding-block: clamp(90px, 12vw, 150px); }
.align-center .block-head, .align-center .ti-block > div:first-child { text-align: center; margin-inline: auto; }
.align-center .block-head .lead { margin-inline: auto; }
.align-center .kicker { justify-content: center; }
.block-head { max-width: 760px; margin-bottom: 30px; }
.section-dark .lead, .section-dark .prose { color: rgba(255,255,255,.75); }
.section-dark .cardx, .section-dark .review, .section-dark .faq-item { background: var(--ink-2); border-color: rgba(255,255,255,.08); color: #fff; }
.section-dark .cardx p, .section-dark .faq-a { color: rgba(255,255,255,.7); }

.ti-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.ti-block.no-img { grid-template-columns: minmax(0, 780px); }
.ti-block.img-left .ti-img { order: -1; }
.ti-img { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.ti-img img { width: 100%; height: 100%; object-fit: cover; }
.ti-block .btn { margin-top: 10px; }

.cards-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.cardx { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .3s, box-shadow .3s; }
.cardx:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cardx .ico { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.cardx h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cardx p { color: var(--muted); margin: 0; }

.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); position: relative; transition: transform .25s; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: currentColor; border-radius: 2px; }
.faq-x::after { transform: rotate(90deg); transition: transform .25s; }
.faq-item[open] .faq-x::after { transform: rotate(0); }
.faq-a { padding: 0 20px 18px; color: var(--muted); line-height: 1.7; }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.review blockquote { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.65; }
.review blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--accent); font-family: Georgia, serif; margin-bottom: 8px; }
.review figcaption { color: var(--muted); font-size: .9rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gal-item { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal-item:hover img { transform: scale(1.05); }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(26px, 4vw, 44px); border-radius: 22px;
  background: radial-gradient(80% 140% at 100% 0%, rgba(10,124,255,.35), transparent 60%), var(--ink); color: #fff; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.75); }
.strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.strip p { margin: 0; color: var(--muted); }
.strip .contact-cta { margin: 0; }
@media (max-width: 760px) {
  .ti-block { grid-template-columns: 1fr; }
  .ti-block.img-left .ti-img { order: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

.pill-bad { color: var(--danger); }
.promo-card :focus-visible { outline-color: #00959a; }
@media (max-width: 860px) {
  .main-nav { transform: translateY(calc(-100% - 90px)); visibility: hidden; transition: transform .25s, visibility 0s .25s; }
  .main-nav.is-open { transform: none; visibility: visible; transition: transform .25s; }
}
.spec-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* In transit */
.status-in_transit { background: var(--accent); color: #fff; }
.car-arrival { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; font-size: .88rem; font-weight: 600; color: var(--accent-deep); }
.car-arrival .ico { width: 18px; height: 18px; }
.transit-box { display: flex; gap: 14px; align-items: flex-start; background: #eaf3ff; border: 1px solid #cfe2fb; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.transit-box b { display: block; margin-bottom: 2px; color: var(--accent-deep); }
.transit-box p { margin: 0; font-size: .93rem; color: #33414f; }
.transit-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.transit-ico .ico { width: 22px; height: 22px; }

/* Full-screen photo viewer */
.lightbox { padding: 0; background: rgba(6, 8, 10, .96); }
.lb-stage { margin: 0; width: 100vw; height: 100vh; display: grid; place-items: center; padding: 64px 84px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lb-stage img.lb-in { animation: lbIn .28s ease-out; }
@keyframes lbIn { from { opacity: .2; transform: scale(.985); } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-nav:active { transform: translateY(-50%) scale(.94); }
.lb-nav .ico { width: 28px; height: 28px; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { top: 14px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.08); z-index: 3; font-size: 2rem; }
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: .9rem; background: rgba(255,255,255,.08); padding: 5px 14px; border-radius: 999px; }
html.lb-open { overflow: hidden; }
@media (max-width: 640px) {
  .lb-stage { padding: 56px 8px 60px; }
  .lb-nav { top: auto; bottom: 10px; transform: none; width: 48px; height: 48px; }
  .lb-nav:active { transform: scale(.94); }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
}

/* Footer v3 — compact */
.site-footer { padding: 52px 0 0; font-size: .93rem; }
.footer-main { display: grid; grid-template-columns: minmax(240px, 1.4fr) 1.2fr .8fr .9fr; gap: 28px 40px; padding-bottom: 36px; }
.f-brand .logo { margin-bottom: 12px; }
.f-brand .logo img { height: 44px; }
.f-brand p { color: rgba(255,255,255,.6); max-width: 34ch; margin: 0 0 18px; line-height: 1.55; }
.f-social { display: flex; gap: 8px; flex-wrap: nowrap; }
.f-soc { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85); text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.f-soc:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.f-soc .ico { width: 19px; height: 19px; }
.f-h { font-family: var(--font); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 4px 0 14px; }
[lang="ar"] .f-h { letter-spacing: 0; font-size: .85rem; }
.f-list, .f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.78); }
.f-list .ico { width: 17px; height: 17px; flex: none; margin-top: 2px; color: #5fb0ff; }
.f-list a, .f-links a, .f-links .linklike { color: rgba(255,255,255,.78); text-decoration: none; font-size: .93rem; }
.f-list a:hover, .f-links a:hover, .f-links .linklike:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; border-top: 1px solid rgba(255,255,255,.08); padding: 16px 20px 18px; font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-grid, .footer-legal { display: none; }
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; gap: 24px; } .footer-bottom { flex-direction: column; align-items: flex-start; } }
.hero h1 { max-width: 16ch; font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
@media (min-width: 981px) { .hero-inner > * { max-width: 60%; } }
.lightbox { z-index: 200; }
.lb-stage img { width: auto; height: auto; max-width: calc(100vw - 168px); max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); }
@media (max-width: 640px) { .lb-stage img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 140px); } }

/* v2.2.1 mobile car page: columns must not grow with the thumbnail strip */
.car-layout > *, .car-details > * { min-width: 0; }
@media (max-width: 980px) {
  .car-layout, .car-details { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .gallery, .gallery-main, .gallery-thumbs { max-width: 100%; }
}
@media (max-width: 640px) {
  .gallery-main { border-radius: 14px; aspect-ratio: 4 / 3; }
  .gallery-thumbs button { width: 72px; }
}

/* v2.3 demo mode */
.demo-ribbon { position: relative; z-index: 130; background: repeating-linear-gradient(45deg, #b91c1c 0 14px, #991b1b 14px 28px); color: #fff; text-align: center; font-weight: 700; font-size: .86rem; letter-spacing: .06em; padding: 7px 12px; }
.demo-notice .promo-card::before { background: linear-gradient(90deg, #991b1b, #ef4444); }
.demo-badge { display: inline-block; background: #b91c1c; color: #fff; font-weight: 800; letter-spacing: .2em; font-size: .8rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 12px; }
.demo-notice h2 { margin: 0 0 8px; }

.demo-cd { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 90; background: rgba(14,17,22,.94); color: #fff; border: 1px solid rgba(255,255,255,.12); border-top: 3px solid #ef4444; border-radius: 14px; padding: 10px 14px 12px; box-shadow: 0 14px 40px rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.demo-cd-t { margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fca5a5; text-align: center; }
.demo-cd-n { display: flex; gap: 8px; justify-content: center; }
.demo-cd-n span { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.demo-cd-n b { font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.demo-cd-n small { font-size: .62rem; color: #9ca3af; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) { .demo-cd { bottom: calc(84px + env(safe-area-inset-bottom)); inset-inline-end: 10px; padding: 8px 10px 9px; } .demo-cd-n b { font-size: 1.1rem; } .demo-cd-n span { min-width: 32px; } }
.cookie:not([hidden]) ~ .demo-cd { display: none; }

/* ---------- Sold cars ---------- */
.sold-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .sold-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .sold-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .sold-grid { grid-template-columns: 1fr; } }
.sold-grid:not(.open) .is-more { display: none; }
.sold-tile { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.section-dark .sold-tile, [data-bg="dark"] .sold-tile { background: var(--ink-2); border-color: var(--ink-3); }
.sold-media { flex: none; width: 64px; height: 48px; border-radius: 6px; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.sold-media img { width: 100%; height: 100%; object-fit: cover; }
.sold-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sold-txt b { font-size: .95rem; overflow-wrap: anywhere; }
.sold-txt small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sold-more { margin-top: 12px; }
.sold-more > summary { list-style: none; cursor: pointer; margin: 8px auto 16px; display: flex; width: max-content; }
.sold-more > summary::-webkit-details-marker { display: none; }
.sold-more[open] > summary { display: none; }

/* =====================================================================
   RealCar theme — navy brand palette, new hero, motion, WhatsApp badge
   ===================================================================== */
:root {
  --ink: #0a0f2c; --ink-2: #111841; --ink-3: #1d2656;
  --paper: #f3f5fb; --paper-2: #e6eaf5; --line: #dbe1ee; --muted: #5f6880; --text: #111530;
  --accent: #3a6cf4; --accent-hover: #2b58d8; --accent-deep: #2b55cc; --accent-2: #6fd3ff;
  --radius: 18px; --shadow: 0 1px 2px rgba(10,15,44,.06), 0 14px 34px rgba(10,15,44,.08);
}
.site-header, .site-header.scrolled { background: rgba(10, 15, 44, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.main-nav a:hover::after { transform: scaleX(1); }

/* Buttons */
.btn-accent { background: linear-gradient(135deg, var(--accent) 0%, #5a5ff0 100%); border: 0; box-shadow: 0 10px 26px -10px rgba(58,108,244,.8); position: relative; overflow: hidden; }
.btn-accent::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn-accent:hover::after { transform: translateX(120%); }
.btn-accent:hover { transform: translateY(-2px); }

/* Hero */
.hero { min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px;
  background: radial-gradient(70% 70% at 78% 40%, #1b2a78 0%, transparent 65%), linear-gradient(180deg, #070b22 0%, #0a0f2c 70%, #0d1440 100%); }
.hero-grain { opacity: .05; }
.hero-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; filter: blur(60px); opacity: .75; pointer-events: none; }
.hero-aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.hero-aurora i:nth-child(1) { width: 46vw; height: 46vw; background: #2f56e8; top: -18%; right: -8%; animation: aur1 18s ease-in-out infinite alternate; }
.hero-aurora i:nth-child(2) { width: 34vw; height: 34vw; background: #1fb6ff; bottom: -22%; right: 22%; opacity: .55; animation: aur2 22s ease-in-out infinite alternate; }
.hero-aurora i:nth-child(3) { width: 30vw; height: 30vw; background: #6d4cff; top: 20%; left: -12%; opacity: .35; animation: aur3 26s ease-in-out infinite alternate; }
@keyframes aur1 { to { transform: translate(-12vw, 10vh) scale(1.15); } }
@keyframes aur2 { to { transform: translate(10vw, -12vh) scale(.9); } }
@keyframes aur3 { to { transform: translate(14vw, 6vh) scale(1.2); } }
.hero-road { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(111,211,255,.0) 0 60px, rgba(111,211,255,.35) 60px 61px);
  transform: perspective(380px) rotateX(62deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
.hero-road::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 38px, rgba(111,211,255,.35) 38px 40px); animation: road 1.6s linear infinite; }
@keyframes road { to { background-position: 0 40px; } }
.hero-stage { position: absolute; z-index: 1; inset-inline-end: max(2vw, calc((100vw - var(--wrap)) / 2)); top: 40%; width: min(36vw, 500px); aspect-ratio: 392 / 320; transform: translateY(-50%); pointer-events: none; }
.hero-stage .hero-emblem { position: absolute; inset: 0; width: 100%; height: auto; top: 0; transform: none; inset-inline-end: 0;
  filter: drop-shadow(0 24px 50px rgba(58,108,244,.55)); animation: carIn 1.4s cubic-bezier(.2,.8,.2,1) both .3s, float 6s ease-in-out infinite 1.8s; }
@keyframes carIn { from { opacity: 0; transform: translateX(18%) scale(.96); filter: blur(6px) drop-shadow(0 24px 50px rgba(58,108,244,0)); } }
[dir="rtl"] .hero-stage .hero-emblem { animation-name: carInRtl, float; }
@keyframes carInRtl { from { opacity: 0; transform: translateX(-18%) scale(.96); } }
.hero-glow { position: absolute; left: 6%; right: 6%; bottom: 22%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(111,211,255,.55), transparent); filter: blur(10px); animation: glow 3.5s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .45; transform: scaleX(.9); } }
.hero.has-image .hero-stage { display: none; }
.hero .kicker-light { display: inline-flex; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #bcd2ff; letter-spacing: .14em; }
.hero .kicker-light::before { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.hero h1 { max-width: 13ch; background-image: linear-gradient(100deg, #fff 25%, #8fd8ff 45%, #a7a2ff 55%, #fff 75%); }
.hero-badges .ico { color: var(--accent-2); }
.hero-stats-wrap { position: relative; z-index: 2; margin-top: clamp(30px, 5vw, 60px); }
.hero-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hero-stats li { padding: 18px 20px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 2px; }
.hero-stats b { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; background: linear-gradient(90deg, #fff, #9fd9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span:not([data-count]) { font-size: .86rem; color: rgba(255,255,255,.66); line-height: 1.3; }
@media (max-width: 980px) { .hero-stage { opacity: .22; width: 90vw; inset-inline-end: -20vw; top: 34%; } .hero-stats { grid-template-columns: 1fr 1fr; } }

/* Brand marquee */
.brand-marquee { background: #0d1440; color: rgba(255,255,255,.55); overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.bm-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--font-display); font-weight: 700; letter-spacing: .18em; font-size: .95rem; white-space: nowrap; }
.bm-track em { font-style: normal; color: var(--accent); font-size: .7rem; }
.brand-marquee:hover .bm-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .bm-track { animation-direction: reverse; }

/* Sections & cards */
.kicker { color: var(--accent-deep); }
.kicker::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); height: 3px; border-radius: 3px; }
.section-alt { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.car-card { border-radius: var(--radius); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.car-card:hover { box-shadow: 0 22px 46px -18px rgba(28,45,140,.4); }
.car-card .car-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.car-card:hover .car-media img { transform: scale(1.06); }
.no-photo { background: radial-gradient(80% 80% at 50% 30%, #e9eefb, #dfe5f4); color: #7d8bb5; }
.cardx { position: relative; border-radius: var(--radius); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; overflow: hidden; }
.cardx::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: linear-gradient(135deg, var(--accent), var(--accent-2), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
.cardx:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgba(28,45,140,.45); }
.cardx:hover::before { opacity: 1; }
.cardx .ico { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cardx:hover .ico { transform: rotate(-8deg) scale(1.12); }
.section-dark { background: radial-gradient(60% 80% at 100% 0%, rgba(58,108,244,.25), transparent 60%), var(--ink); }
#service .ti-block.no-img { grid-template-columns: minmax(0, 860px); }
#service h2 { background: linear-gradient(90deg, #fff, #9fd9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.review { border-radius: var(--radius); transition: transform .4s, box-shadow .4s; }
.review:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 20px 40px -24px rgba(28,45,140,.5); }
.reviews-more { margin-top: 28px; }
.sold-tile { transition: transform .3s, border-color .3s; }
.sold-tile:hover { transform: translateY(-3px); border-color: var(--accent); }

/* Floating WhatsApp badge */
.wa-float { position: fixed; z-index: 70; inset-inline-end: 22px; bottom: 22px; display: flex; align-items: center; gap: 0; height: 60px; padding: 0; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6); transition: gap .35s, padding .35s, transform .3s; animation: waIn .6s cubic-bezier(.2,.8,.2,1) both 1.5s; }
.wa-float-ico { width: 60px; height: 60px; display: grid; place-items: center; flex: none; position: relative; }
.wa-float-ico .ico { width: 30px; height: 30px; }
.wa-float-ico::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waRing 2.4s ease-out infinite; }
.wa-float-txt { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s cubic-bezier(.2,.7,.2,1), padding .45s; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float:hover .wa-float-txt, .wa-float:focus-visible .wa-float-txt { max-width: 260px; padding-inline-end: 22px; }
@keyframes waRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes waIn { from { transform: translateY(30px) scale(.6); opacity: 0; } }
@media (max-width: 640px) {
  .wa-float { inset-inline-end: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); height: 56px; }
  .wa-float-ico { width: 56px; height: 56px; }
  .wa-float-txt { display: none; }
  .head-phone { padding: 0; width: 40px; height: 40px; justify-content: center; }
  .head-phone span { display: none; }
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 14ch; }
@media (prefers-reduced-motion: reduce) {
  .hero-aurora i, .hero-road::after, .bm-track, .hero-glow, .wa-float, .wa-float-ico::before, .hero .kicker-light::before, .hero-stage .hero-emblem { animation: none !important; }
}

/* Card photos: dealer shots are portrait with the car in the lower part — taller frame, anchored low */
.car-media { aspect-ratio: 5 / 4; }
.car-media img { object-position: 50% 88%; transform-origin: 50% 88%; }
.sold-media img { object-position: 50% 85%; }

/* Stock: availability tabs */
.status-tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.status-tabs label { cursor: pointer; position: relative; }
.status-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.status-tabs span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: .95rem; transition: background .25s, color .25s, border-color .25s, box-shadow .25s; }
.status-tabs span .ico { width: 18px; height: 18px; }
.status-tabs em { font-style: normal; font-size: .8rem; padding: 1px 8px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.status-tabs label:hover span { border-color: var(--accent); }
.status-tabs input:checked + span { background: linear-gradient(135deg, var(--accent), #5a5ff0); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -12px rgba(58,108,244,.9); }
.status-tabs input:checked + span em { background: rgba(255,255,255,.22); color: #fff; }
.status-tabs input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Zoomed-out cover (set per car): free space filled with a blurred copy of the photo */
.car-media[data-zo]::before, .sold-media[data-zo]::before { content: ""; position: absolute; inset: -16px; background: var(--ph) center / cover; filter: blur(14px) brightness(.85); }
.car-media[data-zo] img, .sold-media[data-zo] img { position: relative; z-index: 0; }
.sold-media { position: relative; }
.car-card:hover .car-media[data-zo] img { transform: scale(1.03); }

/* Language switcher: all languages in a row */
.lang-row { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.lang-row a { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.7); text-decoration: none; transition: background .2s, color .2s; }
.lang-row a:hover { color: #fff; background: rgba(255,255,255,.1); }
.lang-row a.is-active { color: #fff; background: linear-gradient(135deg, var(--accent), #5a5ff0); }
@media (max-width: 640px) { .lang-row a { min-width: 28px; height: 28px; padding: 0 5px; font-size: .72rem; } .header-actions { gap: 6px; } }
@media (max-width: 380px) { .site-header .logo img { height: 30px; } }

/* One frame shape (5:4) for every cover, so the admin preview matches exactly */
.sold-media { width: 70px; height: auto; aspect-ratio: 5 / 4; }

/* Covers cut in the admin are already framed: no extra positioning */
.car-media img.is-framed, .sold-media img.is-framed { object-position: 50% 50% !important; transform-origin: 50% 50%; }
