@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --color-background: #0b0b0b;
    --color-surface: #1b1b1b;
    --color-surface-2: #151515;
    --color-foreground: #ffffff;
    --color-muted: #9a9a9a;
    --color-brand-red: #ff3333;
    --color-brand-red-deep: #cf240d;
    --color-border: rgba(255, 255, 255, 0.10);
    --color-black: #000000;
    --font-sans: "Poppins", Arial, sans-serif;
    --radius-standard: 10px;
    --container-max: 1440px;
    --page-gutter: 16px;
    --header-height: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 0;
    background: var(--color-background);
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-wrap: anywhere;
    background: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--color-brand-red);
    outline-offset: 3px;
}

.shell-container {
    width: min(100%, var(--container-max));
    margin-inline: auto;
    padding-inline: var(--page-gutter);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--color-brand-red);
    color: var(--color-foreground);
    font-weight: 600;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
}

.site-header__inner {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    grid-template-rows: var(--header-height) auto;
    align-items: center;
    align-content: start;
    gap: 0 12px;
}

.site-logo {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    min-width: 0;
    padding-block: 8px;
}

.site-logo img {
    width: auto;
    height: 32px;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--color-foreground);
    cursor: pointer;
}

.js .menu-toggle {
    display: inline-flex;
}

.menu-toggle:hover {
    border-color: var(--color-border);
    background: var(--color-surface-2);
}

.menu-toggle__line {
    width: 23px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    grid-column: 1 / -1;
    min-width: 0;
    border-top: 1px solid var(--color-border);
}

.js .site-nav {
    display: none;
}

.js .site-nav.is-open {
    display: block;
}

.site-nav ul,
.site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav ul {
    display: flex;
    flex-direction: column;
    padding-block: 8px;
}

.site-nav a {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-foreground);
    font-size: 0.95rem;
    font-weight: 500;
}

.site-nav li:last-child a {
    border-bottom: 0;
}

.site-nav a:hover {
    color: var(--color-brand-red);
}

.site-nav a[aria-current="page"] {
    color: var(--color-foreground);
    font-weight: 700;
}

.site-nav a[aria-current="page"]::before {
    width: 4px;
    height: 24px;
    margin-right: 10px;
    border-radius: 999px;
    background: var(--color-brand-red);
    content: "";
}

.site-main {
    width: 100%;
    flex: 1 0 auto;
    padding-block: 48px;
}

.shell-placeholder {
    max-width: 760px;
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-standard);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 51, 51, 0.10), transparent 38%),
        var(--color-surface-2);
}

.shell-placeholder__eyebrow {
    margin: 0 0 8px;
    color: var(--color-brand-red);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shell-placeholder h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 3.25rem);
    line-height: 1.15;
}

.shell-placeholder p:last-child {
    max-width: 62ch;
    margin: 16px 0 0;
    color: var(--color-muted);
}

.about-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}

.about-content,
.about-contacts {
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-standard);
}

.about-content {
    padding: 32px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 51, 51, 0.10), transparent 38%),
        var(--color-surface-2);
}

.about-content__eyebrow,
.about-contacts__eyebrow {
    margin: 0 0 8px;
    color: var(--color-brand-red);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-content h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 3.25rem);
    line-height: 1.15;
}

.about-content__copy {
    max-width: 70ch;
    margin-top: 24px;
    color: var(--color-muted);
}

.about-content__copy p {
    margin: 0;
}

.about-content__copy p + p {
    margin-top: 16px;
}

.about-content__empty {
    font-style: italic;
}

