:root {
  --header-height: 76px;
  --red: #d5001c;
  --red-dark: #a80013;
  --green: #1f7a24;
  --green-dark: #16651b;
  --blue: #13366c;
  --footer: #282d35;
  --ink: #303641;
  --muted: #737d8d;
  --line: #dce1e8;
  --soft: #f6f7f9;
  --white: #ffffff;
  --focus-on-light: #005fcc;
  --focus-on-dark: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--white);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

button,
select,
a {
  font: inherit;
}

button,
select {
  border: 0;
}

button,
a {
  color: inherit;
}

button,
a[href],
select {
  cursor: pointer;
}

button {
  padding: 0;
  background: none;
}

a {
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.16;
}

h1 {
  font-size: clamp(30px, 2.25vw, 42px);
}

h2 {
  font-size: clamp(25px, 2vw, 34px);
}

h3 {
  font-size: 18px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 200;
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border-radius: 7px;
  background: var(--red-dark);
  color: #fff;
  font-weight: 800;
  transform: translateY(-140%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  border-bottom: 1px solid #e9ebef;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(22, 32, 46, .04);
}

.header-shell {
  display: flex;
  width: min(1360px, calc(100% - 32px));
  height: 100%;
  align-items: center;
  gap: 25px;
  margin-inline: auto;
}

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand-logo {
  width: 158px;
  height: auto;
}

.desktop-nav {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.15vw, 21px);
}

.desktop-nav > a {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #4c525d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
}

.desktop-nav__icon {
  display: none;
  flex: 0 0 auto;
  object-fit: contain;
}

.desktop-nav > a:nth-last-child(2),
.desktop-nav > a:last-child {
  max-width: 122px;
}

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

.new-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
}

.header-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.header-actions .wishlist-button,
.header-actions .avatar-button {
  width: 44px;
}

.header-actions .avatar-button img {
  width: 100%;
  height: 100%;
}

.header-actions .login-button {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.header-actions .menu-button {
  display: none;
  width: 44px;
  min-height: 44px;
}

/* The supplied 2048px reference uses the room available on wide screens for
   the original, generous CarroYa navigation treatment. */
@media (min-width: 1680px) {
  :root {
    --header-height: 94px;
  }

  .site-header {
    height: 94px;
  }

  .header-shell {
    width: min(1680px, calc(100% - 32px));
    gap: 25px;
    margin-inline: 0;
    margin-left: max(16px, calc((100vw - 1680px) / 2));
  }

  .brand-logo {
    width: 192px;
  }

  .desktop-nav {
    gap: 40px;
    transform: translateX(8px);
  }

  .desktop-nav > a {
    gap: 8px;
    color: #434e56;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
  }

  .desktop-nav > a:nth-last-child(2),
  .desktop-nav > a:last-child {
    max-width: none;
  }

  .desktop-nav__featured-link {
    white-space: nowrap;
  }

  .desktop-nav__icon {
    display: block;
  }

  .desktop-nav__icon--credit {
    width: 26px;
    height: 20px;
  }

  .desktop-nav__icon--safe-sale {
    width: 15px;
    height: 20px;
  }

  .new-badge {
    min-height: 18px;
    padding: 0 6px;
    background: #36ad1f;
    font-size: 10px;
  }

  .header-actions {
    gap: 11px;
  }

  .header-actions .login-button {
    padding: 0 8px;
    color: #434e56;
    font-size: 16px;
    font-weight: 400;
  }
}

.menu-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 96;
  width: 100%;
  background: rgba(22, 32, 46, .46);
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  z-index: 97;
  width: min(380px, 100%);
  max-height: calc(100dvh - var(--header-height));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: -10px 18px 30px rgba(22, 32, 46, .2);
}

.mobile-menu-inner {
  display: grid;
  padding: 14px;
}

.mobile-menu-inner a,
.mobile-menu-inner button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid #edf0f3;
  color: #3e4652;
  font-weight: 750;
  text-align: left;
}

.hero-section {
  padding-top: 22px;
}

