.site-header {
  position: fixed;
  z-index: 900;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.is-scrolled,
.site-header--solid {
  border-color: var(--color-line);
  background: rgba(8, 9, 9, 0.82);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: grid;
  width: var(--container);
  height: 100%;
  margin-inline: auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand img {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

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

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.25s ease;
}

.mobile-menu {
  position: fixed;
  z-index: 850;
  inset: 0;
  padding: calc(var(--header-height) + 42px) 28px 36px;
  background: rgba(8, 9, 9, 0.98);
}

.mobile-menu nav {
  display: grid;
  gap: 18px;
}

.mobile-menu a {
  padding-block: 14px;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-display);
  font-size: clamp(2rem, 11vw, 4rem);
  line-height: 1;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  padding: 12px 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

.button::after {
  position: absolute;
  top: -140%;
  left: -36%;
  width: 28%;
  height: 380%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: rotate(24deg);
  transition: left 0.65s var(--ease);
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button:hover::after {
  left: 125%;
}

.button--primary {
  background: var(--color-accent);
  color: #10110e;
}

.button--outline {
  border-color: var(--color-line-strong);
  background: rgba(5, 5, 5, 0.16);
  color: var(--color-text);
}

.button--outline:hover {
  border-color: var(--color-accent);
}

.button--small {
  min-height: 42px;
  padding: 9px 16px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.text-link {
  display: inline-flex;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.2s ease,
    padding 0.2s ease;
}

.text-link:hover {
  padding-inline: 5px;
  color: var(--color-accent);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.vehicle-card {
  position: relative;
  min-width: 0;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface);
  transition:
    transform 0.45s var(--ease),
    border-color 0.3s ease;
}

.vehicle-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-6px);
}

.vehicle-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #222;
}

.vehicle-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.58));
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.vehicle-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

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

.vehicle-card__body {
  padding: 22px;
}

.vehicle-card__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.vehicle-card__heading h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.vehicle-card__price {
  flex: 0 0 auto;
  color: var(--color-accent);
  font-size: 0.94rem;
  font-weight: 700;
}

.vehicle-card__specs {
  display: flex;
  min-height: 2.8em;
  margin: 14px 0 22px;
  flex-wrap: wrap;
  gap: 7px 10px;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.vehicle-card__specs span::before {
  content: "·";
}

.status-pill {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 9, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.status-pill--reserved {
  color: var(--color-reserved);
}

.status-pill--sold {
  color: #d5d7d2;
}

.site-footer {
  padding-block: 52px 28px;
  border-top: 1px solid var(--color-line);
}

.site-footer__top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
}

.site-footer__title {
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-footer__bottom {
  display: flex;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  justify-content: space-between;
  gap: 20px;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.custom-cursor {
  position: fixed;
  z-index: 2000;
  top: -18px;
  left: -18px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(217, 255, 69, 0.72);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition:
    width 0.2s ease,
    height 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}

.custom-cursor.is-visible {
  opacity: 1;
}

.custom-cursor.is-active {
  top: -24px;
  left: -24px;
  width: 48px;
  height: 48px;
  background: rgba(217, 255, 69, 0.08);
}

.custom-cursor.has-label {
  top: -31px;
  left: -31px;
  width: 62px;
  height: 62px;
  background: var(--color-accent);
  color: #0c0d0b;
}

.custom-cursor__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
}

.custom-cursor__label {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.custom-cursor.has-label .custom-cursor__dot {
  display: none;
}
