.vehicle-detail { --ink: #19171e; --muted: #696472; --line: #e7e4eb; --accent: #5634c6; color: var(--ink); padding-bottom: 0; }
.vehicle-detail .vehicle-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; color: var(--muted); font-size: 14px; text-decoration: none; border: 0; }
.vehicle-back span { font-size: 19px; line-height: 1; }
.vehicle-detail .vehicle-back:hover { color: var(--accent); }
.vehicle-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, 1fr); gap: clamp(24px, 3.3vw, 56px); align-items: start; margin-bottom: 0; }
.vehicle-summary:only-child { grid-column: 1 / -1; width: min(100%, 650px); }
.vehicle-gallery, .vehicle-summary { min-width: 0; }
.vehicle-stage { width: fit-content; max-width: 100%; margin-inline: auto; position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; background: #eeedf0; }
.vehicle-stage .vehicle-zoom { display: block; cursor: zoom-in; border: 0; }
.vehicle-zoom img { display: block; width: auto; height: auto; max-width: 100%; max-height: 76vh; max-height: min(76svh, 760px); }
.vehicle-stage .vehicle-arrow, .vehicle-lightbox .vehicle-arrow, .vehicle-lightbox .vehicle-close { display: grid; place-items: center; position: absolute; border: 0; border-radius: 50%; padding: 0; background: rgb(255 255 255 / 94%); color: #201d25; width: 42px; height: 42px; cursor: pointer; box-shadow: 0 2px 12px #1010181a; }
.vehicle-arrow { top: 50%; transform: translateY(-50%); }
.vehicle-prev { left: 14px; }
.vehicle-next { right: 14px; }
.vehicle-arrow::after { content: ""; width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateX(-2px) rotate(-45deg); }
.vehicle-prev::after { transform: translateX(2px) rotate(135deg); }
.vehicle-count { position: absolute; right: 14px; bottom: 14px; background: #19171ec9; color: white; border-radius: 20px; padding: 4px 12px; font-size: 13px; font-variant-numeric: tabular-nums; pointer-events: none; }
.vehicle-thumbs { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 0 7px; margin-top: 9px; scrollbar-width: thin; scrollbar-color: #d2cdd8 transparent; }
.vehicle-thumbs a {
    position: relative;
    display: block;
    flex: 0 0 calc((100% - 42px) / 8);
    min-width: 0;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 8px;
}
.vehicle-thumbs img {
    position: absolute;
    inset: 0;
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: inherit;
}
.vehicle-thumbs a[aria-current="true"] img {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
.vehicle-lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 3vh 4vw; border: 0; background: #141318; color: white; }
.vehicle-lightbox:not([open]) { display: none; }
.vehicle-lightbox[open] { display: grid; place-items: center; }
.vehicle-lightbox::backdrop { background: #141318; }
.vehicle-lightbox img { display: block; width: 100%; height: 100%; max-height: 94vh; object-fit: contain; }
.vehicle-lightbox .vehicle-close { top: 16px; right: 16px; z-index: 1; line-height: 1; font-size: 30px; }
.vehicle-location { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 0 0 13px; }
.vehicle-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #574578; }
.vehicle-status::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 50%; }
.vehicle-status.available { color: #226b4a; }
.vehicle-detail .vehicle-summary h1 { font-size: clamp(34px, 3.45vw, 55px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 9px; color: var(--ink); overflow-wrap: anywhere; }
.vehicle-variant { margin: 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.4; color: var(--muted); }
.vehicle-price { margin: 19px 0 20px; color: var(--ink); font-weight: 700; font-size: clamp(28px, 2.55vw, 41px); line-height: 1.12; letter-spacing: -.035em; }
.vehicle-facts { margin: 0; border-top: 1px solid var(--line); }
.vehicle-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.vehicle-facts dt, .vehicle-facts dd { margin: 0; overflow-wrap: anywhere; }
.vehicle-facts dt { font-weight: 400; color: var(--muted); }
.vehicle-facts dd { text-align: right; font-weight: 600; color: var(--ink); }
.vehicle-description { padding: 14px 0; border-bottom: 1px solid var(--line); }
.vehicle-description summary { cursor: pointer; font-weight: 600; }
.vehicle-description > div { margin-top: 12px; overflow-wrap: anywhere; font-size: 15px; }
.vehicle-detail .vehicle-contact { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; margin-top: 20px; border: 0; border-radius: 10px; background: var(--accent); color: white; font-weight: 600; font-size: 16px; text-decoration: none; }
.vehicle-detail .vehicle-contact:hover { color: white; background: #4526ab; }
.vehicle-contact span { font-size: 20px; line-height: 1; }
.vehicle-other-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 28px; margin: 0 0 40px; }
.vehicle-other-facts h2 { font-size: 22px; }
.vehicle-sale img { max-width: 100%; max-height: 400px; border-radius: 12px; }
.vehicle-detail :focus-visible { outline: 3px solid #8e75ee; outline-offset: 2px; }
@media (max-width: 767px) {
    .vehicle-layout { grid-template-columns: minmax(0, 1fr); gap: 21px; }
    .vehicle-detail .vehicle-back { margin-bottom: 14px; }
    .vehicle-stage { border-radius: 13px; }
    .vehicle-summary h1 { font-size: 34px; }
    .vehicle-location { margin-bottom: 9px; }
    .vehicle-price { margin: 14px 0; }
    .vehicle-thumbs { margin-top: 5px; }
    .vehicle-thumbs a { flex-basis: calc((100% - 24px) / 5); }
}

.vehicle-layout ~ .vehicle-other-facts, .vehicle-layout ~ h2, .vehicle-layout ~ .vehicle-sale { margin-top: 28px; }
.vehicle-detail > .row-cars:last-of-type, .vehicle-detail > .vehicle-other-facts { margin-bottom: 0 !important; }
.page-car .footer.mt-5, .page-catalog-offer .footer.mt-5 { margin-top: 32px !important; }
@media (max-width: 767px) {
  .page-car .footer.mt-5, .page-catalog-offer .footer.mt-5 { margin-top: 20px !important; }
}