.safe-sale-panel {
  position: relative;
  min-height: 325px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: linear-gradient(115deg, #f8f9fa, #eef2f5);
  box-shadow: 0 4px 16px rgba(32, 44, 61, .12);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy,
.hero-steps {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy {
  left: 0;
  width: 38%;
  padding: 30px 34px 24px 46px;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 72%, rgba(255,255,255,0) 100%);
}

.hero-steps {
  right: 0;
  width: 32%;
  padding: 26px 36px 22px 36px;
  background: linear-gradient(270deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 76%, rgba(255,255,255,0) 100%);
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(27px, 2.2vw, 35px);
}

.hero-copy h1 span,
.hero-steps h2 {
  color: var(--red-dark);
}

.hero-copy p {
  max-width: 360px;
  margin-bottom: 16px;
  font-size: 15px;
}

.hero-copy small {
  display: block;
  margin-top: 8px;
  color: #676f7a;
  font-size: 11px;
}

.hero-steps h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-steps ol {
  margin: 0;
  padding-left: 21px;
  font-size: 12px;
  line-height: 1.42;
}

.hero-steps li + li {
  margin-top: 5px;
}

.primary-button,
.hero-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-weight: 850;
  line-height: 1.15;
}

.hero-cta {
  width: min(100%, 336px);
  background: var(--green);
  border-radius: 999px;
  font-size: 17px;
}

.hero-cta:hover {
  background: var(--green-dark);
}

.vehicle-actions {
  padding-top: 40px;
}

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

.section-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(30, 42, 58, .07);
}

.finder-panel,
.seller-panel {
  border-top: 5px solid var(--red);
}

.finder-panel > h2,
.seller-panel > h2 {
  min-height: 69px;
  margin: 0;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--red-dark);
  font-size: 24px;
}

.vehicle-finder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  padding: 21px 22px 20px;
}

.vehicle-finder label {
  color: #505865;
  font-size: 13px;
  font-weight: 800;
}

.vehicle-finder label:nth-of-type(3),
.vehicle-finder label:nth-of-type(4) {
  margin-top: 7px;
}

.vehicle-finder select {
  width: 100%;
  min-width: 0;
  height: 47px;
  margin-bottom: 7px;
  padding: 0 14px;
  border: 1px solid #cbd2dc;
  border-radius: 7px;
  background: #fff;
  color: #4d5562;
  font-weight: 700;
}

.vehicle-finder select:nth-of-type(1) { grid-column: 1; grid-row: 2; }
.vehicle-finder label:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.vehicle-finder select:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.vehicle-finder label:nth-of-type(3) { grid-column: 1; grid-row: 3; }
.vehicle-finder select:nth-of-type(3) { grid-column: 1; grid-row: 4; }
.vehicle-finder label:nth-of-type(4) { grid-column: 2; grid-row: 3; }
.vehicle-finder select:nth-of-type(4) { grid-column: 2; grid-row: 4; }

.finder-submit,
.finder-status {
  grid-column: 1 / -1;
}

.finder-submit {
  margin-top: 4px;
  font-size: 16px;
}

.finder-submit img {
  filter: brightness(0) invert(1);
}

.finder-status {
  min-height: 26px;
  padding-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.finder-results-panel {
  padding: 0 22px 22px;
}

.finder-results-panel h3 {
  margin-bottom: 12px;
}

.finder-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.seller-option {
  display: flex;
  min-width: 0;
  min-height: 294px;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  text-align: center;
}

.seller-option + .seller-option {
  border-left: 1px solid var(--line);
}

.seller-option img {
  width: 100%;
  height: 112px;
  border-radius: 8px;
  object-fit: cover;
}

.seller-option h3 {
  margin: 11px 0 5px;
  font-weight: 900;
}

.seller-option p {
  min-height: 48px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 13px;
}

.seller-option .primary-button {
  margin-top: auto;
  padding-inline: 24px;
}

.section-block {
  padding-top: 52px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 8px;
  color: var(--red-dark);
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading--centered {
  text-align: center;
}

.section-heading--with-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.finance-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  padding: 20px;
}

.finance-card > img {
  width: 132px;
  height: 112px;
  object-fit: contain;
}

.finance-card h3 {
  margin-bottom: 7px;
}

.finance-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-section,
.news {
  margin-top: 52px;
  padding-bottom: 50px;
  background: var(--soft);
}

.catalog-section--light {
  margin-top: 0;
  background: #fff;
}

.category-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 18px;
}

