:root {
  --red: #c4161c;
  --red-dark: #9a1014;
  --ink: #121212;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --paper: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(18, 18, 18, 0.08);
  --radius: 8px;
  --max: 1160px;
  --nav-h: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--red);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

.topbar {
  background: var(--red);
  color: #fff;
  font-size: 0.92rem;
}

.topbar__inner,
.nav__inner,
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 38px;
  flex-wrap: wrap;
  padding: 0.3rem 0;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar span {
  opacity: 0.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 3px solid var(--red);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 68px;
  width: auto;
  max-width: min(420px, 52vw);
  object-fit: contain;
}

.brand--footer img {
  height: 64px;
  max-width: 280px;
  margin-bottom: 0.7rem;
  background: #fff;
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-links {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 650;
  font-size: 0.98rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--red);
}

.nav-links a.btn {
  color: #fff;
}

.nav-links a.btn:hover,
.nav-links a.btn:focus-visible {
  background: var(--ink);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: var(--red-dark);
}

form .btn:hover,
.info-card a.btn:hover,
.legal a.btn:hover {
  background: var(--ink);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: #fff;
  color: var(--ink);
}

.btn--dark {
  background: var(--ink);
}

.btn--dark:hover {
  background: #000;
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 42%) 1fr;
  grid-template-areas:
    "notice notice"
    "copy media"
    "stats stats";
  background: var(--ink);
  color: #fff;
  min-height: 0;
  scroll-margin-top: 120px;
}

.notice {
  grid-area: notice;
  overflow: hidden;
  min-height: 2.75rem;
  background: #0d0d0d;
  color: #fff;
  border-bottom: 1px solid #2a2a2a;
}

.notice__track {
  display: block;
  width: max-content;
  white-space: nowrap;
  animation: notice-scroll var(--notice-duration, 40s) linear infinite;
}

.notice:hover .notice__track,
.notice:focus-within .notice__track {
  animation-play-state: paused;
}

.hero .notice__set {
  display: inline-block;
  max-width: none;
  margin: 0;
  color: #fff;
  white-space: nowrap;
  vertical-align: middle;
}

.notice__set span {
  display: inline-block;
  padding: 0.55rem 0;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.notice__set span::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin: 0 2.6rem;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
}

@keyframes notice-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero__media {
  grid-area: media;
  position: relative;
  min-height: 680px;
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero__slide {
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 0;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 3;
}

.hero__slide:not(.is-active) {
  pointer-events: none;
}

.hero__slide a {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  color: inherit;
  touch-action: manipulation;
}

.hero__slide a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.hero__slide .hero__price {
  left: 0;
  right: 0;
  bottom: 5.2rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  transform: none;
  white-space: nowrap;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.28), transparent 28%);
  pointer-events: none;
}

.hero__controls {
  grid-area: media;
  align-self: end;
  justify-self: center;
  z-index: 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: calc(100% - 1.5rem);
  margin-bottom: 1.1rem;
}

.hero__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: min(100%, 28rem);
}

.hero__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero__dots button.is-active {
  width: 26px;
  background: var(--red);
}

.hero__arrow {
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(12, 12, 12, 0.72);
  color: #fff;
  border-radius: 4px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.hero__arrow:hover {
  background: var(--red);
}

.hero__content {
  grid-area: copy;
  position: relative;
  z-index: 3;
  align-self: center;
  padding: 2.6rem 2.4rem 2.6rem max(1.4rem, calc((100vw - var(--max)) / 2));
  width: auto;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--red);
}

.hero .eyebrow {
  color: #fff;
  white-space: nowrap;
}

.hero .eyebrow::before {
  background: var(--red);
}

.hero h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 0.92;
  margin: 0.55rem 0 0.9rem;
  max-width: 20ch;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}

.hero p {
  max-width: 36ch;
  margin: 0;
  color: #e6e6e6;
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero__stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #0d0d0d;
  border-top: 1px solid #2a2a2a;
}

.hero__stats > div {
  padding: 1rem 1.2rem;
  text-align: center;
}

.hero__stats > div + div {
  border-left: 1px solid #2a2a2a;
}

