.car-model-page {
    background: #f5f5f5;
    color: #161616;
}

.car-model {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 96px;
}

@media (min-width: 1151px) {
    .car-model-page {
        --model-content-width: 720px;
        --model-pane-width-target: 620px;
        --model-gap: 16px;
        --model-outer-gutter: max(14px, calc((100vw - var(--desktop-rail-width, 136px) - var(--model-content-width) - var(--model-gap) - var(--model-pane-width-target)) / 2));
        --model-left: calc(var(--desktop-rail-width, 136px) + var(--model-outer-gutter));
        --model-pane-width: min(var(--model-pane-width-target), calc(100vw - var(--model-left) - var(--model-content-width) - var(--model-gap) - var(--model-outer-gutter)));
    }

    .car-model-shell {
        display: grid;
        grid-template-columns: var(--model-content-width) var(--model-pane-width);
        gap: var(--model-gap);
        width: calc(var(--model-content-width) + var(--model-pane-width) + var(--model-gap));
        margin-left: var(--model-left);
        margin-right: var(--model-outer-gutter);
    }

    .car-model-page .car-model {
        width: 100%;
        margin: 0 0 20px;
    }

    body.car-model-page .footer .container {
        width: auto;
        max-width: var(--model-content-width);
        margin-left: var(--model-left);
        margin-right: var(--model-outer-gutter);
    }

    body.car-model-page .footer_info {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 72px;
    }

    body.car-model-page .footer_info-contacts {
        justify-self: center;
        min-width: 210px;
    }

    body.car-model-page .footer {
        padding-bottom: 8px;
    }
}

.model-hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin: 0 0 20px;
    padding: 42px 42px 0;
    background: #fff;
    border-radius: 24px;
}

.model-brand-logo {
    position: absolute;
    top: 34px;
    right: 34px;
    z-index: 2;
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #f5f5f5;
    color: #161616;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.model-brand-logo img {
    width: 58px;
    height: 58px;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.model-hero__copy {
    z-index: 1;
    max-width: calc(100% - 110px);
    animation: modelFadeUp 0.75s ease both;
}

.model-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #6a675f;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.model-breadcrumbs a,
.model-breadcrumbs span {
    display: inline-flex;
    color: inherit;
    line-height: 1.25;
}

.model-breadcrumbs a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.model-breadcrumbs a:hover,
.model-breadcrumbs a:focus-visible {
    color: #161616;
}

.model-hero h1 {
    margin: 0 0 22px;
    font-size: 76px;
    font-weight: 900;
    line-height: 0.92;
}

.model-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin: -8px 0 24px;
    color: #161616;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.model-hero__meta span {
    position: relative;
}

.model-hero__meta span + span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -11px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    transform: translateY(-50%);
}

.model-body-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.model-body-variants__item {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(22, 22, 22, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #161616;
    font-size: 15px;
    font-weight: 700;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.model-body-variants__item.is-active {
    border-color: #161616;
    background: #161616;
    color: #fff;
}

.model-hero p {
    max-width: 580px;
    margin: 0;
    color: #4f4b44;
    font-size: 18px;
    line-height: 1.45;
}

.model-hero__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 34px;
}

.model-hero__button,
.model-hero__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    font-weight: 700;
}

.model-hero__button {
    padding: 0 22px;
    background: #161616;
    color: #fff;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.model-hero__link {
    color: #161616;
}

.model-hero__button:hover,
.model-hero__button:focus-visible {
    background: var(--color-green);
    color: var(--color-black);
}

.model-hero__media {
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    overflow: hidden;
    margin-top: 36px;
    margin-right: -42px;
    margin-left: -42px;
    animation: modelImageIn 0.9s 0.1s ease both;
}

.model-hero__media img {
    width: 100%;
    height: 420px;
    display: block;
    object-fit: cover;
    object-position: center bottom;
}