.category-controls button {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #cad1db;
  border-radius: 999px;
  background: #fff;
  color: #4f5865;
  font-size: 13px;
  font-weight: 800;
}

.category-controls button[aria-selected="true"] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.rail-group {
  position: relative;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  margin: 0;
  padding: 2px 2px 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail > * {
  scroll-snap-align: start;
}

.rail-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.rail-controls button {
  display: inline-flex;
  width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.vehicle-card,
.news-card,
.logo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 42, 58, .07);
}

.vehicle-card__media {
  position: relative;
}

.vehicle-card__media > img,
.vehicle-card > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.vehicle-card__body {
  padding: 15px;
}

.vehicle-card h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.vehicle-card p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.vehicle-card strong {
  color: #252b33;
  font-size: 17px;
}

.vehicle-card .wishlist-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1e5eb;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--red);
  font-size: 20px;
}

.wishlist-button.is-saved {
  background: var(--red);
  color: #fff;
}

.certified-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(19,54,108,.94);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}

.section-tail {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.section-tail button {
  min-height: 44px;
  padding: 7px 3px;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
}

.service-banner-panel {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background: #092a4d;
  box-shadow: 0 7px 18px rgba(13, 37, 68, .18);
}

.service-banner-panel > img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.service-banner-copy {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: 48%;
  flex-direction: column;
  justify-content: center;
  padding: 34px 48px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95) 25%);
}

.service-banner-copy h2 {
  margin-bottom: 7px;
  color: #1f2e43;
}

.service-banner-copy p:not(.eyebrow) {
  margin-bottom: 18px;
  color: #4f5d6e;
}

.service-banner-copy .primary-button {
  align-self: flex-start;
}

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

.insurance-card {
  display: grid;
  grid-template-columns: 46% 1fr;
}

.insurance-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.insurance-card > div {
  padding: 24px 22px;
}

.insurance-card h3 {
  margin-bottom: 7px;
  color: var(--red-dark);
}

.insurance-card p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.services {
  padding-bottom: 52px;
  background: #fbfbfc;
}

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

.service-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 164px;
}

.service-card:first-child {
  grid-column: span 2;
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 164px;
  object-fit: cover;
}

.service-card div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
}

.service-card h3 {
  margin-bottom: 6px;
  color: var(--red-dark);
  font-size: 16px;
}

.service-card p {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
}

.service-card .primary-button {
  min-height: 44px;
  margin-top: auto;
  padding: 7px 13px;
  font-size: 11px;
}

.news {
  margin-top: 0;
}

.news-card > img {
  width: 100%;
  height: 205px;
  object-fit: cover;
}

.news-card__body {
  padding: 15px;
}

.news-card__date {
  margin-bottom: 7px;
  color: var(--red);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.news-card h3 {
  min-height: 62px;
  margin-bottom: 14px;
  font-size: 16px;
}

.news-card button {
  min-height: 44px;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
}

.logos-section {
  padding-bottom: 40px;
}

.logos-section--brands {
  padding-top: 26px;
  background: var(--soft);
}

.logo-rail {
  grid-auto-columns: minmax(150px, 1fr);
}

.logo-card {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 18px;
}

.logo-card img {
  max-width: 130px;
  max-height: 64px;
  object-fit: contain;
}

.brand-rail .logo-card {
  min-height: 118px;
  border-radius: 50%;
}

.app-promo-panel {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 365px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(19, 54, 108, .24);
}

.app-promo-copy {
  padding: 42px 45px;
}

.app-promo-copy h2,
.app-promo-copy p,
.app-promo-copy li {
  color: #fff;
}

.app-promo-copy h2 {
  margin-bottom: 12px;
}

.app-promo-copy p {
  max-width: 580px;
  margin-bottom: 16px;
}

.app-promo-copy ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-buttons button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border-radius: 7px;
}

