:root {
  --ink: #10213f;
  --muted: #687991;
  --navy: #f7faff;
  --navy-2: #ffffff;
  --navy-3: #edf4ff;
  --blue: #2475ef;
  --blue-2: #397ff0;
  --ice: #173967;
  --line: rgba(37, 91, 158, .12);
  --line-strong: rgba(37, 91, 158, .22);
  --surface: rgba(255, 255, 255, .84);
  --shadow: 0 28px 80px rgba(40, 81, 132, .14);
  --shell: min(1320px, calc(100% - 72px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--navy);
  font-family: "Tajawal", system-ui, sans-serif;
  overflow-x: hidden;
}
body.dialog-open, body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 10px; right: 10px; padding: 10px 14px; color: #07101d; background: white; border-radius: 9px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: max(24px, calc((100% - 1440px) / 2));
  left: max(24px, calc((100% - 1440px) / 2));
  min-height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(39, 101, 177, .12);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(48, 89, 139, .12);
  backdrop-filter: blur(18px);
  transition: top .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.scrolled { top: 8px; background: rgba(255, 255, 255, .96); border-color: rgba(36, 117, 239, .2); }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-family: Arial, sans-serif; font-size: 21px; font-weight: 500; letter-spacing: .04em; }
.brand > span:last-child { display: grid; }
.brand b { font-weight: 900; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 7px; letter-spacing: .24em; }
.brand-mark { position: relative; width: 39px; height: 39px; border: 1px solid rgba(101,167,255,.45); border-radius: 50%; }
.brand-mark::before, .brand-mark::after, .brand-mark i { content: ""; position: absolute; border-radius: 50%; }
.brand-mark::before { inset: 7px; border: 2px solid var(--blue); border-top-color: transparent; transform: rotate(18deg); }
.brand-mark::after { width: 6px; height: 6px; right: 4px; top: 5px; background: var(--blue-2); box-shadow: 0 0 14px var(--blue); }
.brand-mark i { width: 5px; height: 5px; inset: 0; margin: auto; background: var(--blue); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 8px; }
.main-nav a { position: relative; padding: 11px 13px; color: #596a82; font-size: 13px; font-weight: 700; transition: color .25s ease; }
.main-nav a::after { content: ""; position: absolute; right: 13px; bottom: 4px; width: 0; height: 2px; background: var(--blue); border-radius: 2px; transition: width .25s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a.active::after { width: calc(100% - 26px); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.back-link { padding: 11px 15px; color: var(--ice); border: 1px solid var(--line-strong); border-radius: 11px; font-size: 12px; font-weight: 700; transition: border-color .25s ease, background .25s ease; }
.back-link:hover { color: var(--blue); background: var(--navy-3); border-color: rgba(36,117,239,.38); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--navy-3); }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; background: var(--blue); transition: transform .25s ease; }

.button {
  min-height: 52px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { color: white; background: linear-gradient(135deg, #226ef1, #438fff); box-shadow: 0 15px 36px rgba(47,125,255,.24); }
.button-primary:hover { box-shadow: 0 20px 44px rgba(47,125,255,.34); }
.button-ghost { color: #17325b; background: rgba(255,255,255,.78); border-color: var(--line-strong); box-shadow: 0 12px 28px rgba(44,86,139,.07); }
.button-ghost:hover { border-color: var(--blue-2); background: rgba(47,125,255,.08); }

.hero { position: relative; min-height: 100svh; padding: 132px 0 34px; display: grid; align-content: center; overflow: hidden; background: radial-gradient(circle at 17% 36%, rgba(83,151,246,.18), transparent 36%), radial-gradient(circle at 88% 18%, rgba(181,214,255,.28), transparent 30%), linear-gradient(155deg, #f8fbff 0%, #ffffff 55%, #edf5ff 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(transparent, rgba(232,242,255,.88)); pointer-events: none; }
.hero-glow { position: absolute; top: 2%; left: 12%; width: 540px; height: 540px; border: 1px solid rgba(36,117,239,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(47,125,255,.035), 0 0 0 140px rgba(47,125,255,.022); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: clamp(28px, 4vw, 64px); direction: ltr; }
.hero-copy { position: relative; z-index: 3; padding: clamp(28px, 3vw, 40px); direction: rtl; background: rgba(255,255,255,.82); border: 1px solid rgba(37,91,158,.14); border-radius: 7px 30px 30px 7px; box-shadow: 0 28px 75px rgba(40,81,132,.12); backdrop-filter: blur(16px); }
.hero-copy::before { content: ""; position: absolute; top: 34px; right: -1px; width: 4px; height: 94px; background: linear-gradient(180deg, var(--blue-2), rgba(57,127,240,.08)); border-radius: 4px 0 0 4px; }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 9px; color: var(--blue-2); font-size: 14px; font-weight: 800; }
.eyebrow span { width: 25px; height: 2px; background: var(--blue); border-radius: 2px; box-shadow: 0 0 12px rgba(47,125,255,.7); }
.hero h1, .section-heading h2, .finance-copy h2, .contact-copy h2 { margin: 0; font-size: clamp(43px, 4.5vw, 72px); font-weight: 900; line-height: 1.08; letter-spacing: -.045em; }
.hero h1 { font-size: clamp(36px, 3.55vw, 56px); line-height: 1.14; }
.hero h1 em, .finance-copy h2 em, .contact-copy h2 em { color: var(--blue-2); font-style: normal; }
.hero-lead { max-width: 570px; margin: 24px 0 0; color: #60728b; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 29px; }
.hero-points { margin: 24px 0 0; padding: 0; display: flex; gap: 22px; list-style: none; color: #617189; font-size: 13px; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points b { display: grid; place-items: center; width: 19px; height: 19px; color: var(--blue); background: rgba(47,125,255,.12); border-radius: 50%; font-size: 10px; }
.hero-media { position: relative; min-height: 540px; display: grid; place-items: center; direction: rtl; perspective: 1000px; }
.hero-media::after { content: ""; position: absolute; z-index: 1; right: 8%; bottom: 2%; width: 84%; height: 17%; background: radial-gradient(ellipse, rgba(52,104,171,.18), transparent 68%); filter: blur(8px); }
.hero-media > img { position: relative; z-index: 2; width: min(122%, 900px); height: 520px; object-fit: cover; object-position: center; border: 7px solid rgba(255,255,255,.72); border-radius: 48px 8px 48px 8px; box-shadow: 0 38px 100px rgba(48,85,130,.25); animation: carFloat 7s ease-in-out infinite; }
.hero-orbit { position: absolute; z-index: 1; width: 66%; aspect-ratio: 1; border: 1px solid rgba(101,167,255,.15); border-radius: 50%; animation: spin 28s linear infinite; }
.hero-orbit::after { content: ""; position: absolute; top: 11%; right: 14%; width: 7px; height: 7px; background: var(--blue-2); border: 5px solid rgba(255,255,255,.95); border-radius: 50%; box-shadow: 0 0 15px rgba(36,117,239,.48); }
.orbit-two { width: 45%; animation-direction: reverse; animation-duration: 19s; }
.hero-spec, .model-tag { position: absolute; z-index: 4; background: rgba(255,255,255,.9); border: 1px solid rgba(36,117,239,.15); box-shadow: 0 16px 45px rgba(48,85,130,.15); backdrop-filter: blur(14px); }
.hero-spec { width: 94px; min-height: 86px; padding: 12px; display: grid; text-align: center; border-radius: 17px; }
.hero-spec small, .hero-spec span { color: var(--muted); font-size: 10px; }
.hero-spec strong { color: var(--ink); font: 900 27px/1 Arial, sans-serif; }
.spec-power { top: 8%; right: 3%; }
.spec-range { bottom: 9%; left: 0; }
.model-tag { right: 7%; bottom: 5%; padding: 11px 15px; border-radius: 13px; }
.model-tag span { display: block; color: var(--muted); font-size: 10px; }
.model-tag b { display: block; margin-top: 2px; font-size: 15px; }
.hero-stats { position: relative; z-index: 3; margin-top: 22px; padding: 18px 26px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 20px 55px rgba(53,91,139,.08); backdrop-filter: blur(15px); }
.hero-stats article { min-height: 47px; padding: 2px 25px; display: grid; align-content: center; border-left: 1px solid var(--line); }
.hero-stats article:last-child { border-left: 0; }
.hero-stats strong { color: var(--ink); font-size: 20px; }
.hero-stats span { margin-top: 3px; color: var(--muted); font-size: 11px; }

.section { position: relative; padding: 110px 0; }
.section-heading { margin-bottom: 37px; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.section-heading h2 { font-size: clamp(35px, 3.3vw, 52px); }
.section-heading > p { width: min(460px, 42%); margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.section-heading.compact { margin-bottom: 32px; }
.inventory { background: #f4f8fd; color: #101b2c; }
.inventory .eyebrow { color: #236ee7; }
.inventory .eyebrow span { background: #236ee7; }
.inventory .section-heading > p { color: #69768a; }
.filters { padding: 15px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: end; background: white; border: 1px solid #dde5f0; border-radius: 18px; box-shadow: 0 18px 50px rgba(28,53,90,.07); }
.filters label { color: #66758c; font-size: 11px; font-weight: 700; }
.filters select { width: 100%; height: 48px; margin-top: 7px; padding: 0 13px; color: #172338; background: #f6f8fc; border: 1px solid #dce4ef; border-radius: 11px; outline: 0; }
.filters select:focus { border-color: #438fff; box-shadow: 0 0 0 3px rgba(47,125,255,.12); }
.reset-filter { height: 48px; padding: 0 18px; color: #236ee7; background: #edf4ff; border: 0; border-radius: 11px; font-weight: 800; }
.results-count { min-height: 22px; margin: 18px 3px 10px; color: #78869a; font-size: 12px; }
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.car-card { overflow: hidden; background: white; border: 1px solid #dfe6ef; border-radius: 22px; box-shadow: 0 18px 50px rgba(28,53,90,.07); transition: transform .3s ease, box-shadow .3s ease, opacity .25s ease; }
.car-card:hover { transform: translateY(-7px); box-shadow: 0 28px 65px rgba(28,53,90,.13); }
.car-card[hidden] { display: none; }
.car-image { position: relative; height: 260px; overflow: hidden; background: #101722; }
.car-image::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, rgba(5,10,17,.58)); pointer-events: none; }
.car-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.car-card:hover .car-image img { transform: scale(1.045); }
.car-image > span { position: absolute; z-index: 3; top: 14px; right: 14px; padding: 7px 10px; color: white; background: rgba(13,26,44,.82); border: 1px solid rgba(255,255,255,.18); border-radius: 9px; backdrop-filter: blur(10px); font-size: 10px; font-weight: 800; }
.favorite { position: absolute; z-index: 4; top: 13px; left: 13px; width: 35px; height: 35px; padding: 0; color: white; background: rgba(13,26,44,.68); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; font-size: 20px; line-height: 1; }
.favorite.active { color: #ff7891; background: white; }
.car-body { padding: 20px; }
.car-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.car-title small { color: #7b889b; font-size: 10px; font-weight: 700; }
.car-title h3 { margin: 5px 0 0; color: #132036; font-size: 23px; }
.car-title > strong { color: #236ee7; font-size: 15px; white-space: nowrap; }
.car-specs { margin: 18px 0; padding: 13px 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; border-top: 1px solid #e9eef5; border-bottom: 1px solid #e9eef5; }
.car-specs li { display: grid; gap: 4px; text-align: center; border-left: 1px solid #e9eef5; }
.car-specs li:last-child { border-left: 0; }
.car-specs span { color: #8793a5; font-size: 9px; }
.car-specs b { color: #26354c; font-size: 11px; }
.card-action { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #172338; background: #f3f6fa; border: 1px solid #e2e8f1; border-radius: 11px; font-size: 12px; font-weight: 800; transition: color .25s ease, background .25s ease, border-color .25s ease; }
.card-action:hover { color: white; background: #236ee7; border-color: #236ee7; }
.empty-state { padding: 60px 20px; text-align: center; color: #7b889b; background: white; border: 1px dashed #ccd7e5; border-radius: 20px; }
.empty-state span { display: block; color: #236ee7; font-size: 42px; }
.empty-state h3 { margin: 8px 0; color: #1e2c42; }
.empty-state p { margin: 0; }

.services { overflow: hidden; background: linear-gradient(155deg, #ffffff, #f1f7ff); }
.services::before { content: ""; position: absolute; width: 400px; height: 400px; top: -190px; left: -90px; background: rgba(47,125,255,.13); border-radius: 50%; filter: blur(10px); }
.service-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.service-grid article { position: relative; min-height: 230px; padding: 24px; overflow: hidden; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 45px rgba(48,86,134,.07); transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease; }
.service-grid article:hover { transform: translateY(-7px); background: white; border-color: rgba(36,117,239,.28); box-shadow: 0 25px 60px rgba(48,86,134,.12); }
.service-grid article > span { position: absolute; left: 17px; top: 17px; color: #91a1b7; font: 700 10px/1 Arial, sans-serif; }
.service-grid i { width: 46px; height: 46px; display: grid; place-items: center; color: var(--blue); background: rgba(47,125,255,.09); border: 1px solid rgba(36,117,239,.18); border-radius: 13px; font-style: normal; font-size: 23px; }
.service-grid h3 { margin: 39px 0 8px; font-size: 19px; }
.service-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.finance { background: linear-gradient(145deg, #edf5ff, #f8fbff); }
.finance-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(50px, 8vw, 120px); }
.finance-copy h2, .contact-copy h2 { font-size: clamp(36px, 3.7vw, 58px); }
.finance-copy > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) { max-width: 560px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.finance-copy ul { margin: 25px 0 0; padding: 0; display: grid; gap: 11px; list-style: none; color: #5e7088; font-size: 13px; }
.finance-copy li::before { content: "✓"; display: inline-grid; place-items: center; width: 21px; height: 21px; margin-left: 8px; color: var(--blue); background: rgba(47,125,255,.12); border-radius: 50%; font-size: 10px; }
.calculator { padding: 28px; background: rgba(255,255,255,.9); border: 1px solid rgba(36,117,239,.14); border-radius: 24px; box-shadow: var(--shadow); }
.calculator-head { margin-bottom: 26px; display: flex; align-items: center; justify-content: space-between; }
.calculator-head span { font-size: 21px; font-weight: 900; }
.calculator-head b { padding: 7px 10px; color: var(--blue); background: rgba(47,125,255,.1); border-radius: 8px; font: 800 9px/1 Arial, sans-serif; letter-spacing: .12em; }
.calculator label { position: relative; display: block; color: #5f7087; font-size: 12px; font-weight: 700; }
.calculator input[type="range"] { width: 100%; margin: 24px 0 7px; accent-color: var(--blue); }
.calculator output { display: block; color: var(--ink); font-size: 21px; font-weight: 900; }
.calculator-row { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calculator select { width: 100%; height: 48px; margin-top: 8px; padding: 0 12px; color: #17304f; background: #f5f8fd; border: 1px solid var(--line-strong); border-radius: 11px; }
.monthly-result { margin: 24px 0 17px; padding: 20px; display: grid; text-align: center; background: linear-gradient(135deg, rgba(47,125,255,.18), rgba(47,125,255,.06)); border: 1px solid rgba(101,167,255,.22); border-radius: 16px; }
.monthly-result span { color: #65768e; font-size: 11px; }
.monthly-result strong { margin: 6px 0; color: var(--blue); font-size: 32px; }
.monthly-result small { color: #7d8da2; font-size: 9px; }
.calculator .button { width: 100%; }

.contact { background: #f2f5fa; color: #142137; }
.contact-panel { padding: 40px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(45px, 7vw, 95px); background: white; border: 1px solid #dce5f0; border-radius: 28px; box-shadow: 0 26px 70px rgba(32,56,91,.1); }
.contact-copy h2 { font-size: clamp(35px, 3.4vw, 53px); }
.contact-copy > p:not(.eyebrow) { color: #6e7c90; }
.contact-meta { margin-top: 25px; display: grid; gap: 11px; color: #657389; font-size: 12px; }
.contact-meta span { display: grid; grid-template-columns: 92px 1fr; }
.contact-meta b { color: #1d2b42; }
.booking-form { padding: 25px; background: #f6f8fc; border: 1px solid #e0e7f0; border-radius: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-form label { display: block; margin-bottom: 13px; color: #5f6e84; font-size: 11px; font-weight: 700; }
.booking-form input, .booking-form select { width: 100%; height: 48px; margin-top: 7px; padding: 0 12px; color: #172338; background: white; border: 1px solid #d8e0eb; border-radius: 10px; outline: 0; }
.booking-form input:focus, .booking-form select:focus { border-color: #438fff; box-shadow: 0 0 0 3px rgba(47,125,255,.1); }
.booking-form .button { width: 100%; }
.form-note { margin: 10px 0 0; color: #8a96a8; text-align: center; font-size: 9px; }

.site-footer { padding: 29px 0; color: var(--ink); background: #ffffff; border-top: 1px solid var(--line); }
.site-footer .shell { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.footer-brand { font-size: 17px; }
.footer-brand .brand-mark { width: 31px; height: 31px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.site-footer .shell > a:last-child { justify-self: end; color: var(--blue); font-size: 11px; font-weight: 700; }

.car-dialog { width: min(960px, calc(100% - 32px)); max-height: min(760px, calc(100svh - 32px)); padding: 0; overflow: hidden; color: var(--ink); background: #ffffff; border: 1px solid rgba(36,117,239,.14); border-radius: 25px; box-shadow: 0 40px 130px rgba(28,58,96,.28); }
.car-dialog[open] { display: grid; grid-template-columns: 1.07fr .93fr; animation: dialogIn .3s ease both; }
.car-dialog::backdrop { background: rgba(27,45,70,.48); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; z-index: 4; top: 13px; left: 13px; width: 38px; height: 38px; padding: 0; color: #17304f; background: rgba(255,255,255,.9); border: 1px solid rgba(36,117,239,.16); border-radius: 50%; box-shadow: 0 8px 24px rgba(30,64,108,.14); font-size: 25px; }
.dialog-image { min-height: 560px; background: #eaf1fa; }
.dialog-image img { width: 100%; height: 100%; object-fit: cover; }
.dialog-content { padding: 33px; overflow-y: auto; }
.dialog-category { margin: 0 0 8px; color: #7fb4ff; font-size: 11px; font-weight: 800; }
.dialog-content h2 { margin: 0; font-size: 35px; }
.dialog-content > p:not(.dialog-category) { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.dialog-price { margin-top: 20px; padding: 15px; display: flex; align-items: center; justify-content: space-between; background: rgba(47,125,255,.1); border: 1px solid rgba(101,167,255,.18); border-radius: 13px; }
.dialog-price span { color: var(--muted); font-size: 10px; }
.dialog-price strong { font-size: 18px; }
.dialog-specs { margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dialog-specs div { padding: 11px; background: #f2f6fb; border: 1px solid #e4ebf4; border-radius: 10px; }
.dialog-specs dt { color: #708097; font-size: 9px; }
.dialog-specs dd { margin: 4px 0 0; font-size: 12px; font-weight: 800; }
.dialog-features { margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; color: #566980; font-size: 11px; }
.dialog-features li::before { content: "✓"; margin-left: 6px; color: #71aaff; }
.dialog-content .button { width: 100%; }

.toast { position: fixed; z-index: 200; left: 22px; bottom: 22px; max-width: 380px; padding: 13px; display: flex; align-items: center; gap: 11px; color: #132036; background: white; border: 1px solid #dce5f0; border-radius: 15px; box-shadow: 0 25px 70px rgba(0,0,0,.3); transform: translateY(140%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.toast.show { transform: none; opacity: 1; }
.toast > span { width: 35px; height: 35px; display: grid; place-items: center; color: white; background: #2878f5; border-radius: 10px; font-weight: 900; }
.toast strong { display: block; font-size: 12px; }
.toast small { display: block; margin-top: 3px; color: #748197; font-size: 9px; }
.toast button { margin-right: auto; color: #8b98aa; background: transparent; border: 0; font-size: 22px; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1); }
[data-reveal].revealed { opacity: 1; transform: none; }
@keyframes carFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

@media (max-width: 1080px) {
  :root { --shell: min(100% - 46px, 1000px); }
  .site-header { right: 15px; left: 15px; }
  .main-nav { gap: 1px; }
  .main-nav a { padding-inline: 9px; font-size: 11px; }
  .back-link { display: none; }
  .hero-grid { grid-template-columns: .85fr 1.15fr; gap: 22px; }
  .hero-copy { padding: 27px; }
  .hero-media { min-height: 470px; }
  .hero-media > img { width: 112%; height: 450px; }
  .car-image { height: 220px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 32px, 720px); }
  html { scroll-padding-top: 90px; }
  .site-header { top: 10px; min-height: 66px; padding: 0 15px; }
  .site-header.scrolled { top: 5px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; }
  .menu-toggle { display: block; }
  .menu-toggle.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle.active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { position: fixed; top: 86px; right: 10px; left: 10px; padding: 8px; display: grid; background: rgba(255,255,255,.98); border: 1px solid var(--line-strong); border-radius: 15px; box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility .25s ease; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 13px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .hero { padding-top: 106px; }
  .hero-grid, .finance-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero-grid { direction: rtl; }
  .hero-copy { padding: 28px; direction: rtl; text-align: center; border-radius: 24px; }
  .hero-copy::before { top: -1px; right: 50%; width: 92px; height: 4px; transform: translateX(50%); border-radius: 0 0 4px 4px; }
  .hero-copy .eyebrow, .hero-actions, .hero-points { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-media { order: -1; min-height: 410px; }
  .hero-media > img { width: 100%; height: 390px; border-width: 5px; border-radius: 30px 8px 30px 8px; }
  .spec-power { right: 2%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats article:nth-child(2) { border-left: 0; }
  .hero-stats article { border-bottom: 1px solid var(--line); }
  .hero-stats article:nth-child(n+3) { border-bottom: 0; }
  .section { padding: 82px 0; }
  .section-heading { display: block; }
  .section-heading > p { width: auto; margin-top: 15px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .reset-filter { align-self: end; }
  .car-grid { grid-template-columns: 1fr; }
  .car-image { height: min(58vw, 390px); }
  .finance-copy { text-align: center; }
  .finance-copy .eyebrow { justify-content: center; }
  .finance-copy > p:not(.eyebrow) { margin-inline: auto; }
  .finance-copy ul { width: max-content; max-width: 100%; margin-inline: auto; text-align: right; }
  .contact-panel { padding: 28px; }
  .car-dialog[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .dialog-image { min-height: 300px; height: 300px; }
  .dialog-content { overflow: visible; }
}

@media (max-width: 520px) {
  :root { --shell: calc(100% - 24px); }
  .site-header { right: 7px; left: 7px; padding-inline: 12px; border-radius: 14px; }
  .brand small { display: none; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 44px); }
  .hero-copy { padding: 25px 18px 22px; }
  .hero-media { min-height: 310px; }
  .hero-media > img { height: 300px; border-radius: 22px; }
  .hero-spec { width: 76px; min-height: 72px; padding: 9px; }
  .hero-spec strong { font-size: 21px; }
  .model-tag { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-points { flex-wrap: wrap; gap: 11px; }
  .hero-stats { padding: 13px; }
  .hero-stats article { padding-inline: 10px; }
  .hero-stats strong { font-size: 17px; }
  .section { padding: 70px 0; }
  .filters { grid-template-columns: 1fr; }
  .car-image { height: 260px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: 190px; }
  .calculator, .contact-panel, .booking-form { padding: 20px; }
  .calculator-row, .form-row { grid-template-columns: 1fr; gap: 0; }
  .monthly-result strong { font-size: 27px; }
  .contact-meta span { grid-template-columns: 1fr; gap: 3px; }
  .site-footer .shell { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer .shell > a:last-child { justify-self: center; }
  .dialog-content { padding: 23px; }
  .dialog-features { grid-template-columns: 1fr; }
  .toast { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Phone layout: compact showroom composition with touch-friendly controls. */
@media (max-width: 767px) {
  :root { --shell: calc(100% - 24px); }
  html { scroll-padding-top: 80px; }
  body { overflow-x: clip; }
  a, button, select, input { touch-action: manipulation; }

  .site-header {
    top: 8px;
    right: 8px;
    left: 8px;
    min-height: 64px;
    padding: 0 12px;
    gap: 8px;
    border-radius: 16px;
  }

  .site-header.scrolled { top: 4px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-actions { gap: 0; }
  .menu-toggle { flex: 0 0 44px; width: 44px; height: 44px; }

  .main-nav {
    top: 79px;
    right: 8px;
    left: 8px;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 15px;
  }

  .main-nav a {
    min-height: 47px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    font-size: 14px;
  }

  .hero { min-height: 0; padding: 92px 0 58px; }
  .hero-glow { display: none; }
  .hero-grid { gap: 18px; }
  .hero-copy { padding: 23px 18px; border-radius: 20px; }
  .hero h1 { font-size: clamp(30px, 9vw, 36px); line-height: 1.25; letter-spacing: -.025em; }
  .hero-lead { margin-top: 16px; font-size: 16px; line-height: 1.8; }
  .eyebrow { margin-bottom: 13px; font-size: 14px; line-height: 1.6; }
  .hero-actions { margin-top: 21px; gap: 9px; }
  .button { min-height: 50px; font-size: 14px; }
  .hero-points { margin-top: 18px; gap: 9px 14px; font-size: 13px; }

  .hero-media { min-height: 270px; }
  .hero-media > img {
    width: 100%;
    height: 255px;
    border-width: 4px;
    border-radius: 22px 7px 22px 7px;
    animation: none;
  }

  .hero-orbit { display: none; }
  .hero-spec { width: 72px; min-height: 66px; padding: 8px; }
  .hero-spec strong { font-size: 20px; }
  .spec-power { top: 8px; right: 8px; }
  .spec-range { display: none; }

  .hero-stats {
    margin-top: 17px;
    padding: 10px;
    border-radius: 16px;
  }

  .hero-stats article { min-height: 58px; padding: 9px; }
  .hero-stats strong { font-size: 17px; }
  .hero-stats span { font-size: 12px; }

  .section { padding: 64px 0; }
  .section-heading { margin-bottom: 25px; }
  .section-heading h2, .finance-copy h2, .contact-copy h2 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.3;
    letter-spacing: -.02em;
  }

  .section-heading > p, .finance-copy > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) {
    margin-top: 13px;
    font-size: 16px;
    line-height: 1.8;
  }

  .filters { padding: 12px; gap: 9px; border-radius: 16px; }
  .filters label, .booking-form label, .calculator label { font-size: 14px; }
  .filters select, .booking-form input, .booking-form select, .calculator select { font-size: 16px; }
  .reset-filter { min-height: 48px; }

  .car-grid { gap: 14px; }
  .car-card { border-radius: 18px; }
  .car-image { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .car-body { padding: 18px; }
  .car-title { display: grid; gap: 8px; }
  .car-title h3 { font-size: 21px; }
  .car-title > strong { justify-self: start; font-size: 16px; }
  .car-specs { margin: 15px 0; gap: 4px; }
  .car-specs li { padding-inline: 4px; }
  .car-specs span { font-size: 11px; }
  .car-specs b { font-size: 13px; }
  .card-action { min-height: 46px; font-size: 13px; }

  .service-grid { gap: 10px; }
  .service-grid article { min-height: 0; padding: 20px; }
  .service-grid article h3 { font-size: 19px; }
  .service-grid article p { font-size: 15px; line-height: 1.75; }

  .finance-grid, .contact-panel { gap: 28px; }
  .calculator, .contact-panel, .booking-form { padding: 20px; border-radius: 19px; }
  .finance-copy ul { width: 100%; font-size: 14px; }
  .monthly-result strong { font-size: 26px; }
  .contact-copy { text-align: center; }
  .contact-copy .eyebrow { justify-content: center; }
  .contact-meta { text-align: right; }
  .contact-meta span { font-size: 14px; line-height: 1.7; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .booking-form .button { width: 100%; }

  .site-footer { padding: 25px 0; }
  .site-footer .shell { gap: 14px; }
  .site-footer p, .site-footer .shell > a:last-child { font-size: 13px; line-height: 1.7; }

  .car-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .car-dialog[open] { grid-template-columns: 1fr; }
  .dialog-image { min-height: 210px; height: 210px; }
  .dialog-content { padding: 22px 18px 24px; }
  .dialog-content h2 { font-size: 29px; }
  .dialog-content > p { font-size: 15px; line-height: 1.75; }
  .dialog-specs { grid-template-columns: 1fr 1fr; }
  .dialog-features { font-size: 13px; }
  .dialog-content .button { width: 100%; }
}

@media (max-width: 380px) {
  .brand-mark { display: none; }
  .hero h1 { font-size: 29px; }
  .hero-media { min-height: 235px; }
  .hero-media > img { height: 225px; }
  .hero-spec { display: none; }
  .hero-stats strong { font-size: 15px; }
}