.model-hero__media img.model-placeholder-image {
    object-fit: contain;
    object-position: center;
    padding: 32px;
    background: #f1f2f4;
}

.model-hero__media-empty {
    width: 100%;
    height: 420px;
    background:
        linear-gradient(135deg, rgba(16, 16, 16, 0.08), rgba(16, 16, 16, 0.02)),
        #fff;
}

.model-decision-pane {
    display: none;
}

@media (min-width: 1151px) {
    .model-hero h1,
    .model-hero__media {
        display: none;
    }

    .model-hero {
        padding: 34px;
    }

    .model-decision-pane {
        display: block;
    }

    .model-decision-pane__inner {
        position: sticky;
        top: 14px;
        height: calc(100vh - 28px);
        min-height: 520px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
        background: #fff;
        border-radius: 40px;
    }

    .model-decision-pane__inner::-webkit-scrollbar {
        width: 0;
    }

    .model-pane-showcase {
        position: relative;
        min-height: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 24px 24px 0;
    }

    .model-pane-rating {
        position: absolute;
        top: 28px;
        right: 28px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--color-black);
        font-size: 18px;
        font-weight: 900;
        line-height: 1;
    }

    .model-pane-rating img {
        width: 18px;
        height: 18px;
        display: block;
    }

    .model-pane-showcase__title {
        display: grid;
        gap: 0;
        font-size: clamp(54px, 4.2vw, 72px);
        font-weight: 900;
        line-height: 0.9;
        letter-spacing: 0;
    }

    .model-pane-showcase__subtitle {
        max-width: 420px;
        margin: 16px 0 0;
        color: var(--color-black);
        font-size: 16px;
        line-height: 1.35;
        opacity: 0.64;
    }

    .model-pane-showcase > img {
        width: calc(100% + 48px);
        height: min(50vh, 50%);
        max-width: none;
        display: block;
        margin: auto -24px 0 -24px;
        object-fit: cover;
        object-position: center;
    }

    .model-pane-showcase > img.model-placeholder-image {
        object-fit: contain;
        padding: 22px;
        background: #f1f2f4;
    }

    .model-pane-showcase__empty-image {
        width: calc(100% + 48px);
        height: min(50vh, 50%);
        margin: auto -24px 0 -24px;
    }

    .model-pane-summary {
        flex: 0 0 auto;
        display: grid;
        justify-items: start;
        gap: 12px;
        width: min(100%, 470px);
        margin-top: 22px;
    }

    .model-pane-summary__price {
        font-size: 30px;
        font-weight: 900;
        line-height: 1.04;
    }

    .model-pane-summary__button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 22px;
        border-radius: 8px;
        background: var(--color-black);
        color: var(--color-white);
        font-weight: 900;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .model-pane-summary__button:hover,
    .model-pane-summary__button:focus-visible {
        background: var(--color-green);
        color: var(--color-black);
    }

}

.model-tabs {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    gap: 4px;
    margin: 0 0 20px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(22, 22, 22, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(18px);
}

.model-tabs__item {
    min-height: 42px;
    flex: 1;
    border-radius: 8px;
    color: #57534c;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.model-tabs__item.is-active {
    background: #f5f5f5;
    color: #161616;
}

.model-section {
    display: none;
    margin: 0 0 20px;
    padding: 30px 34px 46px;
    background: #fff;
    border-radius: 24px;
    animation: modelFadeUp 0.32s ease both;
}

.model-section.is-active {
    display: block;
}

.model-section--standalone {
    display: block;
}

.model-section__header {
    margin-bottom: 30px;
    border-top: 0;
    padding-top: 0;
}

.model-section__header h2 {
    font-size: 36px;
    line-height: 1.08;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(22, 22, 22, 0.08);
}

.summary-metric {
    min-height: 124px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    background: #fafafa;
}

.summary-metric span {
    color: #6a675f;
    font-size: 12px;
    font-weight: 600;
}

.summary-metric strong {
    font-size: 20px;
    line-height: 1.16;
}

.model-story {
    max-width: 620px;
    margin-top: 46px;
}

.model-story h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.model-story p {
    margin: 0;
    color: #4f4b44;
    font-size: 16px;
    line-height: 1.55;
}

.overview-trims {
    margin-top: 46px;
}

.overview-trims h3 {
    max-width: 760px;
    margin: 0 0 28px;
    font-size: 34px;
    line-height: 1.08;
}

.overview-trims__scroller {
    overflow-x: auto;
    scrollbar-width: thin;
}

.overview-trims__table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
}