.hero__stats strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  color: var(--red);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero__stats span {
  display: block;
  color: #d8d8d8;
  font-size: 0.92rem;
  line-height: 1.25;
}

.section {
  padding: 4.2rem 0;
  scroll-margin-top: 120px;
}

.section--paper {
  background: var(--paper);
}

.section--dark {
  background: var(--ink);
  color: #f3efe9;
}

.section--dark .lede,
.section--dark p {
  color: #d5d5d5;
}

.section--dark a.btn {
  color: #fff;
}

.section__head {
  margin-bottom: 1.6rem;
}

.section h2,
.legal h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.95;
  margin: 0.35rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  margin: 0.7rem 0 0;
}

.lede a,
.contact-box a,
.info-card a,
.staff-item a,
.legal a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.info-card a.btn,
.legal a.btn {
  color: #fff;
}

.search-note {
  width: 100%;
  max-width: none;
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.2rem;
  margin-bottom: 1.1rem;
  padding: 1rem 1rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
}

.range-filter__head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.range-filter__head strong {
  font-weight: 650;
  color: var(--muted);
  text-align: right;
}

.range-filter__sliders {
  position: relative;
  height: 1.7rem;
  --a: 0%;
  --b: 100%;
  background: linear-gradient(to right, #ddd var(--a), var(--red) var(--a), var(--red) var(--b), #ddd var(--b));
  border-radius: 999px;
}

.range-filter__sliders input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1.7rem;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  pointer-events: none;
  appearance: none;
}

.range-filter__sliders input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.range-filter__sliders input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.search-filters__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.search-filters__actions p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.search-filters__actions .btn {
  padding: 0.5rem 0.85rem;
}

@media (max-width: 800px) {
  .search-filters {
    grid-template-columns: 1fr;
  }
}

.filters {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.inventory-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}

.sort-control {
  margin: 0;
  min-width: min(100%, 18rem);
  font-size: 0.92rem;
}

.sort-control select {
  width: 100%;
  padding: 0.42rem 0.7rem;
  font-weight: 650;
  background: #fff;
}

.filters:empty {
  display: none;
  margin: 0;
}

.filter-btn {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  font-weight: 650;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.inventory-status,
.empty-filter {
  color: var(--muted);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.car-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.car-card:hover {
  border-color: #bbb;
}

.car-card.is-hidden {
  display: none;
}

.car-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
}

.car-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.car-card--featured .car-card__media {
  aspect-ratio: auto;
  min-height: 320px;
  height: 100%;
}

.car-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.65s ease;
}

.car-card__media:hover img {
  transform: scale(1.07);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 3px;
}

.badge--gold {
  background: var(--ink);
  color: #fff;
}

.badge--reserved {
  left: auto;
  right: 12px;
  background: var(--ink);
}

.price-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--red);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.55rem 0.05rem;
  border-radius: 3px;
}

.price-tag--offer {
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.55rem 0.16rem;
}

.car-card__body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.car-card--featured .car-card__body {
  justify-content: center;
  padding: 1.6rem 1.5rem;
}

.car-card h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.car-card--featured h3 {
  font-size: 2.1rem;
}

.car-card h3 span {
  color: var(--muted);
  font-weight: 500;
}

.car-card__trim {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.3;
}

.meta {
  display: flex;
  gap: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.meta li + li::before {
  content: "·";
  margin-right: 0.7rem;
}

.car-card .meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
}

.car-card .meta li {
  white-space: normal;
}

.car-card .meta li + li::before,
.car-card .meta li:nth-child(2n)::before {
  content: none;
}