.store-buttons img {
  width: 132px;
  height: auto;
}

.app-promo-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-searches {
  padding-bottom: 48px;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #4b5563;
}

.keyword-cloud button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-size: 12px;
}

.site-footer {
  background: var(--footer);
  color: #dfe4eb;
}

.help-bar {
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: #252b33;
}

.help-bar-inner {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 12px;
}

.help-bar strong {
  margin-right: 12px;
  color: #fff;
}

.help-bar button {
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-block: 36px;
}

.footer-column {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 9px;
}

.footer-column h2 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
}

.footer-column button {
  color: #c8d0da;
  font-size: 12px;
  text-align: left;
}

.footer-column button:hover {
  color: #fff;
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 18px 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #9ea9b7;
  font-size: 10px;
}

.footer-bottom img {
  width: 128px;
  height: auto;
  filter: grayscale(1) brightness(2.5);
}

.footer-bottom p {
  margin: 0;
}

#demo-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  margin: auto;
  padding: 30px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(10, 19, 31, .38);
}

#demo-dialog[open] {
  display: block;
}

#demo-dialog::backdrop {
  background: rgba(16, 24, 35, .66);
}

.dialog-fallback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 299;
  background: rgba(16, 24, 35, .66);
}

#demo-dialog.is-fallback-open {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 300;
  display: block;
  margin: 0;
  transform: translate(-50%, -50%);
}

.dialog-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

#demo-dialog h2 {
  margin-bottom: 9px;
  color: var(--red-dark);
}

#demo-dialog p {
  color: var(--muted);
}

#demo-dialog .primary-button {
  min-width: 120px;
}

#cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 180;
  display: grid;
  width: min(520px, calc(100% - 36px));
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  background: #252b33;
  color: #fff;
  box-shadow: 0 10px 28px rgba(10, 19, 31, .28);
}

#cookie-notice p {
  margin: 0;
  color: #edf1f6;
  font-size: 12px;
}

#cookie-notice button {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-on-light);
  outline-offset: 3px;
}

.primary-button:focus-visible,
.hero-cta:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--focus-on-dark);
  box-shadow: 0 0 0 2px var(--red-dark);
}

.app-promo-panel button:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

#cookie-notice button:focus-visible {
  outline: 3px solid #fff;
  box-shadow: 0 0 0 2px #16202e;
}

button:hover,
a:hover {
  filter: brightness(.96);
}