.about-reasons {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.about-reasons h2 {
    margin: 0;
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    line-height: 1.25;
}

.about-reasons__grid {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.about-reason {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.about-reason h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.about-reason p {
    margin: 10px 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.about-contacts {
    padding: 24px;
    background: var(--color-surface);
}

.about-contacts h2 {
    margin: 0;
    font-size: 1.375rem;
    line-height: 1.3;
}

.about-contacts address {
    margin-top: 24px;
    font-style: normal;
}

.about-contacts__list {
    display: grid;
    gap: 20px;
    margin: 0;
}

.about-contacts__list div {
    min-width: 0;
}

.about-contacts__list dt {
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-contacts__list dd {
    margin: 0;
    color: var(--color-foreground);
}

.about-contacts__list a {
    text-decoration: underline;
    text-decoration-color: rgba(255, 51, 51, 0.55);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.about-contacts__list a:hover {
    color: var(--color-brand-red);
    text-decoration-color: currentColor;
}

.about-opening-hours {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-opening-hours li {
    display: grid;
    gap: 2px;
}

.about-opening-hours span:last-child {
    color: var(--color-muted);
    font-size: 0.875rem;
}

.catalogue-page {
    padding-block: 32px 48px;
}

.catalogue-toolbar {
    min-width: 0;
}

.catalogue-heading {
    min-width: 0;
}

.catalogue-heading h1 {
    margin: 0;
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    line-height: 1.2;
}

.catalogue-count {
    margin: 4px 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.catalogue-controls {
    position: relative;
    min-width: 0;
    margin-top: 16px;
}

.sort-form {
    position: absolute;
    top: 0;
    right: 0;
    left: 128px;
    min-width: 0;
}

.sort-form > label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.filter-field > span {
    display: block;
    margin-bottom: 6px;
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.sort-form__controls {
    display: flex;
    min-width: 0;
    gap: 8px;
}

.sort-form select,
.filter-field input,
.filter-field select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-foreground);
}

.sort-form select {
    flex: 1 1 auto;
    padding: 9px 36px 9px 12px;
}

.filter-field input,
.filter-field select {
    padding: 9px 12px;
}

.sort-form select:hover,
.filter-field input:hover,
.filter-field select:hover {
    border-color: rgba(255, 51, 51, 0.6);
}

.filter-field input::placeholder {
    color: #7f7f7f;
    opacity: 1;
}

.filter-field select:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.sort-form__submit,
.button {
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--color-foreground);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.sort-form__submit {
    display: inline-flex;
    flex: 0 0 auto;
    border-color: var(--color-border);
    background: var(--color-surface);
}

.js .sort-form__submit {
    display: none;
}

.catalogue-filters {
    min-width: 0;
}

.catalogue-filters > summary {
    display: flex;
    width: 116px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.catalogue-filters > summary::-webkit-details-marker {
    display: none;
}

.catalogue-filters > summary:hover {
    border-color: rgba(255, 51, 51, 0.6);
    color: var(--color-brand-red);
}

.catalogue-filters[open] > summary {
    border-color: var(--color-brand-red);
    color: var(--color-brand-red);
}

.catalogue-filters:not([open]) > .filter-form {
    display: none;
}

.catalogue-filters__summary-label {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.filter-icon {
    position: relative;
    width: 18px;
    height: 14px;
    flex: 0 0 18px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.filter-icon::after {
    position: absolute;
    top: 4px;
    right: 3px;
    left: 3px;
    border-top: 2px solid currentColor;
    content: "";
}

.filter-count {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--color-brand-red);
    color: var(--color-foreground);
    font-size: 0.75rem;
    font-weight: 700;
}

.filter-form {
    width: 100%;
    margin-top: 16px;
    padding: 20px 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 51, 51, 0.07), transparent 32%),
        var(--color-surface-2);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.filter-field {
    min-width: 0;
}

.filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.button {
    display: inline-flex;
    text-align: center;
}

.button--secondary {
    border-color: var(--color-border);
    background: transparent;
}

.button--secondary:hover {
    border-color: rgba(255, 51, 51, 0.65);
}

.button--primary {
    background: var(--color-brand-red);
}

.button--primary:hover {
    background: var(--color-brand-red-deep);
}

.active-filters {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 16px;
}

.active-filters ul {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.filter-chip {
    display: inline-flex;
    min-height: 40px;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    padding: 7px 10px 7px 13px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    font-size: 0.75rem;
    font-weight: 500;
}

.filter-chip span {
    color: var(--color-muted);
    font-size: 1.15rem;
    line-height: 1;
}

.filter-chip:hover {
    border-color: rgba(255, 51, 51, 0.65);
}

.filter-chip:hover span {
    color: var(--color-brand-red);
}

.clear-filters {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    color: var(--color-brand-red);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.vehicle-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    transition: border-color 180ms ease, transform 180ms ease;
}

.vehicle-card:hover {
    border-color: rgba(255, 51, 51, 0.6);
    transform: translateY(-2px);
}

.vehicle-card__image-link {
    display: block;
}

.vehicle-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, #252525, var(--color-surface-2));
}

.vehicle-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.vehicle-card:hover .vehicle-card__image img {
    transform: scale(1.035);
}

.vehicle-card__image > span:not(.vehicle-card__badge) {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--color-muted);
    font-size: 0.875rem;
    text-align: center;
}

.vehicle-card__badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--color-brand-red);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    color: var(--color-foreground);
    font-size: 0.75rem;
    font-weight: 700;
}

.vehicle-card__badge--coming-soon,
.vehicle-summary__badge--coming-soon {
    border: 1px solid rgba(101, 181, 255, 0.72);
    background: #245f91;
    color: #f4faff;
}

.vehicle-card__availability {
    margin: 5px 0 0;
    color: #a9d7ff;
    font-size: 0.75rem;
    font-weight: 600;
}

.vehicle-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px;
}

.vehicle-card h2 {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.3;
}

.vehicle-card__version {
    min-height: 1.5em;
    margin: 3px 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.vehicle-card__price {
    margin: 14px 0 0;
    color: var(--color-brand-red);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.vehicle-card__price span {
    display: block;
    margin-bottom: 2px;
    color: var(--color-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.vehicle-card__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.vehicle-card__specs div {
    position: relative;
    min-width: 0;
    padding-left: 11px;
}

.vehicle-card__specs div::before {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 2px;
    border-radius: 999px;
    background: var(--color-brand-red);
    content: "";
}

.vehicle-card__specs dt {
    overflow: hidden;
    color: var(--color-muted);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.045em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.vehicle-card__specs dd {
    overflow: hidden;
    margin: 1px 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-card__action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 9px 16px;
    border: 1px solid var(--color-brand-red);
    border-radius: 8px;
    color: var(--color-brand-red);
    font-size: 0.875rem;
    font-weight: 600;
}

.vehicle-card__action:hover {
    background: var(--color-brand-red);
    color: var(--color-foreground);
}

.vehicle-card__action span {
    font-size: 1.1rem;
    transition: transform 180ms ease;
}

.vehicle-card__action:hover span {
    transform: translateX(3px);
}

.catalogue-message {
    margin-top: 32px;
    padding: 36px 20px;
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    text-align: center;
}

.catalogue-message h2 {
    margin: 0;
    font-size: 1.125rem;
}

.catalogue-message p {
    margin: 6px 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.catalogue-message--error {
    border-style: solid;
    border-color: rgba(255, 51, 51, 0.55);
    box-shadow: inset 4px 0 0 var(--color-brand-red);
}

.catalogue-pagination {
    margin-top: 40px;
}

.catalogue-pagination ul {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.catalogue-pagination a,
.pagination-gap {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 600;
}

.catalogue-pagination a {
    border: 1px solid var(--color-border);
}

.catalogue-pagination a:hover {
    border-color: rgba(255, 51, 51, 0.65);
}

.catalogue-pagination a[aria-current="page"] {
    border-color: var(--color-brand-red);
    background: var(--color-brand-red);
    color: var(--color-foreground);
}

.pagination-gap {
    color: var(--color-muted);
}

.button--outline {
    border-color: var(--color-brand-red);
    background: transparent;
    color: var(--color-brand-red);
}

.button--outline:hover {
    background: var(--color-brand-red);
    color: var(--color-foreground);
}

.vehicle-detail-page {
    padding-block: 24px 48px;
}

.vehicle-detail__heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 20px;
}

.vehicle-breadcrumb {
    min-width: 0;
}

.vehicle-breadcrumb ol {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    color: var(--color-muted);
    font-size: 0.8125rem;
    list-style: none;
}

.vehicle-breadcrumb li {
    min-width: 0;
}

.vehicle-breadcrumb li[aria-current="page"] {
    overflow: hidden;
    color: var(--color-foreground);
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-breadcrumb a:hover {
    color: var(--color-brand-red);
}

.vehicle-detail__top {
    display: grid;
    min-width: 0;
    gap: 24px;
}

.vehicle-media,
.vehicle-detail__primary,
.vehicle-summary,
.vehicle-description,
.vehicle-detail__narratives,
.vehicle-detail__footer-actions {
    min-width: 0;
}

.vehicle-detail__primary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vehicle-gallery__stage,
.vehicle-gallery__fallback figure,
.vehicle-media__placeholder {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 50%, #252525, var(--color-surface-2));
}

.vehicle-gallery__main,
.vehicle-gallery__fallback img,
.vehicle-gallery__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-media__placeholder > p,
.vehicle-gallery__error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    color: var(--color-muted);
    font-size: 0.875rem;
    text-align: center;
}

.vehicle-gallery__fallback {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.vehicle-gallery.is-enhanced .vehicle-gallery__fallback {
    display: none;
}

.vehicle-gallery__stage {
    touch-action: pan-y;
}

.vehicle-gallery__controls[hidden],
.vehicle-gallery__thumbnails[hidden],
.vehicle-gallery__error[hidden],
.vehicle-gallery__main[hidden] {
    display: none;
}

.vehicle-gallery__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: rgba(11, 11, 11, 0.86);
    color: var(--color-foreground);
    cursor: pointer;
    transform: translateY(-50%);
}

.vehicle-gallery__arrow:hover {
    border-color: var(--color-brand-red);
    color: var(--color-brand-red);
}

.vehicle-gallery__arrow span {
    margin-top: -3px;
    font-size: 2rem;
    line-height: 1;
}

.vehicle-gallery__arrow--previous {
    left: 12px;
}

.vehicle-gallery__arrow--next {
    right: 12px;
}

.vehicle-gallery__counter {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: rgba(11, 11, 11, 0.86);
    color: var(--color-foreground);
    font-size: 0.75rem;
    font-weight: 600;
}

.vehicle-gallery__thumbnails {
    display: none;
}

.vehicle-gallery__thumbnail {
    position: relative;
    min-width: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    padding: 0;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-2);
    cursor: pointer;
}

.vehicle-gallery__thumbnail:hover {
    border-color: rgba(255, 51, 51, 0.65);
}

.vehicle-gallery__thumbnail[aria-current="true"] {
    border-color: var(--color-brand-red);
    box-shadow: 0 0 0 2px rgba(255, 51, 51, 0.22);
}

.vehicle-gallery__thumbnail > span {
    position: absolute;
    z-index: 1;
    right: 5px;
    bottom: 5px;
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: rgba(11, 11, 11, 0.88);
    color: var(--color-foreground);
    font-size: 0.6875rem;
    font-weight: 700;
}

.vehicle-gallery__thumbnail[aria-current="true"] > span::before {
    margin-right: 3px;
    content: "✓";
}

.vehicle-summary,
.vehicle-description,
.vehicle-contacts,
.public-status {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
}

.vehicle-summary {
    padding: 24px;
}

.vehicle-summary__badge {
    display: inline-flex;
    margin: 0 0 12px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--color-brand-red);
    color: var(--color-foreground);
    font-size: 0.75rem;
    font-weight: 700;
}

.vehicle-summary__status {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    align-items: center;
    margin: 0 0 12px;
}

.vehicle-summary__status .vehicle-summary__badge {
    margin: 0;
}

.vehicle-summary__availability {
    margin: 0;
    color: #a9d7ff;
    font-size: 0.8125rem;
    font-weight: 600;
}

.vehicle-summary h1 {
    margin: 0;
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.15;
}

.vehicle-summary__version {
    margin: 5px 0 0;
    color: var(--color-muted);
}

.vehicle-summary__price {
    margin: 20px 0 0;
    color: var(--color-brand-red);
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.vehicle-summary__price span {
    display: block;
    margin-bottom: 3px;
    color: var(--color-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vehicle-summary__specs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 24px 0 0;
}

.vehicle-summary__specs div {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-2);
    box-shadow: inset 3px 0 0 var(--color-brand-red);
}

.vehicle-summary__specs dt,
.vehicle-contacts dt {
    color: var(--color-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.vehicle-summary__specs dd,
.vehicle-contacts dd {
    margin: 2px 0 0;
    color: var(--color-foreground);
    font-size: 0.875rem;
    font-weight: 500;
}

.vehicle-detail__lower {
    margin-top: 24px;
}

.vehicle-detail__narratives {
    display: grid;
    gap: 24px;
    align-items: start;
}

.vehicle-description {
    padding: 24px;
}

.vehicle-description h2,
.vehicle-contacts h2 {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.3;
}

.vehicle-description p {
    margin: 12px 0 0;
    color: var(--color-muted);
    line-height: 1.75;
    white-space: pre-line;
}

.vehicle-defects {
    align-self: start;
}

.vehicle-detail__footer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.vehicle-contacts {
    padding: 18px;
}

.vehicle-contacts__eyebrow,
.public-status__eyebrow {
    margin: 0 0 6px;
    color: var(--color-brand-red);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.vehicle-contacts address {
    margin-top: 12px;
    font-style: normal;
}

.vehicle-contacts__intro {
    margin: 6px 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.vehicle-contacts dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.vehicle-contacts dd {
    overflow-wrap: anywhere;
}

.vehicle-contacts address a {
    text-decoration: underline;
    text-decoration-color: rgba(255, 51, 51, 0.55);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.vehicle-contacts address a:hover {
    color: var(--color-brand-red);
}

.vehicle-contacts__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.vehicle-contacts__actions .button {
    width: 100%;
    min-width: 0;
    text-decoration: none;
}

.vehicle-contacts__copy[hidden] {
    display: none;
}

.vehicle-contacts__feedback {
    margin: 7px 0 0;
    color: var(--color-muted);
    font-size: 0.8125rem;
}

.vehicle-contacts__feedback:empty {
    display: none;
}

.vehicle-detail__back {
    width: 100%;
    gap: 9px;
}

.vehicle-detail__back--top {
    align-self: flex-start;
}

.public-status {
    max-width: 760px;
    padding: 32px 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 51, 51, 0.10), transparent 38%),
        var(--color-surface-2);
}

.public-status h1 {
    margin: 0;
    font-size: clamp(1.75rem, 8vw, 2.75rem);
    line-height: 1.15;
}

.public-status > p:not(.public-status__eyebrow) {
    margin: 14px 0 0;
    color: var(--color-muted);
}

.public-status .button {
    width: 100%;
    margin-top: 24px;
}

.site-footer {
    flex: 0 0 auto;
    border-top: 1px solid var(--color-border);
    background: var(--color-black);
}

.site-footer__main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 32px;
    padding-block: 40px;
}

.site-logo--footer img {
    height: 28px;
}

.site-footer__identity p {
    max-width: 40ch;
    margin: 12px 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.site-footer__section h2 {
    margin: 0 0 12px;
    color: var(--color-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__list {
    display: grid;
    gap: 10px;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
    color: var(--color-brand-red);
}

.site-footer a[aria-current="page"] {
    font-weight: 600;
}

.site-footer__legal {
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.75rem;
}

.site-footer__legal-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-block: 18px;
}

.site-footer__legal p {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    :root {
        --page-gutter: 32px;
    }

    .site-header__inner {
        display: flex;
        flex-wrap: nowrap;
        align-content: normal;
        gap: 0 16px;
    }

    .site-logo img {
        height: 34px;
    }

    .menu-toggle,
    .js .menu-toggle {
        display: none;
    }

    .site-nav,
    .js .site-nav,
    .js .site-nav.is-open {
        display: block;
        flex: 0 0 auto;
        border-top: 0;
    }

    .site-nav ul {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding-block: 0;
    }

    .site-nav a {
        min-height: 44px;
        padding: 10px 16px;
        border-bottom: 0;
        border-radius: 6px;
    }

    .site-nav a[aria-current="page"]::before {
        position: absolute;
        right: 16px;
        bottom: 5px;
        left: 16px;
        width: auto;
        height: 2px;
        margin: 0;
        box-shadow: 0 0 8px rgba(255, 51, 51, 0.45);
    }

    .site-main {
        padding-block: 64px;
    }

    .shell-placeholder {
        padding: 48px;
    }

    .about-content {
        padding: 48px;
    }

    .about-contacts {
        padding: 32px;
    }

    .about-reasons__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalogue-page {
        padding-block: 40px 64px;
    }

    .catalogue-toolbar {
        position: relative;
    }

    .catalogue-heading {
        position: absolute;
        top: 0;
        left: 0;
    }

    .catalogue-controls {
        margin-top: 0;
        padding-top: 18px;
    }

    .catalogue-filters > summary {
        margin-right: 342px;
        margin-left: auto;
    }

    .sort-form {
        top: 18px;
        left: auto;
        width: 330px;
    }

    .filter-form {
        padding: 24px;
    }

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

    .filter-actions {
        grid-template-columns: auto auto;
        justify-content: end;
    }

    .button {
        min-width: 132px;
    }

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

    .catalogue-message {
        padding: 48px 32px;
    }

    .vehicle-detail-page {
        padding-block: 32px 64px;
    }

    .vehicle-gallery.is-enhanced .vehicle-gallery__thumbnails:not([hidden]) {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        margin-top: 12px;
    }

    .vehicle-summary,
    .vehicle-description {
        padding: 28px;
    }

    .vehicle-detail__heading {
        flex-direction: row;
        gap: 24px;
        align-items: center;
        justify-content: space-between;
    }

    .vehicle-detail__back {
        width: auto;
    }

    .vehicle-summary__specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vehicle-contacts {
        padding: 20px;
    }

    .vehicle-contacts dl {
        grid-template-columns: repeat(
            auto-fit,
            minmax(130px, 1fr)
        );
        gap: 8px 14px;
    }

    .vehicle-contacts__actions {
        grid-template-columns: repeat(
            auto-fit,
            minmax(112px, 1fr)
        );
        gap: 8px;
    }

    .public-status {
        padding: 48px;
    }

    .public-status .button {
        width: auto;
    }

    .site-footer__main {
        padding-block: 48px;
    }

    .site-footer__legal-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px 24px;
    }
}

@media (min-width: 1024px) {
    .vehicle-detail-page {
        --vehicle-detail-columns:
            minmax(0, 1.15fr)
            minmax(320px, 0.85fr);
    }

    .about-layout {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
        gap: 32px;
    }

    .filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .vehicle-detail__top,
    .vehicle-detail__narratives {
        grid-template-columns: var(--vehicle-detail-columns);
        gap: 32px;
        align-items: start;
    }

    .vehicle-defects:first-child {
        grid-column: 2;
    }

}

@media (min-width: 520px) and (max-width: 767px) {
    .filter-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