.overview-trims__table th,
.overview-trims__table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(22, 22, 22, 0.14);
    text-align: left;
    vertical-align: top;
    font-size: var(--text-sm);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.overview-trims__table thead th {
    color: #7a7a7a;
    font-size: 12px;
    font-weight: var(--weight-medium);
}

.overview-trims__table tbody th {
    width: 25%;
    color: #161616;
    font-weight: var(--weight-medium);
}

.overview-trims__table tbody td {
    color: #161616;
    font-weight: var(--weight-medium);
}

.overview-trims__link {
    display: inline;
    color: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(22, 22, 22, 0.3);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.18s ease;
}

.overview-trims__link:hover,
.overview-trims__link:focus-visible {
    text-decoration-color: currentColor;
}

.overview-trims__more {
    width: fit-content;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: #e9eaec;
    color: #161616;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.overview-trims__more:hover,
.overview-trims__more:focus-visible {
    background: #dedfe2;
}

.overview-trims__more img {
    width: 20px;
    height: 20px;
    display: block;
    transition: transform 0.18s ease;
}

.overview-trims__more[aria-expanded="true"] img {
    transform: rotate(180deg);
}

.model-features {
    margin-top: 0;
}

.model-features__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.model-features__header h3 {
    font-size: 22px;
}

.model-features__controls {
    display: flex;
    gap: 8px;
}

.model-features__rail {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    border-radius: 8px;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.model-features__rail::-webkit-scrollbar {
    display: none;
}

.model-feature {
    flex: 0 0 calc((100% - 18px) / 3.15);
    min-width: 250px;
    overflow: hidden;
    border-radius: 8px;
    scroll-snap-align: start;
}

.model-feature img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    clip-path: inset(0 round 8px);
    margin-bottom: 18px;
}

.model-feature h4 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.12;
}

.model-feature p {
    margin: 0;
    color: #4f4b44;
    line-height: 1.45;
}

.model-feature a {
    display: inline-flex;
    margin-top: 18px;
    color: #161616;
    font-weight: 800;
}

.model-gallery {
    margin-top: 0;
}

.model-gallery__header {
    margin-bottom: 16px;
}

.model-gallery__header h3 {
    font-size: 22px;
}

.model-gallery__controls {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px;
    border-radius: 8px;
    background: #f1f2f4;
}