button:active,
a:active {
  transform: translateY(1px);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .header-shell {
    gap: 12px;
  }

  .brand-logo {
    width: 132px;
  }

  .desktop-nav {
    gap: 7px;
  }

  .desktop-nav > a {
    font-size: 9px;
  }

  .desktop-nav > a:nth-last-child(2),
  .desktop-nav > a:last-child {
    max-width: 95px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-actions .login-button {
    font-size: 11px;
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-actions .login-button,
  .header-actions .avatar-button {
    display: none;
  }

  .header-shell {
    justify-content: space-between;
  }

  .brand-logo {
    width: 158px;
  }

  .menu-button {
    display: inline-flex;
  }

  .header-actions .menu-button {
    display: inline-flex;
  }

  .hero-copy {
    width: 44%;
  }

  .hero-steps {
    width: 37%;
  }

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

  .service-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  button,
  a[href],
  select {
    min-height: 44px;
  }

  button {
    min-width: 44px;
  }

  .menu-button {
    width: 44px;
    min-height: 44px;
  }

  .rail-controls {
    display: none;
  }

  .action-grid,
  .finance-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: 48%;
  }

  .hero-steps {
    width: 42%;
  }

  .finance-card {
    grid-template-columns: 170px 1fr;
  }

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

  .app-promo-panel {
    grid-template-columns: 1fr;
  }

  .app-promo-art {
    max-height: 300px;
    object-position: center 34%;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 64px;
  }

  .site-header,
  .header-shell {
    height: 64px;
  }

  .header-shell {
    width: calc(100% - 24px);
  }

  .brand-logo {
    width: 137px;
  }

  .menu-button {
    width: 44px;
    min-height: 44px;
  }

  .header-wishlist {
    display: none !important;
  }

  .page-shell {
    width: calc(100% - 28px);
  }

  .hero-section {
    width: 100%;
    padding-top: 0;
  }

  .safe-sale-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-image {
    position: relative;
    order: 1;
    width: 100%;
    height: min(600px, 100vw);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 90% center;
  }

  .hero-copy,
  .hero-steps {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    background: var(--soft);
  }

  .hero-copy {
    order: 2;
    padding: 22px 14px 20px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-copy p,
  .hero-copy small {
    max-width: none;
  }

  .hero-copy small {
    text-align: center;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-steps {
    order: 3;
    padding: 18px 14px 24px;
    border-top: 1px solid var(--line);
  }

  .hero-steps h2 {
    font-size: 21px;
  }

  .hero-steps ol {
    font-size: 12px;
    line-height: 1.5;
  }

  .vehicle-actions {
    padding-top: 32px;
  }

  .finder-panel > h2,
  .seller-panel > h2 {
    min-height: 0;
    padding: 18px 17px 15px;
    font-size: 20px;
  }

  .vehicle-finder {
    grid-template-columns: 1fr;
    padding: 18px 17px;
  }

  .vehicle-finder label,
  .vehicle-finder select,
  .finder-submit,
  .finder-status {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .vehicle-finder label:nth-of-type(3),
  .vehicle-finder label:nth-of-type(4) {
    margin-top: 5px;
  }

  .vehicle-finder select {
    height: 46px;
  }

  .finder-results {
    grid-template-columns: 1fr;
  }

  .seller-options {
    grid-template-columns: 1fr;
  }

  .seller-option {
    min-height: 280px;
  }

  .seller-option + .seller-option {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-block {
    padding-top: 42px;
  }

  .section-heading--with-controls {
    display: block;
  }

  .finance-card {
    grid-template-columns: 92px 1fr;
    padding: 16px;
  }

  .finance-card > img {
    width: 78px;
    height: 88px;
  }

  .category-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rail {
    grid-auto-columns: minmax(240px, 84vw);
  }

  .vehicle-card__media > img,
  .vehicle-card > img {
    height: 190px;
  }

  .service-banner-panel,
  .service-banner-panel > img {
    min-height: 390px;
  }

  .service-banner-panel > img {
    height: 390px;
    object-position: 30% center;
  }

  .service-banner-copy {
    top: auto;
    left: 0;
    width: 100%;
    padding: 24px 20px;
    background: linear-gradient(0deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 70%, rgba(255,255,255,0) 100%);
  }

  .insurance-card {
    grid-template-columns: 1fr;
  }

  .insurance-card > img {
    height: 190px;
  }

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

  .service-card:first-child {
    grid-column: auto;
  }

  .service-card {
    grid-template-columns: 42% 1fr;
  }

  .logo-rail {
    grid-auto-columns: 150px;
  }

  .app-promo-copy {
    padding: 30px 22px;
  }

  .store-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .popular-searches {
    padding-bottom: 40px;
  }

  .help-bar-inner {
    min-height: 0;
    flex-wrap: wrap;
    padding-block: 14px;
  }

  .help-bar strong {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #cookie-notice {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    gap: 8px;
    padding: 10px 12px;
  }

  #cookie-notice p {
    font-size: 10px;
    line-height: 1.35;
  }

  #cookie-notice button {
    width: 98px;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .service-card {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 145px;
    min-height: 145px;
  }

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

  #cookie-notice {
    grid-template-columns: 1fr 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .rail {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
