/* Changan × Shadwan International — landing page
   The motif: the red plate from the "ثقتك شانجان" campaign. Square corners everywhere. */

:root {
  --navy: #22356B;
  --navy-deep: #17244C;
  --navy-soft: #2F4584;
  --ink: #101A33;
  --muted: #4A5470;
  --ground: #FFFFFF;
  --tone: #F1F3F7;
  --tone-2: #E4E8F0;
  --red: #D9341D;
  --red-dark: #B92813;
  --green: #157A40;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9D0E3;

  --font: "Plex Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --t-display: clamp(36px, 5.6vw, 88px);
  --t-h2: clamp(28px, 3.4vw, 52px);
  --t-h3: clamp(22px, 1.9vw, 28px);
  --t-body: 17px;
  --t-small: 14px;

  --gutter: clamp(16px, 3vw, 40px);
  --section: clamp(72px, 11vw, 168px);
  --bar-h: 76px;
  --dock-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { touch-action: manipulation; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }

.t-display { font-size: var(--t-display); font-weight: 700; line-height: 1.12; }
.t-h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.2; }
:lang(en) .t-display { letter-spacing: -0.025em; line-height: 1.02; }
:lang(en) .t-h2 { letter-spacing: -0.02em; line-height: 1.08; }

/* ---------- buttons: flat, square, one fill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 0; border-radius: 0; cursor: pointer; user-select: none;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.btn--line { background: var(--tone); color: var(--ink); }
.btn--line:hover { background: var(--tone-2); }
.btn--wa { background: var(--green); color: #fff; padding-inline: 0; width: 56px; flex: none; }
.btn--wa:hover { background: #0F6133; }
.btn--lg { min-height: 58px; padding-inline: 30px; font-size: 18px; }
.btn--block { width: 100%; }

/* ---------- the plate (motif) ---------- */
.plate { background: var(--red); color: #fff; display: inline-block; }
.plate--title { padding: .08em .45em .16em; }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: var(--ground); transition: transform .3s var(--ease); }
.bar__in { height: var(--bar-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand__sic { width: 150px; height: auto; }
.brand__x { width: 2px; height: 32px; background: var(--tone-2); }
.brand__changan { width: 34px; height: 34px; }
.brand__name { font-weight: 700; font-size: 14px; letter-spacing: .14em; color: var(--navy); direction: ltr; }
.nav { display: flex; align-items: center; gap: 30px; margin-inline-start: auto; }
.nav > a { font-size: 17px; font-weight: 500; text-decoration: none; padding: 6px 0; position: relative; }
.nav > a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .22s var(--ease); }
.nav > a:hover::after, .nav > a.is-here::after { transform: scaleX(1); }
.nav__extra { display: none; }
.bar__end { display: flex; align-items: center; gap: 12px; }
.lang { min-height: 44px; min-width: 52px; padding: 0 12px; background: var(--tone); border: 0; font-weight: 700; font-size: 16px; cursor: pointer; transition: background-color .18s; }
.lang:hover { background: var(--tone-2); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: var(--tone); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(16, 26, 51, .5); }

/* ---------- hero ---------- */
.hero__banner { display: block; overflow: hidden; background: var(--navy-deep); }
.hero__banner img { width: 100%; aspect-ratio: 2600 / 540; object-fit: cover; animation: drift 14s var(--ease) both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__field { background: var(--navy); color: var(--on-dark); }
.hero__grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px; padding-block: clamp(32px, 5vw, 72px); }
.hero__lead { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.6; max-width: 46ch; margin-top: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.plate--from { padding: 26px 32px 24px; min-width: 300px; text-decoration: none; transition: transform .25s var(--ease); }
.plate--from:hover { transform: translateY(-4px); }
.plate__label, .plate__note { display: block; font-size: 16px; font-weight: 500; }
.plate__num { display: block; font-size: clamp(44px, 4.6vw, 72px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.plate__num small { font-size: .38em; font-weight: 500; }

/* ---------- models ---------- */
.models { padding-block: var(--section) calc(var(--section) * .7); }
.models__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.tabs { display: flex; gap: 6px; }
.tabs button { min-height: 48px; padding: 8px 20px; border: 0; background: var(--tone); color: var(--ink); font-size: 17px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .18s, color .18s; }
.tabs button:hover { background: var(--tone-2); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tabs__n { font-size: 14px; font-weight: 700; opacity: .75; font-variant-numeric: tabular-nums; }
.models__grid { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; gap: clamp(28px, 4vw, 64px); align-items: start; }

.index { display: flex; flex-direction: column; gap: 4px; }
.index li[hidden] { display: none; }
.row {
  width: 100%; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 18px;
  padding: 16px 20px; border: 0; background: transparent; text-align: start; cursor: pointer;
  transition: background-color .24s var(--ease);
}
.row__mark { width: 14px; height: 14px; background: var(--tone-2); transition: background-color .24s, transform .24s var(--ease); }
.row__img { display: none; }
.row__name { font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.25; display: block; }
.row__trim { font-size: 14px; color: var(--muted); display: block; }
.row__price { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row__price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.row__vat { display: none; }
.row:hover, .row.is-active { background: var(--tone); }
.row.is-active .row__mark { background: var(--red); transform: scale(1.15); }
.row__actions { display: none; }

.stage { position: sticky; top: calc(var(--bar-h) + 20px); background: var(--tone); padding: clamp(20px, 2.6vw, 40px); }
.stage__inner { transition: opacity .22s var(--ease), transform .22s var(--ease); }
.stage__inner.is-out { opacity: 0; transform: translateY(8px); }
.stage__top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.stage__name { font-size: var(--t-h2); font-weight: 700; line-height: 1.1; }
.stage__trim { font-size: 17px; color: var(--muted); margin-top: 4px; }
.stage__body { font-size: 14px; font-weight: 700; background: var(--navy); color: #fff; padding: 6px 14px; white-space: nowrap; }
.stage__img { margin: 8px -12px 4px; }
.stage__img img { width: 100%; aspect-ratio: 1200 / 744; object-fit: contain; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 20px; }
.specs div { background: var(--ground); padding: 14px 16px; }
.specs b { display: block; font-size: 20px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.specs span { font-size: 14px; color: var(--muted); }
.stage__foot { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.price-plate { background: var(--red); color: #fff; padding: 10px 20px; margin-inline-end: auto; }
.price-plate b { display: block; font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.price-plate b small { font-size: 16px; font-weight: 500; }
.price-plate span { font-size: 14px; }
.stage__foot .btn { min-height: 64px; }
.stage__foot .btn--wa { width: 64px; }

.fine { font-size: var(--t-small); color: var(--muted); margin-top: 32px; max-width: 68ch; }
.fine--inv { color: var(--on-dark-muted); }
.noscript { padding: 24px; background: var(--tone); }

/* ---------- why: statement with picture words ---------- */
.why { padding-block: calc(var(--section) * .6) var(--section); }
.statement { font-size: clamp(22px, 2.6vw, 36px); font-weight: 500; line-height: 1.75; max-width: 34em; }
:lang(en) .statement { line-height: 1.5; }
.pic { display: inline-block; width: 1.9em; height: 1.05em; vertical-align: -0.16em; overflow: hidden; background: var(--tone); }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pic:hover img { transform: scale(1.12); }
.why__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 56px; margin-inline-start: 50%; }
.why__foot p { font-size: 18px; max-width: 36ch; }

/* ---------- showroom band ---------- */
.band { position: relative; background: var(--navy-deep); }
.band__photo { height: clamp(420px, 72vh, 760px); overflow: hidden; }
.band__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; }
.band__wrap { position: absolute; inset-inline: 0; bottom: 0; }
.band__plate { display: flex; flex-direction: column; gap: 10px; max-width: 560px; padding: clamp(24px, 3vw, 44px); text-decoration: none; transform: translateY(1px); transition: background-color .2s; }
.band__plate:hover { background: var(--red-dark); }
.band__plate span { font-size: 18px; max-width: 40ch; }

/* ---------- offers ---------- */
.offers { background: var(--navy-deep); color: var(--on-dark); padding-block: var(--section); }
.offers__grid { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: 40px clamp(24px, 3.5vw, 56px); margin-top: 56px; }
.offer { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.offer:first-child { grid-row: span 2; }
.offer__img { overflow: hidden; background: var(--navy); }
.offer__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease); }
.offer:first-child .offer__img img { aspect-ratio: 4 / 3.4; }
.offer:hover .offer__img img { transform: scale(1.05); }
.offer h3 { font-size: var(--t-h3); line-height: 1.3; }
.offer:first-child h3 { font-size: clamp(26px, 2.6vw, 40px); }
.offer p { color: var(--on-dark-muted); max-width: 48ch; }
.offer__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; min-height: 44px; }
.offer__go svg { transition: transform .2s var(--ease); }
[dir="ltr"] .offer__go svg { transform: scaleX(-1); }
.offer:hover .offer__go svg { transform: translateX(-5px); }
[dir="ltr"] .offer:hover .offer__go svg { transform: scaleX(-1) translateX(-5px); }

/* ---------- financing tiles ---------- */
.financing { padding-block: var(--section); }
.tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.tile { background: var(--tone); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.tile img { width: 96%; height: 96%; object-fit: contain; transition: transform .3s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile--head { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; background: var(--red); color: #fff; place-items: start; align-content: space-between; padding: clamp(20px, 2.4vw, 36px); }
.tile--head p { font-size: 18px; max-width: 26ch; }
.tiles__more { display: none; margin-top: 12px; }

/* ---------- branches: tabs + map ---------- */
.branches { background: var(--tone); padding-block: var(--section) calc(var(--section) * .6); }
.branches__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.call { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; text-decoration: none; min-height: 48px; }
.call b { font-size: 24px; color: var(--navy); }
.call:hover b { color: var(--red); }
.btabs { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.btabs::-webkit-scrollbar { display: none; }
.btabs button {
  flex: 1 0 auto; min-height: 64px; padding: 10px 22px; border: 0; background: var(--ground); cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; text-align: start; scroll-snap-align: start;
  transition: background-color .18s, color .18s;
}
.btabs button small { font-size: 14px; color: var(--muted); line-height: 1.3; }
.btabs button span { font-size: 18px; font-weight: 700; line-height: 1.35; }
.btabs button:hover { background: var(--tone-2); }
.btabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.btabs button[aria-selected="true"] small { color: var(--on-dark-muted); }
.bpanel { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; margin-top: 8px; background: var(--ground); }
.bpanel:focus-visible { outline-offset: -3px; }
.binfo { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.binfo h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.25; }
.binfo__line { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.binfo__line svg { color: var(--red); margin-top: 3px; }
.binfo__line p { font-size: 17px; }
.binfo__hours p { color: var(--muted); }
.binfo__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.binfo__actions .btn { flex: 1 1 180px; }
.bmap { position: relative; min-height: 440px; background: var(--tone-2); }
.bmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bmap__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 16px; }

/* ---------- request coupon ---------- */
.request { background: var(--tone); padding-block: calc(var(--section) * .5) var(--section); }
.coupon {
  --cut: 54%;
  display: grid; grid-template-columns: 46fr 54fr; background: var(--navy); color: #fff;
  -webkit-mask: radial-gradient(circle 15px at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat, /* taste-skill-ignore: notch mask, not a fill */
                radial-gradient(circle 15px at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore: notch mask, not a fill */
          mask: radial-gradient(circle 15px at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat, /* taste-skill-ignore: notch mask, not a fill */
                radial-gradient(circle 15px at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore: notch mask, not a fill */
}
[dir="ltr"] .coupon { --cut: 46%; }
.coupon__stub { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; }
.coupon__stub > p { color: var(--on-dark-muted); max-width: 40ch; }
.coupon__car { margin-top: auto; background: var(--ground); color: var(--ink); }
.coupon__car img { width: 100%; aspect-ratio: 640 / 397; object-fit: contain; transition: opacity .2s var(--ease); }
.coupon__car figcaption { padding: 0 18px 14px; font-size: 16px; text-align: center; }
.coupon__car figcaption b { font-variant-numeric: tabular-nums; }
.coupon__fields { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; justify-content: center; border-inline-start: 5px dotted var(--tone); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; font-weight: 500; color: var(--on-dark-muted); padding: 0; }
.coupon select, .coupon input[type="text"] {
  width: 100%; min-height: 56px; padding: 12px 18px; border: 0; border-radius: 0;
  background: var(--navy-soft); color: #fff; font-size: 17px; appearance: none;
}
.coupon select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 18px center; padding-inline-end: 44px; }
[dir="ltr"] .coupon select { background-position: right 18px center; }
.coupon select option { color: var(--ink); background: #fff; }
.coupon input[aria-invalid="true"] { outline: 3px solid #FF8A75; outline-offset: -3px; }
.field__err { font-size: 14px; color: #FFB3A6; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.seg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 56px; background: var(--navy-soft); font-weight: 500; transition: background-color .18s, color .18s; }
.seg input:checked + span { background: #fff; color: var(--navy); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.coupon__send { min-height: 60px; font-size: 18px; margin-top: 6px; }
.coupon__alt { font-size: 16px; color: var(--on-dark-muted); text-align: center; text-underline-offset: 4px; padding: 8px; }
.coupon__alt:hover { color: #fff; }

/* ---------- footer (same layout as sic.sa) ---------- */
.foot { background: var(--navy); color: var(--on-dark); }
.foot__grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 72px 56px; }
.foot__logo { width: 220px; height: auto; }
.foot__about p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .8); margin-top: 20px; max-width: 34ch; }
.social { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); transition: background-color .18s; }
.social a:hover { background: var(--red); }
.foot__col { display: flex; flex-direction: column; gap: 4px; }
.foot__col h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.foot__col a { font-size: 16px; color: rgba(255, 255, 255, .72); text-decoration: none; padding: 6px 0; width: fit-content; transition: color .18s; }
.foot__col a:hover { color: #fff; }
.foot__contact { display: flex; flex-direction: column; gap: 16px; }
.foot__cta { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.foot__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--red); display: grid; place-items: center; transition: transform .2s var(--ease); }
.foot__icon--wa { background: var(--green); }
.foot__cta:hover .foot__icon { transform: scale(1.08); }
.foot__cta small { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.foot__cta b { display: block; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.foot__base { background: var(--navy-deep); }
.foot__base-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; }
.foot__base p { font-size: 14px; color: rgba(255, 255, 255, .72); }
.foot__base p a { color: #fff; font-weight: 700; }
.totop { width: 44px; height: 44px; display: grid; place-items: center; background: var(--red); color: #fff; flex: none; }
.totop svg { transform: rotate(90deg); }
.totop:hover { background: var(--red-dark); }

/* ---------- dock (phones) ---------- */
.dock { display: none; }

/* ---------- details sheet ---------- */
.sheet { width: min(1240px, calc(100% - 32px)); max-width: none; max-height: none; padding: 0; border: 0; background: var(--ground); color: var(--ink); box-shadow: 0 30px 80px rgba(10, 18, 40, .35); overflow: hidden; } /* taste-skill-ignore: dialog */
.sheet::backdrop { background: rgba(16, 26, 51, .72); }
.sheet[open] { animation: sheet-in .3s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
.sheet__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: minmax(0, 1fr) auto; height: min(880px, calc(100dvh - 32px)); }
.sheet__top { position: absolute; top: 0; inset-inline-end: 0; z-index: 3; display: flex; align-items: center; }
.sheet__topname { display: none; }
.sheet__close { width: 52px; height: 52px; display: grid; place-items: center; border: 0; background: var(--ink); color: #fff; cursor: pointer; }
.sheet__close:hover { background: var(--red); }
.sheet__body { grid-column: 2; grid-row: 1; }
.sheet__bar { grid-column: 2; grid-row: 2; }
.sheet__gallery { grid-column: 1; grid-row: 1 / 3; position: relative; background: var(--tone); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.sheet__track { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sheet__track::-webkit-scrollbar { display: none; }
.sheet__slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; min-height: 0; }
.sheet__slide img { width: 100%; height: 100%; object-fit: contain; }
.sheet__slide--photo img { object-fit: cover; }
.sheet__nav { position: absolute; top: calc(50% - 60px); z-index: 2; width: 52px; height: 52px; border: 0; display: grid; place-items: center; background: rgba(16, 26, 51, .82); color: #fff; cursor: pointer; transition: background-color .18s, opacity .18s; }
.sheet__nav:hover { background: var(--red); }
.sheet__nav:disabled { opacity: 0; pointer-events: none; }
.sheet__nav--prev { inset-inline-start: 12px; }
.sheet__nav--next { inset-inline-end: 12px; }
[dir="rtl"] .sheet__nav--prev svg, [dir="ltr"] .sheet__nav--next svg { transform: scaleX(-1); }
.sheet__count { position: absolute; bottom: 92px; inset-inline-start: 12px; z-index: 2; background: rgba(16, 26, 51, .82); color: #fff; font-size: 14px; font-weight: 700; padding: 4px 10px; font-variant-numeric: tabular-nums; }
.sheet__thumbs { display: flex; gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: thin; background: var(--ink); }
.sheet__thumbs button { flex: none; width: 96px; aspect-ratio: 3 / 2; padding: 0; border: 0; background: var(--tone); cursor: pointer; opacity: .6; transition: opacity .18s; }
.sheet__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.sheet__thumbs button:first-child img { object-fit: contain; }
.sheet__thumbs button:hover, .sheet__thumbs button[aria-current="true"] { opacity: 1; }
.sheet__thumbs button[aria-current="true"] { outline: 3px solid var(--red); outline-offset: -3px; }
.sheet__body { overflow-y: auto; padding: 32px clamp(20px, 2.6vw, 40px) 24px; overscroll-behavior: contain; }
.sheet__body h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.15; padding-inline-end: 56px; }
.sheet__sub { color: var(--muted); margin-top: 4px; }
.sheet h3 { font-size: 20px; margin: 28px 0 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec-table th, .spec-table td { text-align: start; padding: 10px 0; border-bottom: 1px solid var(--tone-2); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted); width: 45%; }
.spec-table td { font-weight: 700; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.feat li { position: relative; padding-inline-start: 20px; font-size: 16px; line-height: 1.5; }
.feat li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 9px; height: 9px; background: var(--red); }
.sheet__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-weight: 700; color: var(--navy); text-underline-offset: 4px; }
.sheet__fine { font-size: var(--t-small); color: var(--muted); margin-top: 8px; }
.sheet__bar { display: flex; gap: 8px; padding: 12px clamp(20px, 2.6vw, 40px) 16px; background: var(--ground); box-shadow: 0 -1px 0 var(--tone-2); } /* taste-skill-ignore: sticky action bar edge */
.sheet__bar .price-plate { margin: 0; flex: 1; padding: 8px 16px; }
.sheet__bar .price-plate b { font-size: 24px; }
.sheet__bar .btn { min-height: 60px; }

/* ---------- entrance motion ---------- */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .brand__name { display: none; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0 40px; align-items: start; }
  .foot__about p { margin-top: 0; max-width: 60ch; }
  .foot__about .social { grid-column: 2; }
  .foot__contact { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 16px 40px; }
}

@media (max-width: 980px) {
  :root { --bar-h: 64px; }
  .bar.is-hidden { transform: translateY(-100%); }
  .menu-btn { display: inline-flex; }
  .bar__cta { display: none; }
  .nav {
    position: absolute; top: var(--bar-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); padding: 8px var(--gutter) 20px; margin: 0; max-height: calc(100dvh - var(--bar-h)); overflow-y: auto;
    box-shadow: 0 20px 40px rgba(10, 18, 40, .14); /* taste-skill-ignore: dropdown menu */
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a { font-size: 20px; padding: 14px 0; min-height: 56px; }
  .nav > a::after { display: none; }
  .nav > a.is-here { color: var(--red); }
  .nav__extra { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
  .nav__extra .btn { min-height: 56px; font-size: 17px; }
  .bar__end { margin-inline-start: auto; }

  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .plate--from { justify-self: start; }

  /* models become list cards */
  .models__head { margin-bottom: 24px; }
  .models__grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .index { gap: 10px; }
  .index li { background: var(--tone); }
  .row { grid-template-columns: 44% 1fr; grid-template-areas: "img text" "img price"; align-items: center; gap: 4px 14px; padding: 14px 14px 10px; }
  .row:hover, .row.is-active { background: transparent; }
  .row:active { background: var(--tone-2); }
  .row__mark { display: none; }
  .row__img { display: block; grid-area: img; }
  .row__img img { width: 100%; aspect-ratio: 1200 / 744; object-fit: contain; }
  .row__text { grid-area: text; align-self: end; }
  .row__name { font-size: 22px; }
  .row__price { grid-area: price; align-self: start; font-size: 20px; white-space: normal; }
  .row__vat { display: block; font-size: 14px; font-weight: 500; color: var(--muted); }
  .row__actions { display: grid; grid-template-columns: 1fr 1fr 52px; gap: 4px; padding: 0 14px 14px; }
  .row__actions .btn { min-height: 48px; padding-inline: 8px; font-size: 16px; }
  .row__actions .btn--wa { width: auto; }

  .offers__grid { grid-template-columns: 1fr 1fr; }
  .offer:first-child { grid-column: 1 / -1; grid-row: auto; }
  .offer:first-child .offer__img img { aspect-ratio: 16 / 9; }

  .why__foot { margin-inline-start: 0; }

  .bpanel { grid-template-columns: 1fr; }
  .bmap { min-height: 0; aspect-ratio: 4 / 3; order: -1; }

  .coupon { grid-template-columns: 1fr; --cut: 0; -webkit-mask: radial-gradient(circle 15px at 0 var(--cy, 50%), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% var(--cy, 50%), #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 15px at 0 var(--cy, 50%), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% var(--cy, 50%), #0000 98%, #000) right / 51% 100% no-repeat; } /* taste-skill-ignore: notch mask */
  .coupon__fields { border-inline-start: 0; border-top: 5px dotted var(--tone); }

  /* sheet: full screen, sticky top and bottom bars */
  .sheet { width: 100%; height: 100dvh; margin: 0; inset: 0; box-shadow: none; } /* taste-skill-ignore: sheet shadow reset */
  .sheet[open] { animation: sheet-up .3s var(--ease); }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
  .sheet__in { display: flex; flex-direction: column; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  .sheet__top { position: sticky; top: 0; inset-inline: 0; width: 100%; background: var(--ground); justify-content: space-between; gap: 12px; padding-inline-start: var(--gutter); flex: none; box-shadow: 0 1px 0 var(--tone-2); } /* taste-skill-ignore: sticky bar edge */
  .sheet__topname { display: block; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sheet__close { background: transparent; color: var(--ink); width: 56px; height: 56px; }
  .sheet__close:hover { background: var(--tone); color: var(--ink); }
  .sheet__gallery { flex: none; }
  .sheet__track { flex: none; aspect-ratio: 3 / 2; }
  .sheet__nav { display: none; }
  .sheet__count { bottom: 12px; }
  .sheet__thumbs { display: none; }
  .sheet__body { overflow: visible; flex: 1 0 auto; padding: 22px var(--gutter) 28px; }
  .sheet__body h2 { padding-inline-end: 0; font-size: 30px; }
  .sheet__bar { position: sticky; bottom: 0; flex: none; padding: 10px var(--gutter) calc(10px + var(--safe-b)); box-shadow: 0 -8px 24px rgba(10, 18, 40, .1); } /* taste-skill-ignore: sticky bar */
}

@media (max-width: 760px) {
  :root { --dock-h: calc(60px + var(--safe-b)); }
  body { font-size: 16px; padding-bottom: var(--dock-h); }
  .brand__sic { width: 118px; }
  .brand__changan { width: 28px; height: 28px; }
  .brand { gap: 10px; }
  .hero__banner img { aspect-ratio: 2000 / 1479; }
  .hero__actions .btn { flex: 1 1 100%; }
  .plate--from { width: 100%; min-width: 0; padding: 20px 22px; }
  .models__head { flex-direction: column; align-items: stretch; gap: 16px; }
  .tabs button { flex: 1; padding-inline: 8px; }
  .offers__grid { grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
  .why__foot { margin-top: 36px; }
  .why__foot .btn { width: 100%; }
  .band__photo { height: 52vh; }
  .band__wrap { position: static; padding: 0; }
  .band__plate { max-width: none; transform: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .tile { aspect-ratio: 3 / 2; }
  .tile--head { grid-row: auto; gap: 10px; aspect-ratio: auto; }
  .tiles.is-clipped .tile:nth-child(n+10) { display: none; }
  .tiles__more { display: inline-flex; width: 100%; }
  .tiles:not(.is-clipped) + .tiles__more { display: none; }
  .branches__head { margin-bottom: 20px; }
  .btabs button { flex: 0 0 auto; min-height: 60px; padding-inline: 18px; }
  .binfo { padding: 22px 18px 20px; gap: 14px; }
  .binfo__actions .btn { flex: 1 1 100%; min-height: 52px; }
  .coupon__stub { padding: 26px 20px 24px; }
  .coupon__car img { max-height: 200px; }
  .coupon__fields { padding: 24px 20px 26px; }
  .feat { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-block: 48px 36px; }
  .foot__about { display: block; }
  .foot__about p { margin-top: 18px; }
  .foot__logo { width: 180px; }
  .foot__col:last-of-type { grid-column: 1 / -1; }
  .foot__contact { flex-direction: column; gap: 14px; }
  .foot__base-in { align-items: center; }

  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
    height: var(--dock-h); padding-bottom: var(--safe-b); background: var(--ground);
    box-shadow: 0 -8px 24px rgba(10, 18, 40, .12); /* taste-skill-ignore: fixed dock */
    transition: transform .3s var(--ease);
  }
  .dock.is-hidden { transform: translateY(100%); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; text-decoration: none; }
  .dock a:active { background: var(--tone); }
  .dock__wa { color: var(--green); }
  .dock .dock__red { background: var(--red); color: #fff; }
  .dock .dock__red:active { background: var(--red-dark); }
}

@media (hover: none) {
  .pic:hover img, .offer:hover .offer__img img, .tile:hover img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rise { opacity: 1; transform: none; }
}

/* sheet price details: the bar keeps one line on phones, the full breakdown sits under the title */
.sheet__pre { display: none; }
@media (max-width: 980px) {
  .sheet__bar .pp-pre { display: none; }
  .sheet__bar .price-plate b { font-size: 22px; }
  .sheet__pre { display: block; margin-top: 10px; font-weight: 700; color: var(--navy); }
}
@media (max-width: 760px) {
  .is-locked .dock { transform: translateY(100%); }
}