.model-gallery__tab {
    min-width: 132px;
    padding: 11px 18px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4f4b44;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.model-gallery__tab.is-active {
    background: #fff;
    color: #161616;
    box-shadow: 0 1px 2px rgba(22, 22, 22, 0.06);
}

.model-gallery__viewport {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f6f7f8;
}

.model-gallery__stage {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.model-gallery__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.2s ease, transform 0.28s ease;
    pointer-events: none;
}

.model-gallery__image.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.model-arrow,
.model-gallery__arrow {
    position: absolute;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #161616;
    font-size: 0;
    box-shadow: 0 8px 24px rgba(22, 22, 22, 0.14);
    cursor: pointer;
}

.model-gallery__arrow {
    top: 50%;
    transform: translateY(-50%);
}

.model-arrow {
    position: relative;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid rgba(22, 22, 22, 0.12);
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.model-arrow:hover,
.model-arrow:focus-visible {
    border-color: var(--color-green);
    background: var(--color-green);
    color: var(--color-black);
}

.model-arrow::before,
.model-gallery__arrow::before {
    content: "";
    width: 11px;
    height: 11px;
    display: block;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
}

.model-arrow--prev::before,
.model-gallery__arrow--prev::before {
    transform: translateX(2px) rotate(-135deg);
}

.model-arrow--next::before,
.model-gallery__arrow--next::before {
    transform: translateX(-2px) rotate(45deg);
}

.model-gallery__arrow--prev {
    left: 16px;
}

.model-gallery__arrow--next {
    right: 16px;
}

.model-gallery__counter {
    margin-top: 10px;
    color: #6a675f;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.model-colors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: hidden;
    margin-top: 34px;
    border-radius: 8px;
    background: rgba(22, 22, 22, 0.08);
}

.model-color-group {
    padding: 28px 22px;
    background: #fafafa;
}

.model-color-group h3 {
    margin-bottom: 22px;
    color: #161616;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.05;
}

.color-options {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    padding-left: 3px;
}

.inventory-row__color {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #3d3933;
    font-weight: 600;
}

.color-option {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    border-radius: 50%;
}

.color-option:first-child {
    margin-left: 0;
}

.color-option::after {
    content: attr(data-color);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 5;
    min-width: max-content;
    padding: 6px 9px;
    border-radius: 8px;
    background: #161616;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.color-option:hover::after,
.color-option:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.color-swatch {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex: 0 0 42px;
    border: 1px solid rgba(22, 22, 22, 0.16);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(22, 22, 22, 0.08);
    transition: border-color 0.18s ease;
}

.color-option:hover .color-swatch,
.color-option:focus-visible .color-swatch {
    border-color: rgba(22, 22, 22, 0.34);
}

.color-swatch--white {
    background: linear-gradient(135deg, #fff 0%, #ececea 100%);
}

.color-swatch--silver {
    background: linear-gradient(135deg, #f5f5f2 0%, #bfc1c0 100%);
}

.color-swatch--gray {
    background: #5d6062;
}

.color-swatch--moon {
    background: #f4f4f2;
}

.color-swatch--blue-gray {
    background: #53617f;
}

.color-swatch--champagne {
    background: #e6ddcb;
}

.color-swatch--pearl-gray {
    background: #a9a9ad;
}

.color-swatch--brown {
    background: #846d65;
}

.color-swatch--black,
.color-swatch--interior-black {
    background: #111;
}

.color-swatch--interior-cream {
    background: #e8ddcc;
}

.color-swatch--interior-brown {
    background: #7a4f37;
}

.color-swatch--interior-gray {
    background: #8f8981;
}

.spec-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 46px;
}

.spec-modification {
    width: min(520px, 100%);
    display: grid;
    gap: 6px;
    margin: 0 0 34px;
    padding: 13px 18px;
    border-radius: 8px;
    background: #f1f2f4;
}

.spec-modification label {
    color: #6f7882;
    font-size: 13px;
    font-weight: 600;
}

.spec-modification select {
    width: 100%;
    border: 0;
    background: transparent;
    color: #161616;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.spec-summary {
    margin: 0 0 40px;
}

.spec-summary__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 44px;
}

.spec-summary__grid[hidden],
.specification-panel[hidden] {
    display: none;
}

.spec-summary__item {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.spec-summary__item span {
    color: #161616;
    font-size: 16px;
    line-height: 1.25;
}

.spec-summary__item strong {
    color: #161616;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.08;
}

.specification-panel {
    display: grid;
    gap: 34px;
}

.spec-index {
    position: sticky;
    top: 82px;
    align-self: start;
    display: grid;
    gap: 10px;
}

.spec-index a {
    display: block;
    color: #6a675f;
    font-weight: 700;
}

.spec-groups {
    display: grid;
    gap: 34px;
}

.spec-group {
    scroll-margin-top: 96px;
}

.spec-group h3 {
    margin-bottom: 12px;
    font-size: 24px;
}

.spec-group dl {
    margin: 0;
    border-top: 1px solid rgba(22, 22, 22, 0.12);
}

.spec-group dl > div {
    display: grid;
    grid-template-columns: minmax(180px, 0.48fr) minmax(0, 0.52fr);
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(22, 22, 22, 0.12);
}

.spec-group dt {
    color: #6a675f;
    font-weight: 500;
}

.spec-group dd {
    margin: 0;
    font-weight: 700;
}

.trim-switch {
    max-width: 100%;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 0 0 30px;
    padding: 4px;
    border-radius: 8px;
    background: #f1f2f4;
    scrollbar-width: thin;
}

.trim-switch__item {
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 6px;
    color: #57534c;
    font-weight: 900;
    transition: background 0.18s ease, color 0.18s ease;
}

.trim-switch__item.is-active {
    background: #fff;
    color: #161616;
    box-shadow: 0 1px 2px rgba(22, 22, 22, 0.06);
}

.trim-basics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    margin: 0 0 34px;
    border-radius: 8px;
    background: rgba(22, 22, 22, 0.08);
}

.trim-basic {
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background: #fafafa;
}

.trim-basic span {
    color: #6a675f;
    font-size: 12px;
    font-weight: 700;
}

.trim-basic strong {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.12;
}

.equipment-layout {
    margin-top: 0;
}

.trim-basics[data-active-trim="livis"] [data-trim-value="ultra"],
.trim-basics[data-active-trim="ultra"] [data-trim-value="livis"],
.equipment-groups[data-active-trim="livis"] [data-trim-value="ultra"],
.equipment-groups[data-active-trim="ultra"] [data-trim-value="livis"] {
    display: none;
}

[data-trim-value][hidden] {
    display: none !important;
}

.equipment-group dd span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
}

.equipment-group dd span:empty {
    display: none;
}

.inventory-list {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(22, 22, 22, 0.08);
}

.inventory-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 24px;
    padding: 22px;
    background: #fafafa;
}

.inventory-row--empty {
    grid-template-columns: 210px minmax(0, 1fr) auto;
}

.inventory-row__photo {
    width: 210px;
    height: 118px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.inventory-row__photo--empty,
.model-pane-showcase__empty-image {
    background:
        linear-gradient(135deg, rgba(16, 16, 16, 0.08), rgba(16, 16, 16, 0.02)),
        #fff;
}

.inventory-row strong,
.inventory-row span {
    display: block;
}

.inventory-row span {
    margin-top: 6px;
    color: #6a675f;
}

.inventory-row__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 12px;
}

.inventory-row__color {
    font-size: 13px;
}

.inventory-row__color .color-swatch {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
}

.inventory-row__price {
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.inventory-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background: #f3f1ed;
    font-weight: 800;
}

.mobile-price-band {
    display: none;
}

.model-section--related,
.model-section--brand-dealers {
    display: grid;
    gap: 28px;
    padding-top: 38px;
    overflow: hidden;
    border-radius: 40px;
}

.comparison-block,
.similar-block,
.brand-dealers-block {
    min-width: 0;
}

.comparison-block__header {
    margin-bottom: 16px;
}

.comparison-block__header h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.08;
}