.meta--lines {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.meta--lines li {
  white-space: normal;
}

.meta--lines li + li::before {
  content: none;
}

.car-card .meta--chips {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.car-card .meta--chips li {
  background: #f0f0f0;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.28rem 0.65rem;
  white-space: nowrap;
  font-weight: 650;
}

.car-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  align-self: start;
}

.car-card .btn {
  padding: 0.5rem 0.85rem;
}

.car-card__details {
  margin: 0;
  white-space: pre-line;
  color: var(--muted);
  font-size: 0.95rem;
}

.car-inquiry {
  margin-top: 1.2rem;
}

.car-inquiry input[readonly] {
  background: #f3f3f3;
}

.car-trade {
  border: 0;
  margin: 0 0 0.85rem;
  padding: 0.85rem 0 0;
  border-top: 3px solid var(--red);
}

.car-trade legend {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0;
}

.car-trade__hint {
  margin: 0.35rem 0 0.75rem;
  color: var(--muted);
}

.car-detail h2 {
  margin: 1rem 0 0.25rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.car-detail {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.4rem;
  align-items: start;
  margin-top: 0.6rem;
}

.car-detail__stage {
  position: relative;
  width: 100%;
  line-height: 0;
}

.car-detail__main {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
  border-radius: var(--radius);
}

.car-detail__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.62);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.car-detail__nav svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
}

.car-detail__nav:hover {
  background: var(--red);
}

.car-detail__nav--prev {
  left: 16px;
}

.car-detail__nav--next {
  right: 16px;
}

.car-detail__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.car-detail__thumbs button {
  width: 92px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #111;
  cursor: pointer;
}

.car-detail__thumbs button.is-active,
.car-detail__thumbs button:hover {
  border-color: var(--red);
}

.car-detail__thumbs img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.car-detail h1 {
  margin: 0.15rem 0 0.4rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.95;
}

.car-detail h1 span {
  color: var(--muted);
  font-weight: 500;
}

.car-detail__trim {
  margin: 0.15rem 0 0.4rem;
  font-weight: 650;
}

.car-detail__price {
  margin: 0.2rem 0 0.35rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.2rem;
  color: var(--red);
  letter-spacing: 0.02em;
}

.car-detail__text {
  white-space: pre-line;
  margin: 0.8rem 0 0;
}

.car-detail__info .hero__actions {
  margin-top: 1.1rem;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.season {
  margin: 0;
}

.season__link {
  display: block;
  width: min(720px, 100%);
  margin: 0 auto;
}

.season__link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.season__link img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: none;
}

.info-card:has(.info-card__media) {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 0;
}

.info-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.info-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.65s ease;
}

.info-card__media:hover img {
  transform: scale(1.07);
}

.info-card__body {
  padding: 1.15rem 1.25rem 1.3rem;
  border-top: 4px solid var(--red);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.info-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

.info-card__actions .btn {
  width: 100%;
}

.info-card h3 {
  margin: 0 0 0.45rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.55rem;
  text-transform: uppercase;
}

.info-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.info-card__head h3 {
  margin: 0;
}

.info-card__logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: 92px;
  max-height: 64px;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.about img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 4px solid var(--red);
}

.about p {
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-box,
.staff,
form,
.fb-box {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: 1.3rem;
}

.fb-box,
.contact-box {
  border-top-color: var(--red);
}

.contact-box h3,
.staff h3,
form h3,
.fb-box h3 {
  margin: 0 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--red);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-size: 1.45rem;
}

.contact-box p,
.staff p {
  margin: 0.35rem 0;
}

.fb-embed {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 4px;
}

.map {
  grid-column: 1 / -1;
  min-height: 340px;
  border: 0;
  border-radius: var(--radius);
  width: 100%;
}

.staff-list {
  display: grid;
  gap: 0.85rem;
}

.staff-item strong {
  display: block;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 650;
  margin-bottom: 0.75rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  background: #fafafa;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  margin-top: 0.8rem;
  color: var(--red);
  font-weight: 650;
}

