* { box-sizing:border-box; }
body { margin:0; background:#f5f3f0; color:#262122; font:16px/1.55 "Segoe UI",Arial,sans-serif; }
.wrap { width:min(960px,calc(100% - 32px)); margin-inline:auto; }
.toolbar,.intro { display:flex; justify-content:space-between; align-items:center; gap:14px; }
.toolbar { min-height:68px; border-bottom:1px solid #ded6d5; }
.toolbar strong { min-width:0; overflow-wrap:anywhere; }
.offer-company { display:flex; align-items:center; gap:10px; min-width:0; }
.offer-company img { width:66px; height:48px; object-fit:contain; flex:none; }
.toolbar button { flex:none; }
button { padding:9px 13px; background:#8f263c; color:white; border:0; border-radius:7px; font:inherit; cursor:pointer; }
button:focus-visible { outline:3px solid #a92843; outline-offset:4px; }
article { padding-block:26px 50px; }
.intro { align-items:flex-start; margin-bottom:18px; }
.label,time { color:#6f575c; font-size:14px; }
.label { margin:0 0 6px; }
.listing-notice:not([hidden]) { display:flex; align-items:center; flex-wrap:wrap; gap:8px 20px; justify-content:space-between; margin-bottom:16px; padding:12px 16px; border:1px solid #d9d4cf; border-radius:12px; background:#fff; }
.listing-notice p { margin:2px 0 0; font-size:.88rem; color:#60585a; }
.listing-notice[data-state="withdrawn"],.listing-notice[data-state="reserved"] { border-inline-start:4px solid #9b3b46; }
.listing-notice[data-state="listed"] strong { color:#216446; }
#ask-dealer { color:#75253a; font-weight:650; text-underline-offset:3px; }
#date { white-space:normal; }
h1,h2 { margin:0; line-height:1.2; }
h1 { font-size:clamp(28px,5vw,53px); overflow-wrap:anywhere; }
h2 { font-size:21px; }
#facts { margin:6px 0 0; color:#625759; }
#offer-jumps { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:0 0 16px; }
#offer-jumps a { display:inline-flex; align-items:center; min-height:38px; padding:5px 12px; background:#fff; border:1px solid #d9ced0; color:#702238; border-radius:18px; text-decoration:none; font-size:.875rem; font-weight:600; }
#offer-jumps a:hover { border-color:#9b4257; text-decoration:underline; }
#offer-jumps a:focus-visible { outline:3px solid #9b4257; outline-offset:2px; }
#offer-jumps[hidden],#offer-jumps a[hidden] { display:none; }
#offer [tabindex="-1"] { scroll-margin-top:14px; }
time { white-space:nowrap; }
#photos-title { margin-bottom:8px; font-size:1rem; }
#gallery {
  display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 16px) / 3);
  gap:8px; padding:2px; overflow-x:auto; scroll-snap-type:x proximity;
}
#cover button,#gallery button { display:block; width:100%; padding:0; border:0; background:none; scroll-snap-align:start; cursor:zoom-in; }
#gallery button:focus-visible { outline-offset:-3px; }
#cover img,#gallery img { display:block; width:100%; height:auto; aspect-ratio:16 / 10; object-fit:contain; background:#241f20; border-radius:8px; }
#cover img { max-height:420px; }
#photo-viewer { max-width:min(960px,calc(100% - 24px)); max-height:calc(100% - 24px); padding:10px; border:0; border-radius:10px; background:#241f20; }
#photo-viewer::backdrop { background:#20191bd9; }
#photo-viewer form { display:flex; justify-content:flex-end; margin-bottom:8px; }
#photo-viewer img { display:block; max-width:100%; max-height:calc(100dvh - 156px); margin-inline:auto; object-fit:contain; }
.viewer-navigation:not([hidden]) { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; }
.viewer-navigation span { color:white; font-size:.9rem; font-variant-numeric:tabular-nums; }
.viewer-navigation button,#photo-viewer form button { background:#423b3e; min-height:40px; }
.viewer-navigation button:disabled { opacity:.4; cursor:default; }
.overview { display:grid; align-items:start; gap:14px; margin-top:16px; }
#cover:empty { display:none; }
.offer-summary,.offer-main { display:grid; gap:14px; min-width:0; }
.offer-main[hidden] { display:none; }
.pricing,.description { border:1px solid #e2d8d8; background:white; border-radius:10px; padding:18px; }
dl { margin-bottom:0; }
dl div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; padding:8px 0; border-bottom:1px solid #eee5e6; }
dd { margin:0; font-weight:650; }
.description p { margin:10px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.report { margin-top:14px; padding:14px 18px; border:1px solid #dfd4d7; border-radius:10px; background:#fff; }
.report-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px 18px; }
.report p { margin:4px 0 0; color:#625759; }
.report a { color:#852139; font-weight:650; text-underline-offset:3px; }
.customer-price { margin-top:12px; padding:10px 12px; background:#f7e9ed; color:#79213a; border-radius:8px; }
.customer-price strong { display:block; font-size:clamp(22px,4vw,32px); }
.price-change:not([hidden]) { display:grid; gap:5px; margin-top:12px; padding-left:12px; border-left:2px solid #a84059; }
.price-change p { margin:0; font-size:.86rem; }
.price-change button { justify-self:start; margin-top:3px; min-height:40px; color:#702239; background:#f7e9ed; font-size:.85rem; }
.price-change button:disabled { cursor:wait; }
#receipt-status:empty { display:none; }
.price-breakdown { margin-top:14px; }
.price-breakdown h3 { margin:0; color:#514347; font-size:.96rem; }
.price-breakdown dl { margin:5px 0 0; font-size:.91rem; }
.price-breakdown dl div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; }
.price-breakdown dl div:last-child { border-bottom:0; padding-bottom:0; }
.price-breakdown dt { overflow-wrap:anywhere; }
.price-breakdown dd { font-variant-numeric:tabular-nums; white-space:nowrap; }
.dealer-contact { margin-top:15px; border-top:1px solid #e9dfe1; padding-top:12px; }
.dealer-contact h3 { margin:0 0 7px; font-size:1rem; }
.dealer-contact a { display:grid; gap:1px; margin-top:5px; padding:7px 10px; color:#76223a; border:1px solid #e2cfd3; border-radius:8px; text-decoration:none; }
.dealer-contact a[hidden] { display:none; }
.dealer-contact a:hover,.dealer-contact a:focus-visible { background:#fbf1f4; text-decoration:underline; }
.dealer-contact span { color:#69575d; font-size:.8rem; }
.dealer-contact strong { overflow-wrap:anywhere; }
.facts dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr)); gap:6px 16px; }
.facts dl div { display:block; }
.facts dt { color:#625759; font-size:13px; }
.facts dd { overflow-wrap:anywhere; }
#offer-insight-content { margin-top:10px; }
@media screen {
  body { background:#f6f6f5; color:#252327; }
  .wrap { width:min(1180px,calc(100% - 32px)); }
  .toolbar { min-height:70px; border-color:#dcdadb; }
  .toolbar strong { font-size:1.08rem; letter-spacing:-.03em; }
  .toolbar button { background:#2a2629; border-radius:9px; font-size:.87rem; font-weight:650; }
  .intro { margin-bottom:20px; }
  .intro .label { font-size:.84rem; font-weight:650; color:#8c2739; }
  .intro h1 { max-width:26ch; font-size:clamp(27px,3.4vw,48px); line-height:1.06; letter-spacing:-.045em; }
  .intro time { margin-top:4px; font-size:.84rem; color:#645e62; }
  #offer-jumps a { border-radius:9px; border-color:#dedcdd; color:#3c3438; }
  .pricing,.description,.report { border-radius:16px; border-color:#dedcdd; padding:clamp(16px,2vw,25px); }
  .pricing h2,.description h2,.report h2 { font-size:clamp(1.08rem,1.7vw,1.4rem); letter-spacing:-.025em; }
  .customer-price { margin-top:12px; padding:15px 16px; background:#242124; color:white; border-radius:11px; }
  .customer-price strong { font-size:clamp(1.5rem,3.2vw,2.5rem); line-height:1.14; font-variant-numeric:tabular-nums; letter-spacing:-.04em; }
  #cover img { aspect-ratio:4/3; max-height:510px; border-radius:16px; }
  #offer-photos { padding:14px; border:1px solid #dedcdd; border-radius:14px; background:white; }
  #gallery img { aspect-ratio:4/3; }
  .facts dl { row-gap:4px; }
  .facts dt { margin-bottom:4px; }
  .dealer-contact a { padding:10px 12px; border-color:#dedcdd; color:#363135; }
}
@media screen and (min-width:621px) {
  .overview:has(.offer-main:not([hidden])) { grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); }
  .offer-main { grid-column:1; grid-row:1; }
  .overview:has(.offer-main:not([hidden])) .offer-summary { grid-column:2; grid-row:1; }
}
@media screen and (max-width:620px) {
  .intro { flex-direction:column; gap:5px; }
  .offer-summary,.offer-main:not([hidden]) { display:contents; }
  .pricing { order:-3; }
  #cover { order:-2; }
  #offer-photos { order:-1; }
  .toolbar button { font-size:13px; min-height:44px; }
  .pricing,.description,.report { padding:13px; }
  #offer-jumps a,.dealer-contact a { min-height:44px; }
}
@page { size:A4; margin:12mm; }
@media print {
  body { background:white; color:black; font-size:12px; }
  .wrap { width:100%; }
  .toolbar { min-height:0; padding:0 0 8px; }
  #print,#offer-jumps,#photo-viewer,#acknowledge-price,#receipt-status { display:none; }
  #ask-dealer { display:none; }
  #photos-title { break-after:avoid; }
  article { padding:12px 0 0; }
  h1 { font-size:27px; }
  .overview { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); }
  .offer-summary,.offer-main:not([hidden]) { display:contents; }
  #cover { grid-column:1; grid-row:1; }
  .pricing { grid-column:2; grid-row:1; break-inside:avoid; }
  .overview:has(#cover:empty) .pricing { grid-column:1/-1; }
  #description-block,#vehicle-facts,#equipment,#offer-insights,#offer-photos { grid-column:1/-1; }
  #offer-photos { order:1; }
  #gallery { grid-auto-flow:row; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; padding:0; }
  #gallery button { break-inside:avoid; }
  #cover img { max-height:68mm; break-inside:avoid; }
  #gallery img { max-height:45mm; break-inside:avoid; }
  .dealer-contact a { padding:2px 0; border:0; color:black; }
}