.brand-dealers-block .section-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.08;
}

.brand-dealers-block__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.brand-dealers-block__header a {
    color: #161616;
    font-size: 14px;
    font-weight: 900;
    text-align: right;
}

.brand-dealers-block .list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.brand-dealers-block .list--scroll {
    margin: 0 -20px;
    list-style: none;
    padding: 0;
    display: flex;
    gap: var(--spacing-xxs);
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.brand-dealers-block .list--scroll::-webkit-scrollbar {
    display: none;
}

.brand-dealers-block .item--scroll:last-child {
    margin-right: 20px;
}

.brand-dealers-block .item--scroll:first-child {
    margin-left: 20px;
}

.brand-dealers-block .analogue--list {
    margin-top: var(--spacing-sm);
}

.brand-dealers-block .analogue--item-list {
    gap: var(--spacing-xxs);
    min-width: 0;
}

.brand-dealers-block .analogue--item {
    width: 360px;
    height: auto;
    flex-shrink: 0;
    overflow: hidden;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--color-light-gray);
    white-space: normal;
}

.brand-dealers-block .analogue--item-link {
    display: block;
    color: #161616;
}

.brand-dealers-block .analogue--item-header {
    display: flex;
    align-content: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-dealers-block .analogue--item-header-container {
    min-width: 0;
}

.brand-dealers-block .analogue--item-header-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.brand-dealers-block .analogue--item-header-rating {
    display: flex;
    align-items: center;
    margin: 4px 0;
}

.brand-dealers-block .analogue--item-header-average-rating {
    margin: 0 8px;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

.brand-dealers-block .analogue--item-header-total-reviews {
    opacity: 50%;
    font-size: var(--text-sm);
    white-space: nowrap;
}

.brand-dealers-block .analogue--item-working-hours {
    opacity: 50%;
    font-size: var(--text-sm);
}

.brand-dealers-block .analogue--item-adress {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--text-sm);
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.brand-dealers-block .analogue--item-header-rating-image {
    margin-right: 4px;
}

.brand-dealers-block .analogue--item-header-grade {
    display: flex;
    align-items: center;
}

.brand-dealers-block .analogue--item-header-grade .dealer-rating__stars {
    display: flex;
    gap: 1px;
    margin-right: 4px;
}

.brand-dealers-block .analogue--item-header-grade .star {
    position: relative;
    width: 16px;
    height: 16px;
}

.brand-dealers-block .analogue--item-header-grade .star img {
    width: 16px;
    height: 16px;
}

.brand-dealers-block .analogue--item-header-grade .partial-star {
    position: relative;
    overflow: hidden;
}

.brand-dealers-block .analogue--item-header-grade .star-bg {
    opacity: 0.3;
}

.brand-dealers-block .analogue--item-header-grade .star-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--fill-percentage);
    overflow: hidden;
}