.form-status.is-ok {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: #e8f7ee;
  color: #0b6b32;
  border: 2px solid #178a3d;
  border-left-width: 8px;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.form-status__mark {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #178a3d;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  line-height: 1;
}

#yhteydenotto,
.car-inquiry {
  position: relative;
}

.form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.form-choice {
  border: 0;
  margin: 0 0 0.75rem;
  padding: 0;
}

.req {
  color: var(--red);
}

.form-required {
  margin: -0.35rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-choice legend {
  font-weight: 650;
  margin-bottom: 0.3rem;
}

.form-choice__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.form-choice label {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.form-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
}

.form-choice label > span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  padding: 0.55rem 1rem;
}

.form-choice input:checked + span,
.form-choice label:hover > span {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.form-choice input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.captcha input {
  max-width: 120px;
}

.captcha span {
  white-space: nowrap;
}

.site-footer {
  background: #0d0d0d;
  color: #d8d2ca;
  padding: 2.4rem 0 1.3rem;
  border-top: 4px solid var(--red);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover,
.footer__text-btn:hover {
  color: #ffd0d0;
}

.site-footer small {
  display: block;
  margin-top: 1.6rem;
  color: #8d877f;
}

.footer__text-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.legal h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
  margin: 1.8rem 0 0.5rem;
}

.legal__intro {
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin: 0.4rem 0;
}

.thirdparty-slot {
  position: relative;
}

.thirdparty-slot--map {
  grid-column: 1 / -1;
}

.thirdparty-slot iframe {
  display: none;
}

.thirdparty-slot.is-allowed iframe {
  display: block;
}

.thirdparty-slot.is-allowed .thirdparty-placeholder {
  display: none;
}

.thirdparty-placeholder {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  min-height: 220px;
  align-content: center;
  padding: 1.2rem;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
}

.thirdparty-slot--map .thirdparty-placeholder {
  min-height: 340px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

.cookie-banner h2,
.cookie-settings__panel h2 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
}

.cookie-banner h2 {
  font-size: 1.4rem;
}

.cookie-banner p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.cookie-banner a {
  color: var(--red);
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-link {
  background: #fff;
  color: var(--ink);
  border: 1px solid #ccc;
}

.cookie-link:hover {
  background: var(--ink);
  color: #fff;
}

.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(18, 18, 18, 0.5);
  display: grid;
  place-items: center;
  padding: 16px;
}

.cookie-settings[hidden],
.cookie-banner[hidden] {
  display: none;
}

.cookie-settings__panel {
  width: min(520px, 100%);
  background: #fff;
  border-radius: var(--radius);
  border-top: 4px solid var(--red);
  padding: 1.3rem;
}

.cookie-settings__panel h2 {
  font-size: 1.6rem;
}

.cookie-option {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.cookie-option label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-weight: 700;
}

.cookie-option input {
  width: auto;
}

.cookie-option p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

body.cookies-banner-on .back-to-top {
  bottom: 8.5rem;
}

.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.back-to-top svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--red-dark);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "notice"
      "media"
      "copy"
      "stats";
  }

  .hero__media {
    min-height: 360px;
  }

  .hero__slide:not(.is-active) {
    visibility: hidden;
  }

  .hero__content {
    padding: 1.6rem 1.1rem 1.8rem;
  }

  .hero .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    white-space: normal;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero__stats > div + div {
    border-left: 0;
  }

  .hero__stats > div:nth-child(even) {
    border-left: 1px solid #2a2a2a;
  }

  .hero__stats > div:nth-child(n + 3) {
    border-top: 1px solid #2a2a2a;
  }

  .hero__stats > div:last-child {
    grid-column: 1 / -1;
    border-left: 0;
  }

  .hero__stats > div {
    padding: 0.8rem 0.4rem;
  }

  .hero__stats strong {
    font-size: 1.35rem;
  }

  .hero__stats span {
    font-size: 0.78rem;
  }

  .brand img {
    height: 54px;
    max-width: min(250px, 62vw);
  }

  .car-grid,
  .cards-3,
  .about,
  .contact-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .car-card--featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .car-card--featured .car-card__media {
    min-height: 220px;
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .car-detail {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    flex-direction: column;
    padding: 0.8rem 1.1rem 1.1rem;
    border-bottom: 3px solid var(--red);
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }
}

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

  .hero__slide,
  .car-card__media img,
  .info-card__media img {
    transition: none;
  }

  .notice__track {
    animation: none;
    width: auto;
  }

  .hero .notice__set {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    padding: 0.35rem 1rem;
  }

  .car-card__media:hover img,
  .info-card__media:hover img {
    transform: none;
  }
}
