/* insideauto.mk/polovni-vozila — the used-vehicle pages. Hand-written on purpose: these pages do not
   load the Vite/Tailwind bundle, so nothing here depends on a build.
   Redesigned 2026-11-16: Inter (self-hosted, Latin + Cyrillic), body 400 / headings 600, prices in ink,
   red only for the main action, sections as one quiet panel instead of a box each. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-cyrillic-wght.woff2") format("woff2-variations"), url("fonts/inter-cyrillic-wght.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght.woff2") format("woff2-variations"), url("fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sale-ink: #18181b;
  --sale-text: #3f3f46;
  --sale-muted: #71717a;
  --sale-line: #e7e7ea;
  --sale-line-soft: #f0f0f2;
  --sale-bg: #f7f7f8;
  --sale-card: #ffffff;
  --sale-dark: #0d0d0d;
  --sale-red: #e2343a;
  --sale-red-dark: #c4262c;
  --sale-green: #2f8a4b;
  --sale-amber: #b26a00;
  --sale-viber: #7360f2;
  --sale-radius: 12px;
  --sale-radius-sm: 8px;
  --sale-shadow: 0 1px 2px rgba(24, 24, 27, .04);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.sale-page {
  margin: 0;
  background: var(--sale-bg);
  color: var(--sale-text);
  font: 400 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.sale-page h1, .sale-page h2, .sale-page h3 { color: var(--sale-ink); font-weight: 600; letter-spacing: -.015em; }
.sale-page strong, .sale-page b { font-weight: 600; }
.sale-page img { max-width: 100%; display: block; }
.sale-page a { color: inherit; }
.sale-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sale-skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.sale-skip:focus { left: 8px; }
.sale-page :focus-visible { outline: 2px solid var(--sale-red); outline-offset: 2px; }

/* Header and footer */
.sale-header { background: var(--sale-dark); color: #fff; position: sticky; top: 0; z-index: 5; }
.sale-header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.sale-logo img { height: 30px; width: auto; }
.sale-nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.sale-nav a { text-decoration: none; font-weight: 450; font-size: 15px; color: rgba(255, 255, 255, .72); }
.sale-nav a:hover, .sale-nav a[aria-current="page"] { color: #fff; }
.sale-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sale-red); padding-bottom: 3px; }
.sale-nav-phone { color: #fff !important; border: 1px solid rgba(255, 255, 255, .28); padding: 6px 14px; border-radius: 999px; }
.sale-nav-phone:hover { border-color: #fff; }
.sale-lang { display: flex; gap: 2px; font-size: 13px; }
.sale-lang a { text-decoration: none; padding: 4px 7px; border-radius: 6px; color: rgba(255, 255, 255, .55); }
.sale-lang a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
@media (max-width: 720px) {
  .sale-header-row { flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; padding-bottom: 6px; }
  .sale-logo img { height: 26px; }
  .sale-lang { margin-left: auto; }
  .sale-nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .sale-nav a { font-size: 14px; white-space: nowrap; }
  .sale-nav-phone { margin-left: auto; }
}
.sale-footer { background: var(--sale-dark); color: #a1a1aa; margin-top: 72px; font-size: 14px; }
.sale-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.sale-footer img { height: 26px; width: auto; margin-bottom: 14px; }
.sale-footer p { margin: 0; max-width: 34ch; }
.sale-footer h2 { color: #fff; font-size: 14px; font-weight: 500; letter-spacing: 0; margin: 0 0 12px; }
.sale-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sale-footer a { text-decoration: none; }
.sale-footer a:hover { color: #fff; }
.sale-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; padding-bottom: 22px; font-size: 13px; color: #71717a; }
@media (max-width: 720px) { .sale-footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Buttons, alerts */
.sale-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--sale-radius-sm);
  background: var(--sale-red); color: #fff !important; font: inherit; font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.sale-btn:hover { background: var(--sale-red-dark); }
.sale-btn-quiet { background: #fff; color: var(--sale-ink) !important; border-color: var(--sale-line); }
.sale-btn-quiet:hover { background: #fafafa; border-color: #d4d4d8; }
.sale-btn-viber { background: #fff; color: var(--sale-viber) !important; border-color: #d9d4fb; }
.sale-btn-viber:hover { background: #f6f4ff; border-color: var(--sale-viber); }
.sale-alert { padding: 12px 14px; border-radius: var(--sale-radius-sm); margin-bottom: 16px; font-size: 15px; }
.sale-alert ul { margin: 0; padding-left: 18px; }
.sale-alert.is-ok { background: #eef8f1; color: #14532d; }
.sale-alert.is-bad { background: #fdf0f0; color: #7f1d1d; }
.sale-preview { background: #fff7e0; color: #6b4500; text-align: center; padding: 10px 16px; font-size: 14px; }

/* Page heading (every page) */
.sale-hero { background: transparent; padding: 40px 0 8px; }
.sale-hero h1 { margin: 0 0 6px; font-size: clamp(28px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -.025em; }
.sale-hero p { margin: 0; color: var(--sale-muted); font-size: 16px; }

/* List page: filters in a bar above the cars */
.sale-list-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; }
.sale-filters-box { background: var(--sale-card); border: 1px solid var(--sale-line); border-radius: var(--sale-radius); box-shadow: var(--sale-shadow); }
.sale-filters-box > summary { cursor: pointer; padding: 14px 18px; font-weight: 500; color: var(--sale-ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.sale-filters-box > summary::-webkit-details-marker { display: none; }
.sale-filters-box > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 1.5px solid var(--sale-muted); border-bottom: 1.5px solid var(--sale-muted); transform: rotate(45deg) translateY(-3px); }
.sale-filters-box[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.sale-filter-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sale-red); }
.sale-filter-form { display: grid; gap: 14px; padding: 4px 18px 18px; }
.sale-filter-form label, .sale-inquiry-form label, .sale-sort label { display: grid; gap: 6px; min-width: 0; }
.sale-filter-form label > span, .sale-inquiry-form label > span, .sale-sort label > span, .sale-calc-form label > span { font-size: 13px; font-weight: 500; color: var(--sale-muted); }
.sale-filter-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) {
  .sale-filters-box > summary { display: none; }
  .sale-filter-form { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 16px; padding: 18px; }
  .sale-filter-pair { display: contents; }
  .sale-filter-form .sale-check { grid-column: 1 / 3; order: 2; }
  .sale-filter-actions { order: 1; }
}
.sale-page select, .sale-page input:not([type="checkbox"]), .sale-page textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; font: inherit; font-size: 16px; color: var(--sale-ink);
  background: #fff; border: 1px solid #dcdce0; border-radius: var(--sale-radius-sm); transition: border-color .15s, box-shadow .15s;
}
.sale-page select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2371717a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.sale-page select:hover, .sale-page input:not([type="checkbox"]):hover, .sale-page textarea:hover { border-color: #c4c4ca; }
.sale-page select:focus, .sale-page input:not([type="checkbox"]):focus, .sale-page textarea:focus { outline: none; border-color: var(--sale-ink); box-shadow: 0 0 0 3px rgba(24, 24, 27, .08); }
.sale-page textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.sale-check { display: flex !important; align-items: center; gap: 10px; font-size: 15px; }
.sale-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--sale-ink); }
.sale-check span { color: var(--sale-text) !important; font-size: 15px !important; font-weight: 400 !important; }
.sale-filter-actions { display: flex; align-items: flex-end; gap: 14px; }
.sale-filter-actions .sale-btn { flex: 1; background: var(--sale-ink); }
.sale-filter-actions .sale-btn:hover { background: #000; }
.sale-filter-actions a { font-size: 14px; color: var(--sale-muted); white-space: nowrap; padding-bottom: 12px; }
.sale-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sale-results-bar p { margin: 0; color: var(--sale-muted); font-size: 15px; }
.sale-sort label { grid-template-columns: auto 210px; align-items: center; gap: 10px; }
@media (max-width: 480px) { .sale-sort label { grid-template-columns: auto minmax(0, 1fr); } .sale-results-bar { flex-wrap: wrap; } }
.sale-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.sale-card a { display: flex; flex-direction: column; height: 100%; background: var(--sale-card); border: 1px solid var(--sale-line); border-radius: var(--sale-radius); overflow: hidden; text-decoration: none; box-shadow: var(--sale-shadow); transition: border-color .15s, box-shadow .15s; }
.sale-card a:hover { border-color: #d4d4d8; box-shadow: 0 6px 20px rgba(24, 24, 27, .06); }
.sale-card-media { position: relative; aspect-ratio: 4 / 3; background: #ececef; overflow: hidden; }
/* Absolute, so a portrait phone photo cannot stretch the box past 4:3. */
.sale-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sale-card a:hover .sale-card-media img { transform: scale(1.03); }
.sale-card.is-sold .sale-card-media img { filter: grayscale(.7); opacity: .75; }
.sale-card-noimg { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; color: #a1a1aa; font-weight: 500; letter-spacing: .08em; }
.sale-badge { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .01em; color: #fff; }
.sale-badge.is-sold { background: rgba(24, 24, 27, .82); }
.sale-badge.is-reserved { background: var(--sale-amber); }
.sale-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sale-card-body h2 { margin: 0; font-size: 16px; font-weight: 550; line-height: 1.35; letter-spacing: -.005em; }
.sale-card-specs { margin: 0; color: var(--sale-muted); font-size: 14px; }
.sale-card-price { margin: auto 0 0; padding-top: 12px; font-size: 19px; font-weight: 600; color: var(--sale-ink); letter-spacing: -.01em; }
.sale-card.is-sold .sale-card-price { color: var(--sale-muted); text-decoration: line-through; font-weight: 500; }
.sale-empty { background: var(--sale-card); border: 1px solid var(--sale-line); border-radius: var(--sale-radius); padding: 40px 24px; text-align: center; }
.sale-empty p { margin: 0 0 16px; }
.sale-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.sale-pages a, .sale-pages span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--sale-radius-sm); background: #fff; border: 1px solid var(--sale-line); text-decoration: none; font-size: 15px; }
.sale-pages span[aria-current="page"] { background: var(--sale-ink); color: #fff; border-color: var(--sale-ink); }
.sale-pages span[aria-disabled="true"] { opacity: .4; }

/* Detail page */
.sale-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--sale-muted); padding: 22px 0 14px; }
.sale-crumbs a { color: var(--sale-muted); text-decoration: none; }
.sale-crumbs a:hover { color: var(--sale-ink); text-decoration: underline; }
.sale-detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 899px) { .sale-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.sale-gallery-main { position: relative; background: #141416; border-radius: var(--sale-radius); overflow: hidden; aspect-ratio: 4 / 3; }
.sale-gallery-main > a { position: absolute; inset: 0; }
.sale-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sale-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--sale-ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.sale-gallery-nav:hover { background: #fff; }
.sale-gallery-nav.is-prev { left: 12px; }
.sale-gallery-nav.is-next { right: 12px; }
.sale-gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .55); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 13px; }
.sale-thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.sale-thumbs button { position: relative; padding: 0; border: 2px solid transparent; border-radius: var(--sale-radius-sm); overflow: hidden; background: none; cursor: pointer; width: 88px; flex: none; aspect-ratio: 4 / 3; opacity: .7; transition: opacity .15s; }
.sale-thumbs button:hover { opacity: 1; }
.sale-thumbs button[aria-current="true"] { border-color: var(--sale-ink); opacity: 1; }
.sale-thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sale-summary { background: var(--sale-card); border: 1px solid var(--sale-line); border-radius: var(--sale-radius); box-shadow: var(--sale-shadow); padding: 24px; position: sticky; top: 88px; }
@media (max-width: 899px) { .sale-summary { position: static; padding: 20px; } }
.sale-summary h1 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.25; letter-spacing: -.02em; }
.sale-summary-specs { margin: 0; color: var(--sale-muted); font-size: 15px; }
.sale-summary-price { margin: 18px 0 20px; font-size: 30px; font-weight: 600; color: var(--sale-ink); letter-spacing: -.02em; line-height: 1.1; }
.sale-note { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--sale-radius-sm); background: #f4f4f5; font-size: 15px; }
.sale-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sale-cta .sale-btn:first-child { grid-column: 1 / -1; }
.sale-cta .sale-btn { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
@media (max-width: 360px) { .sale-cta { grid-template-columns: 1fr; } }
.sale-trust { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--sale-line-soft); display: grid; gap: 8px; font-size: 14px; color: var(--sale-text); }
.sale-trust li { position: relative; padding-left: 24px; }
.sale-trust li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 1.5px solid var(--sale-green); border-bottom: 1.5px solid var(--sale-green); transform: rotate(-45deg); }
.sale-trust a { color: inherit; text-underline-offset: 3px; text-decoration-color: #c4c4ca; }
.sale-trust a:hover { text-decoration-color: currentColor; }

/* The car's details: one panel, sections divided by lines */
.sale-detail-body { margin-top: 28px; max-width: calc(62.3% - 10px); background: var(--sale-card); border: 1px solid var(--sale-line); border-radius: var(--sale-radius); box-shadow: var(--sale-shadow); padding: 0 28px; }
@media (max-width: 899px) { .sale-detail-body { max-width: none; padding: 0 20px; } }
.sale-detail-body > .sale-block { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 26px 0; }
.sale-detail-body > .sale-block + .sale-block { border-top: 1px solid var(--sale-line-soft); }
.sale-block { background: var(--sale-card); border: 1px solid var(--sale-line); border-radius: var(--sale-radius); box-shadow: var(--sale-shadow); padding: 24px; scroll-margin-top: 88px; }
.sale-block h2 { margin: 0 0 16px; font-size: 18px; }
.sale-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.sale-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sale-line-soft); font-size: 15px; }
.sale-specs dt { color: var(--sale-muted); }
.sale-specs dd { margin: 0; font-weight: 500; color: var(--sale-ink); text-align: right; }
@media (max-width: 560px) { .sale-specs { grid-template-columns: 1fr; } }
.sale-equipment { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; font-size: 15px; }
.sale-equipment li { break-inside: avoid; padding: 5px 0 5px 22px; position: relative; }
.sale-equipment li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 9px; height: 5px; border-left: 1.5px solid var(--sale-green); border-bottom: 1.5px solid var(--sale-green); transform: rotate(-45deg); }
@media (max-width: 560px) { .sale-equipment { columns: 1; } }
.sale-description { white-space: normal; overflow-wrap: anywhere; }
.sale-inquiry-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sale-inquiry-wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .sale-inquiry-form { grid-template-columns: 1fr; } }
.sale-fineprint { margin: 0; font-size: 13px; color: var(--sale-muted); }
.sale-similar { margin-top: 48px; }
.sale-similar h2 { font-size: 22px; margin: 0 0 18px; }

/* Info pages: FAQ, about, calculator, order */
/* Full width of the 1200px wrap, like the heading above it. */
.sale-page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
.sale-faq { display: grid; gap: 0; background: var(--sale-card); border: 1px solid var(--sale-line); border-radius: var(--sale-radius); box-shadow: var(--sale-shadow); }
.sale-faq details { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.sale-faq details + details { border-top: 1px solid var(--sale-line-soft); }
.sale-faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 500; color: var(--sale-ink); position: relative; }
.sale-faq summary::-webkit-details-marker { display: none; }
.sale-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: var(--sale-muted); }
.sale-faq details[open] summary::after { content: "−"; }
.sale-faq details p { margin: 0; padding: 0 22px 20px; color: var(--sale-text); max-width: 90ch; }
.sale-prose p { margin: 0 0 14px; }
.sale-prose p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  /* Two paragraphs side by side: a full-width line would be too long to read. */
  .sale-prose { columns: 2; column-gap: 48px; }
  .sale-prose p { break-inside: avoid; }
}
.sale-values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.sale-values li { position: relative; min-width: 0; overflow-wrap: anywhere; hyphens: auto; background: var(--sale-card); border: 1px solid var(--sale-line); border-radius: var(--sale-radius); padding: 14px 16px 14px 40px; font-weight: 500; color: var(--sale-ink); }
.sale-values li::before { content: ""; position: absolute; left: 17px; top: 21px; width: 10px; height: 6px; border-left: 1.5px solid var(--sale-green); border-bottom: 1.5px solid var(--sale-green); transform: rotate(-45deg); }
.sale-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.sale-team div { display: grid; gap: 2px; align-content: start; }
.sale-team strong { color: var(--sale-ink); font-weight: 500; }
.sale-team a { color: var(--sale-muted); text-decoration: none; }
.sale-team a:hover { color: var(--sale-ink); text-decoration: underline; }
.sale-cta-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--sale-dark); color: #d4d4d8; border-color: var(--sale-dark); }
.sale-cta-box h2 { margin: 0 0 4px; color: #fff; }
.sale-cta-box p { margin: 0; color: #a1a1aa; }
.sale-cta-box-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sale-cta-box .sale-btn-quiet { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .3); }
.sale-cta-box .sale-btn-quiet:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.sale-calc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 900px) { .sale-calc-form { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sale-calc-form label { display: grid; gap: 6px; min-width: 0; }
@media (max-width: 560px) { .sale-calc-form { grid-template-columns: 1fr; } }
.sale-calc-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 14px; }
.sale-calc-result div { background: var(--sale-bg); border-radius: var(--sale-radius-sm); padding: 14px 16px; }
.sale-calc-result .is-main { grid-column: 1 / -1; background: var(--sale-ink); }
.sale-calc-result dt { font-size: 13px; color: var(--sale-muted); }
.sale-calc-result dd { margin: 2px 0 0; font-size: 19px; font-weight: 600; color: var(--sale-ink); letter-spacing: -.01em; }
.sale-calc-result .is-main dt { color: #a1a1aa; }
.sale-calc-result .is-main dd { font-size: 32px; color: #fff; }
@media (max-width: 560px) { .sale-calc-result { grid-template-columns: 1fr; } }
.sale-inquiry-form h2 { margin: 10px 0 0; font-size: 16px; }

/* Photo lightbox (2026-11-16): a full-screen <dialog> over the car page */
.sale-gallery-main > a { cursor: zoom-in; }
html.sale-lb-open { overflow: hidden; }
.sale-lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 12, .96); color: #fff; overflow: hidden; }
.sale-lightbox::backdrop { background: rgba(10, 10, 12, .96); }
.sale-lightbox[open] { display: grid; place-items: center; }
.sale-lightbox img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-select: none; border-radius: 4px; }
.sale-lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font: 300 30px/1 "Inter", sans-serif; cursor: pointer; transition: background-color .15s; }
.sale-lightbox button:hover { background: rgba(255, 255, 255, .24); }
.sale-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sale-lightbox-close { top: 16px; right: 16px; }
.sale-lightbox-nav { top: 50%; transform: translateY(-50%); }
.sale-lightbox-nav.is-prev { left: 16px; }
.sale-lightbox-nav.is-next { right: 16px; }
.sale-lightbox-count { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-size: 14px; color: rgba(255, 255, 255, .75); }
@media (min-width: 720px) { .sale-lightbox img { max-width: calc(100vw - 176px); max-height: calc(100dvh - 96px); } }
@media (max-width: 719px) { .sale-lightbox-nav { top: auto; bottom: 8px; transform: none; } .sale-lightbox-count { bottom: 22px; } }