.brand-dealers-block .analogue--item-header-grade .empty-star img {
    opacity: 0.3;
}

.brand-dealers-block .dealer-info__logo {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    object-fit: contain;
    padding: 0;
    border-radius: var(--radius-xs);
    background-color: transparent;
}

.brand-dealers-block .no_logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    background-color: var(--color-light-gray);
    font-size: 32px;
    font-weight: var(--weight-bold);
}

.comparison-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.comparison-item {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(22, 22, 22, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #161616;
    font-weight: 900;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.comparison-item:hover,
.comparison-item:focus-visible {
    border-color: var(--color-green);
    background: var(--color-green);
    color: var(--color-black);
}

.similar-card span {
    font-size: 15px;
    font-weight: 900;
}

.similar-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.similar-grid::-webkit-scrollbar {
    display: none;
}

.similar-card {
    display: block;
    flex: 0 0 168px;
    min-width: 168px;
    padding: 10px;
    border-radius: 8px;
    background: transparent;
    color: #161616;
    overflow: hidden;
    scroll-snap-align: start;
    transition: color 0.2s ease;
}

.similar-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 8px;
    clip-path: inset(0 round 8px);
    background: transparent;
}

.similar-card strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 900;
}

.similar-card:hover,
.similar-card:focus-visible {
    color: var(--color-black);
}

@keyframes modelFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modelImageIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .model-hero {
        min-height: auto;
        padding: 28px 24px 0;
    }

    .model-hero h1 {
        font-size: 54px;
    }

    .model-hero__meta {
        font-size: 17px;
    }

    .model-hero__media {
        margin-right: -24px;
        margin-left: -24px;
        justify-content: center;
    }

    .model-hero__media img {
        height: 380px;
        width: 100%;
    }

    .summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trim-basics {
        grid-template-columns: repeat(2, 1fr);
    }

    .model-colors {
        grid-template-columns: 1fr;
    }

    .model-features__rail {
        gap: 8px;
    }

    .model-feature {
        flex-basis: min(320px, 82%);
    }

    .spec-layout {
        grid-template-columns: 1fr;
    }

    .spec-summary__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .spec-index {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-trims__table {
        min-width: 100%;
    }

    .overview-trims__table th,
    .overview-trims__table td {
        padding: 10px 6px;
        font-size: 13px;
    }

    .overview-trims__table thead th {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .car-model {
        width: min(100% - 20px, 1180px);
        margin-bottom: 64px;
    }

    .model-hero {
        padding: 24px 20px 0;
        border-radius: 20px;
    }

    .model-hero h1 {
        font-size: 42px;
    }

    .model-hero__meta {
        margin-bottom: 18px;
        gap: 8px 16px;
        font-size: 15px;
    }

    .model-body-variants {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .model-body-variants__item {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0 14px;
        font-size: 14px;
    }

    .model-hero p {
        font-size: 16px;
    }

    .model-hero__actions {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .model-hero__media {
        margin-right: -20px;
        margin-left: -20px;
    }

    .model-hero__media img {
        height: 330px;
    }

    .model-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .model-tabs__item {
        min-width: 0;
    }

    .summary-grid,
    .equipment-group ul,
    .spec-group dl > div,
    .inventory-row {
        grid-template-columns: 1fr;
    }

    .inventory-row__photo {
        width: 100%;
        height: 160px;
    }

    .mobile-price-band {
        display: grid;
        gap: 6px;
        margin-bottom: 18px;
        padding: 18px;
        border-radius: 8px;
        background: #fafafa;
    }

    .mobile-price-band span {
        color: #6a675f;
        font-size: 13px;
        font-weight: 700;
    }

    .mobile-price-band strong {
        font-size: 24px;
        line-height: 1.08;
    }

    .mobile-price-band em {
        color: #6a675f;
        font-size: 13px;
        font-style: normal;
        font-weight: 600;
    }

    .summary-metric {
        min-height: 98px;
    }

    .model-section__header h2 {
        font-size: 28px;
    }

    .overview-trims h3 {
        font-size: 28px;
    }

    .overview-trims__table {
        min-width: 660px;
    }

    .overview-trims__table th,
    .overview-trims__table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .overview-trims__table thead th {
        font-size: 12px;
    }

    .overview-trims__more {
        width: 100%;
        justify-content: center;
    }

    .spec-modification select {
        font-size: 16px;
    }

    .spec-summary__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

    .spec-summary__item strong {
        font-size: 21px;
    }

    .model-section {
        padding: 24px 20px 36px;
        border-radius: 24px;
    }

    .model-section--related,
    .model-section--brand-dealers {
        border-radius: 32px;
    }

    .model-gallery__controls {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .model-gallery__tab {
        min-width: 0;
    }

    .model-gallery__stage {
        min-height: 0;
    }

    .model-gallery__arrow {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .model-gallery__arrow--prev {
        left: 10px;
    }

    .model-gallery__arrow--next {
        right: 10px;
    }

    .model-color-group h3 {
        font-size: 22px;
    }

    .color-swatch {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .color-option {
        width: 36px;
        height: 36px;
        margin-left: -9px;
    }

    .inventory-row__price {
        white-space: normal;
    }

    .brand-dealers-block__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-dealers-block .section-title {
        font-size: 22px;
    }

    .brand-dealers-block__header a {
        text-align: left;
    }

    .brand-dealers-block .analogue--item {
        width: min(360px, calc(100vw - 56px));
    }

    .comparison-block__header h3 {
        font-size: 22px;
    }

    .similar-card {
        flex-basis: 150px;
        min-width: 150px;
        padding: 9px;
    }
}
