.search-view-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--op-line, var(--line));
  border-radius: 8px;
  background: #fff;
}

.search-view-tab {
  min-height: 44px;
  padding: 9px 18px;
  border: 0;
  border-radius: 5px;
  color: #354247;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.search-view-tab:hover {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.search-view-tab:focus-visible,
.vehicle-catalog :where(button, input, select, a):focus-visible {
  outline: 3px solid rgba(8, 167, 170, 0.32);
  outline-offset: 2px;
}

.search-view-tab.is-active {
  color: #fff;
  background: var(--teal-dark);
}

.vehicle-catalog[hidden],
#searchViewPanel[hidden],
.special-program-catalog[hidden],
.search-view-tab[hidden],
.vehicle-catalog__system[hidden],
.catalog-program-hints[hidden],
.source-quality[hidden] {
  display: none !important;
}

.vehicle-catalog {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--op-line, var(--line));
  border-radius: 6px;
  background: #fff;
}

.source-quality {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--op-line, var(--line));
  border-radius: 6px;
  background: #fff;
}

.special-program-catalog {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--op-line, var(--line));
  border-radius: 6px;
  background: #fff;
}

.special-program-catalog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.special-program-catalog__header h2 {
  margin: 3px 0 7px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.special-program-catalog__header p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.special-program-catalog__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.special-program-catalog__stats > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfb;
}

.special-program-catalog__stats strong,
.special-program-catalog__stats span {
  display: block;
}

.special-program-catalog__stats strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1;
}

.special-program-catalog__stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.special-program-catalog__filters {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfb;
}

.special-program-catalog__filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.special-program-catalog__filters label > span {
  color: #536268;
  font-size: 12px;
  font-weight: 800;
}

.special-program-catalog__filters input,
.special-program-catalog__filters select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
}

.special-program-catalog__search {
  grid-column: span 2;
}

.special-program-catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.special-program-catalog-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #cfe8e9;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 167, 170, 0.06), rgba(255, 255, 255, 0) 46px),
    #fff;
}

.special-program-catalog-card__top {
  display: grid;
  gap: 7px;
}

.special-program-catalog-card__top h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.special-program-catalog-card__company {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.special-program-catalog-card__benefit {
  padding: 11px 12px;
  border-radius: 7px;
  color: #00595d;
  background: #e8fbfb;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.special-program-catalog-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.special-program-catalog-card__meta div {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e1eeee;
  border-radius: 6px;
  background: #fbfdfd;
}

.special-program-catalog-card__meta span,
.special-program-catalog-card__meta strong {
  display: block;
}

.special-program-catalog-card__meta span {
  color: #607074;
  font-size: 11px;
  font-weight: 800;
}

.special-program-catalog-card__meta strong {
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.special-program-catalog-card__note {
  margin: 0;
  color: #516269;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.special-program-catalog-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.special-program-catalog-card__actions button,
.special-program-catalog-card__actions a {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.special-program-catalog-card__details,
.special-program-catalog-card__lead {
  border: 0;
  color: #fff;
  background: var(--teal-dark);
}

.special-program-catalog-card__source {
  border: 1px solid #b9dedf;
  color: var(--teal-dark);
  background: #fff;
}

.special-program-catalog-card__source:hover,
.special-program-catalog-card__details:hover,
.special-program-catalog-card__lead:hover {
  filter: brightness(0.96);
}

.source-quality__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.source-quality__header h2 {
  margin: 3px 0 7px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.source-quality__header p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.source-quality__back {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid #b9dedf;
  border-radius: 5px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 900;
  text-decoration: none;
}

.source-quality__status {
  padding: 12px 14px;
  border: 1px solid #cfe8e9;
  border-radius: 6px;
  color: #415158;
  background: #f8fbfb;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.source-quality__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.source-quality__card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce9ea;
  border-radius: 6px;
  background: #fbfdfd;
}

.source-quality__card span,
.source-quality__card strong,
.source-quality__card p {
  display: block;
}

.source-quality__card span {
  color: #536268;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-quality__card strong {
  margin: 8px 0 7px;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
}

.source-quality__card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.source-quality__card--ok {
  border-color: #ccebd8;
  background: #f4fff8;
}

.source-quality__card--warn {
  border-color: #f1d9aa;
  background: #fff9eb;
}

.source-quality__rules,
.source-quality__watch > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfb;
}

.source-quality__rules h3,
.source-quality__watch h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.source-quality__rules ul {
  margin: 0;
  padding-left: 20px;
  color: #405158;
  line-height: 1.55;
}

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

.source-quality__table {
  overflow-x: auto;
}

.source-quality__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.source-quality__table th,
.source-quality__table td {
  padding: 9px 8px;
  border-bottom: 1px solid #dce9ea;
  text-align: left;
}

.source-quality__table th {
  color: #536268;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-quality__table td {
  color: var(--ink);
  font-weight: 800;
}

.source-quality__empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.vehicle-catalog__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 20px;
}

.vehicle-catalog__header > .vehicle-catalog__stats {
  grid-column: 1 / -1;
  width: 100%;
}

.vehicle-catalog__header h2 {
  margin: 3px 0 7px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.vehicle-catalog__header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.vehicle-catalog__eyebrow {
  color: var(--teal-dark) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vehicle-catalog__status {
  justify-self: end;
  padding: 8px 11px;
  border: 1px solid #b9dedf;
  border-radius: 5px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 900;
}

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

.vehicle-catalog__stats > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfb;
}

.vehicle-catalog__stats strong,
.vehicle-catalog__stats span {
  display: block;
}

.vehicle-catalog__stats strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1;
}

.vehicle-catalog__stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.vehicle-catalog__showcase {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cfe8e9;
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 0%, rgba(14, 165, 166, 0.18), transparent 28%),
    linear-gradient(135deg, #f8fbfb 0%, #eefafa 100%);
}

.vehicle-catalog__showcase-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.vehicle-catalog__showcase-head h3,
.vehicle-catalog__quick-panels h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}

.vehicle-catalog__showcase-head h3 {
  margin-top: 2px;
  font-size: 19px;
}

.vehicle-catalog__showcase-head > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.vehicle-catalog__category-rail,
.vehicle-catalog__chip-rail {
  display: grid;
  gap: 10px;
}

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

.vehicle-catalog__category-card,
.vehicle-catalog__chip {
  --category-accent: var(--teal-dark);
  --category-soft: #eefafa;
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #d9eeee;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
}

.vehicle-catalog__category-card {
  grid-template-columns: auto 1fr;
  min-height: 76px;
  padding: 11px;
  border-radius: 10px;
  align-items: center;
}

.vehicle-catalog__category-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--category-accent);
  background: linear-gradient(135deg, var(--category-soft), #ffffff);
  box-shadow: inset 0 0 0 1px rgba(0, 128, 130, 0.14);
}

.vehicle-catalog__category-card[data-catalog-type="passenger"] {
  --category-accent: #0f9f9f;
  --category-soft: #e8fbfb;
}

.vehicle-catalog__category-card[data-catalog-type="commercial"] {
  --category-accent: #2563eb;
  --category-soft: #eaf1ff;
}

.vehicle-catalog__category-card[data-catalog-type="truck"] {
  --category-accent: #d97706;
  --category-soft: #fff3df;
}

.vehicle-catalog__category-card[data-catalog-type="trailer"] {
  --category-accent: #7c3aed;
  --category-soft: #f1eaff;
}

.vehicle-catalog__category-card[data-catalog-type="special"] {
  --category-accent: #059669;
  --category-soft: #e8f8ef;
}

.vehicle-catalog__category-card[data-catalog-type="bus"] {
  --category-accent: #dc2626;
  --category-soft: #ffecec;
}

.vehicle-catalog__category-card[data-catalog-type="agro"] {
  --category-accent: #4d7c0f;
  --category-soft: #eff8df;
}

.vehicle-catalog__category-card[data-catalog-type="equipment"] {
  --category-accent: #475569;
  --category-soft: #eef2f7;
}

.vehicle-catalog__category-icon svg {
  width: 30px;
  height: 30px;
}

.vehicle-catalog__category-card.is-active .vehicle-catalog__category-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.vehicle-catalog__optional-tools {
  border-top: 1px dashed #cfe8e9;
  padding-top: 8px;
}

.vehicle-catalog__optional-tools summary,
.vehicle-catalog__advanced-filters summary {
  min-height: 44px;
  width: fit-content;
  padding: 10px 13px;
  border: 1px solid #cfe8e9;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  cursor: pointer;
}

.vehicle-catalog__optional-tools[open] summary,
.vehicle-catalog__advanced-filters[open] summary {
  margin-bottom: 12px;
}

.vehicle-catalog__chip {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 999px;
}

.vehicle-catalog__category-card:hover,
.vehicle-catalog__chip:hover,
.vehicle-catalog__category-card.is-active,
.vehicle-catalog__chip.is-active {
  border-color: color-mix(in srgb, var(--category-accent) 52%, #ffffff);
  box-shadow: 0 10px 26px rgba(20, 77, 88, 0.08);
  transform: translateY(-1px);
}

.vehicle-catalog__category-card.is-active,
.vehicle-catalog__chip.is-active {
  color: #fff;
  background: var(--category-accent);
}

.vehicle-catalog__category-card strong,
.vehicle-catalog__category-card span,
.vehicle-catalog__chip strong,
.vehicle-catalog__chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-catalog__category-card strong,
.vehicle-catalog__chip strong {
  font-size: 14px;
  font-weight: 900;
}

.vehicle-catalog__category-card span,
.vehicle-catalog__chip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.vehicle-catalog__category-card.is-active span,
.vehicle-catalog__chip.is-active span {
  color: rgba(255, 255, 255, 0.78);
}

.vehicle-catalog__quick-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.vehicle-catalog__showcase-group {
  min-width: 0;
  border: 1px solid #d9eeee;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.vehicle-catalog__showcase-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.vehicle-catalog__showcase-group > summary::-webkit-details-marker {
  display: none;
}

.vehicle-catalog__showcase-group > summary::after {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.vehicle-catalog__showcase-group[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.vehicle-catalog__showcase-group > summary:focus-visible {
  outline: 3px solid rgba(0, 153, 160, 0.28);
  outline-offset: -3px;
}

.vehicle-catalog__showcase-group > .vehicle-catalog__category-rail,
.vehicle-catalog__showcase-group > .vehicle-catalog__chip-rail {
  margin: 0 12px 12px;
}

.vehicle-catalog__showcase-group > .vehicle-catalog__rail-toggle:not([hidden]) {
  margin: 0 12px 12px;
}

.vehicle-catalog__showcase-group--quick {
  grid-column: 1 / -1;
}

.catalog-featured {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #cfe8e9;
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 8%, rgba(245, 183, 72, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f5fbfb 100%);
}

/* Author CSS elsewhere uses grid for this section; retain the HTML hidden
   contract so an empty or unavailable featured result never exposes skeletons. */
.vehicle-catalog #catalogFeatured[hidden] {
  display: none !important;
}

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

.catalog-featured__head h3 {
  margin: 3px 0 5px;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
}

.catalog-featured__head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.catalog-featured__search-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #b9dedf;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.catalog-featured__toggle:not([hidden]),
.catalog-featured__retry,
.vehicle-catalog__rail-toggle:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  padding: 9px 14px;
  border: 1px solid #b9dedf;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.vehicle-catalog__showcase-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  padding: 9px 14px;
  border: 1px solid #b9dedf;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.catalog-featured__search-link:focus-visible,
.catalog-featured__toggle:focus-visible,
.catalog-featured__retry:focus-visible,
.vehicle-catalog__showcase-toggle:focus-visible,
.vehicle-catalog__rail-toggle:focus-visible {
  outline: 3px solid rgba(0, 153, 160, 0.28);
  outline-offset: 3px;
}

.catalog-featured__head > span {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  color: #6b4300;
  background: #fff2d2;
  font-size: 12px;
  font-weight: 900;
}

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

.catalog-featured__grid[data-expanded="false"] > .catalog-featured-card:nth-child(n + 4),
#catalogCategoryRail[data-expanded="false"] > :nth-child(n + 5),
#catalogBrandRail[data-expanded="false"] > :nth-child(n + 5),
#catalogModelRail[data-expanded="false"] > :nth-child(n + 5),
#catalogQuickRail[data-expanded="false"] > :nth-child(n + 3) {
  display: none;
}

.catalog-featured-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9eeee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 77, 88, 0.06);
}

/* Public top offers never reserve a portrait-sized blank tile.  A compact
   version is used until an exact-lot, verified asset can be rendered. */
.catalog-featured-card--no-photo {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-featured-card--no-photo .catalog-featured-card__body {
  padding: 14px 16px;
}

.catalog-featured-card__image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 156px;
  color: #607074;
  background: linear-gradient(135deg, #e8f8f8, #f8fbfb);
}

.catalog-featured-card__image::after {
  content: "Фото";
  font-size: 12px;
  font-weight: 900;
}

.catalog-featured-card__image img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-featured-card__body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 13px;
}

.catalog-featured-card__body h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 40px;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.32;
}

.catalog-featured-card__price {
  color: var(--teal-dark);
  font-size: 18px;
  line-height: 1.1;
}

.catalog-featured-card__body p {
  overflow: hidden;
  margin: 0;
  color: #536268;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-featured-card__badges,
.catalog-featured-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.catalog-featured-card__actions a,
.catalog-featured-card__actions button {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.catalog-featured-card__actions a {
  border: 0;
  color: #fff;
  background: var(--teal-dark);
}

.catalog-featured-card__actions button {
  border: 1px solid #b9dedf;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.catalog-skeleton-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d9eeee;
  border-radius: 10px;
  background: #fff;
}

.catalog-skeleton-card__image,
.catalog-skeleton-card__line {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef5f5 0%, #f9fcfc 45%, #eef5f5 90%);
  background-size: 220% 100%;
  animation: catalogSkeleton 1.15s ease-in-out infinite;
}

.catalog-skeleton-card__image {
  height: 130px;
}

.catalog-skeleton-card__line {
  height: 14px;
}

.catalog-skeleton-card__line--wide {
  width: 88%;
}

.catalog-skeleton-card__line--short {
  width: 46%;
}

.catalog-skeleton-card--compact {
  grid-template-columns: 110px 1fr;
  align-items: start;
}

.catalog-skeleton-card--compact .catalog-skeleton-card__image {
  grid-row: 1 / span 3;
  height: 132px;
}

@keyframes catalogSkeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.vehicle-catalog__quick-panels > div {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.vehicle-catalog__quick-panels h4 {
  font-size: 15px;
}

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

.vehicle-catalog__chip--wide {
  border-radius: 10px;
}

.vehicle-catalog__chip--collection {
  border-color: #b9dedf;
  background: linear-gradient(135deg, #f0fbfb 0%, #ffffff 72%);
}

.vehicle-catalog__chip--collection strong {
  color: var(--teal-dark);
}

.vehicle-catalog__chip--collection.is-active strong {
  color: inherit;
}

.vehicle-catalog__system {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfe8e9;
  border-radius: 6px;
  background: linear-gradient(135deg, #f8fbfb 0%, #eefafa 100%);
}

.vehicle-catalog__system-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.vehicle-catalog__system-head h3 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.vehicle-catalog__status-refresh {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #b9dedf;
  border-radius: 5px;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.vehicle-catalog__status-refresh:hover {
  background: var(--teal-soft);
}

.vehicle-catalog__status-refresh:disabled {
  cursor: wait;
  opacity: 0.62;
}

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

.vehicle-catalog__system-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9eeee;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.vehicle-catalog__system-card span,
.vehicle-catalog__system-card strong,
.vehicle-catalog__system-card small {
  display: block;
}

.vehicle-catalog__system-card span,
.vehicle-catalog__system-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.vehicle-catalog__system-card strong {
  overflow: hidden;
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-catalog__health {
  display: inline-block !important;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vehicle-catalog__health--pending {
  color: #5f4b02 !important;
  background: #fff5cc;
}

.vehicle-catalog__health--ok {
  color: #075c31 !important;
  background: #dff8ea;
}

.vehicle-catalog__health--warn {
  color: #8a3a0a !important;
  background: #fff0df;
}

.vehicle-catalog__filters {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(140px, 1fr));
  gap: 14px;
  padding: 20px;
  border: 1px solid #d4ecec;
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 153, 160, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f6fbfb 100%);
  box-shadow: 0 18px 48px rgba(10, 60, 64, 0.08);
}

.vehicle-catalog__filters-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 4px;
}

.vehicle-catalog__filters-head h3,
.vehicle-catalog__filters-head p {
  margin: 0;
}

.vehicle-catalog__filters-head h3 {
  margin-top: 3px;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.18;
}

.vehicle-catalog__filters-head > p {
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.vehicle-catalog__mobile-quick-search,
.vehicle-catalog__mobile-collections {
  display: none;
}

.vehicle-catalog__filters label {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-self: start;
  align-content: start;
}

.vehicle-catalog__filters label > span {
  color: #536268;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* City and radius retain their full labels at every grid breakpoint; wrapping
   is preferable to hiding a constraint that changes search behaviour. */
.vehicle-catalog__filter-primary > label > span,
.vehicle-catalog__radius-filter small {
  min-width: 0;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.vehicle-catalog__radius-filter small {
  color: #637278;
  font-size: 12px;
  line-height: 1.35;
}

.vehicle-catalog__filters input,
.vehicle-catalog__filters select {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #c9e1e2;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.25;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.vehicle-catalog__filters input:hover,
.vehicle-catalog__filters select:hover {
  border-color: #9ed3d5;
}

.vehicle-catalog__filters select:disabled {
  color: #718084;
  border-color: #d6e4e5;
  background-color: #f2f6f6;
  cursor: not-allowed;
  opacity: 0.78;
}

.vehicle-catalog__filters input:focus,
.vehicle-catalog__filters select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 153, 160, 0.12);
  outline: none;
}

.vehicle-catalog__search {
  grid-column: span 2;
}

/* Wide screens keep task, type, city and distance in one scan line.  The
   three-column breakpoint below deliberately wraps city + distance together,
   while the mobile breakpoint keeps the same controls in a single column. */
.vehicle-catalog__radius-filter {
  grid-column: auto;
  align-self: start;
}

.vehicle-catalog__filter-primary {
  display: contents;
}

.vehicle-catalog__filter-details {
  display: block;
  grid-column: 1 / -1;
  order: 1;
  min-width: 0;
}

.vehicle-catalog__filter-details > summary {
  display: none;
}

.vehicle-catalog__filter-details-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.vehicle-catalog__filter-details-content > label {
  order: initial;
}

.vehicle-catalog__advanced-filter {
  display: none !important;
}

.vehicle-catalog__advanced-filters {
  grid-column: 1 / -1;
}

.vehicle-catalog__advanced-filters summary {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #c9e8e9;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 60, 64, 0.06);
}

.vehicle-catalog__advanced-filters[open] summary {
  margin-bottom: 12px;
  background: #eefafa;
}

.vehicle-catalog__advanced-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.catalog-program-hints {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bfe8e8;
  border-radius: 10px;
  background: linear-gradient(135deg, #f7ffff 0%, #eefafa 100%);
}

.catalog-program-hints__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.catalog-program-hints__head h3,
.catalog-program-hints__head p,
.catalog-program-hints__card h4,
.catalog-program-hints__card p {
  margin: 0;
}

.catalog-program-hints__head h3 {
  margin-top: 2px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.catalog-program-hints__head p,
.catalog-program-hints__card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.catalog-program-hints__head button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cfe8e9;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.catalog-program-hints__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.catalog-program-hints__card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d9eeee;
  border-radius: 10px;
  background: #fff;
}

.catalog-program-hints__card h4 {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.catalog-program-hints__card strong {
  color: var(--teal-dark);
  font-size: 15px;
  line-height: 1.2;
}

.catalog-program-hints__statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-program-hints__status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #d2e3e4;
  border-radius: 999px;
  color: #4a6167;
  background: #f5f9f9;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.catalog-program-hints__status--exact {
  border-color: #8fd4bb;
  color: #176640;
  background: #eaf8f0;
}

.catalog-program-hints__status--analog {
  border-color: #efd28c;
  color: #805508;
  background: #fff7df;
}

.catalog-program-hints__status--verification {
  border-color: #bdd4ec;
  color: #1e5689;
  background: #eef6ff;
}

.catalog-program-hints__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-program-hints__actions button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cfe8e9;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #eefafa;
  font-weight: 900;
  cursor: pointer;
}

.vehicle-catalog__actions {
  grid-column: 1 / -1;
  order: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid #d8eeee;
}

.vehicle-catalog__submit-hint {
  max-width: 520px;
  margin: 0;
  color: #63757b;
  font-size: 14px;
  line-height: 1.45;
}

.vehicle-catalog__actions-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.vehicle-catalog__reset {
  min-height: 54px;
  min-width: 156px;
  padding: 12px 18px;
  border: 1px solid #c9e1e2;
  border-radius: 14px;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.vehicle-catalog__apply {
  min-height: 54px;
  min-width: 260px;
  padding: 12px 26px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #007f86 0%, #00aeb6 100%);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(0, 121, 128, 0.24);
  transition: box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.vehicle-catalog__apply:hover {
  filter: brightness(0.98);
  box-shadow: 0 18px 34px rgba(0, 121, 128, 0.3);
  transform: translateY(-1px);
}

.vehicle-catalog__apply:disabled {
  cursor: progress;
  filter: saturate(0.85);
  opacity: 0.78;
  transform: none;
}

.vehicle-catalog__reset:hover {
  border-color: #9ed3d5;
  background: var(--teal-soft);
  transform: translateY(-1px);
}

.vehicle-catalog__apply:active,
.vehicle-catalog__reset:active {
  transform: translateY(0);
}

.vehicle-catalog__apply:focus-visible,
.vehicle-catalog__reset:focus-visible,
.vehicle-catalog__advanced-filters summary:focus-visible,
.vehicle-catalog__filter-details summary:focus-visible {
  outline: 3px solid rgba(0, 153, 160, 0.28);
  outline-offset: 3px;
}

.vehicle-catalog__result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 28px;
}

.vehicle-catalog__result-head p,
.vehicle-catalog__sort small {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.vehicle-catalog__result-head h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}


.vehicle-catalog__result-head > #catalogResultStatus {
  max-width: 520px;
  margin: 0;
  text-align: right;
}

.vehicle-catalog__sort-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid #cfe8e9;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8ffff 0%, #f2fafa 100%);
}

.vehicle-catalog__sort-panel h3,
.vehicle-catalog__sort-panel p {
  margin: 0;
}

.vehicle-catalog__sort-panel h3 {
  margin-top: 3px;
  color: var(--ink);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.2;
}

.vehicle-catalog__sort-panel > div > p:last-child {
  max-width: 650px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.vehicle-catalog__sort {
  display: grid;
  gap: 5px;
  width: min(100%, 390px);
}

.vehicle-catalog__sort > span {
  color: #536268;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.vehicle-catalog__sort select {
  width: 100%;
  min-height: 48px;
  padding: 10px 38px 10px 13px;
  border: 1px solid #b8d9db;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.vehicle-catalog__sort select:hover {
  border-color: #83c5c8;
}

.vehicle-catalog__sort select:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 153, 160, 0.12);
}

.vehicle-catalog__sort small {
  font-size: 12px;
  line-height: 1.35;
}

.vehicle-catalog__quality-summary {
  min-height: 22px;
  margin-top: -6px;
  color: #506168;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.vehicle-catalog__loading,
.vehicle-catalog__empty {
  min-height: 180px;
  place-items: center;
  align-content: center;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  text-align: center;
  background: #fbfdfd;
}

.vehicle-catalog__loading:not([hidden]),
.vehicle-catalog__empty:not([hidden]) {
  display: grid;
}

.vehicle-catalog__loading span {
  width: 30px;
  height: 30px;
  border: 3px solid var(--teal-soft);
  border-top-color: var(--teal-dark);
  border-radius: 50%;
  animation: catalog-spin 0.8s linear infinite;
}

@keyframes catalog-spin {
  to {
    transform: rotate(360deg);
  }
}

.vehicle-catalog__empty h3 {
  margin: 0;
  font-size: 20px;
}

/* Responsive display rules must not show a pager for an empty/single page. */
.vehicle-catalog__pagination[hidden] {
  display: none;
}

.vehicle-catalog__empty p {
  max-width: 520px;
  margin: 6px 0 14px;
  color: var(--muted);
}

.vehicle-catalog__city-suggestions {
  width: min(100%, 620px);
  margin: 0 auto 2px;
}

.vehicle-catalog__city-suggestions-note {
  margin: 0 0 10px;
  color: #536268;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.vehicle-catalog__city-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.vehicle-catalog__empty .vehicle-catalog__city-suggestion {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #92ccce;
  border-radius: 999px;
  color: #005f63;
  background: #f2fcfc;
  font-size: 13px;
  font-weight: 900;
}

.vehicle-catalog__empty .vehicle-catalog__city-suggestion:hover {
  border-color: #0b858a;
  background: #dff7f7;
}

.vehicle-catalog__empty button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 800;
  cursor: pointer;
}

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

.catalog-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

/* Keep a photo-less result focused on the vehicle, price and next action.
   The photo status is still supplied by the card badge, so this is not a
   silent substitution or a fabricated visual. */
.catalog-card--no-photo {
  grid-template-rows: minmax(0, 1fr);
}

.catalog-card__image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  overflow: hidden;
  color: #607074;
  background:
    linear-gradient(135deg, rgba(8, 167, 170, 0.08), rgba(8, 167, 170, 0.01)),
    #eef5f5;
}

.catalog-card__image::after {
  content: "Фото уточним у источника";
  font-size: 13px;
  font-weight: 800;
}

.catalog-card__image[data-photo-state="unavailable"]::after {
  content: "Фото временно недоступно";
}

.catalog-card__image[data-photo-state="available"]::after,
.catalog-featured-card__image[data-photo-state="available"]::after,
.catalog-lot-dialog__image[data-photo-state="available"]::after {
  content: none;
}

.catalog-card__image img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef5f5;
}

.catalog-card__image img[data-failed="true"] {
  display: none;
}

.catalog-card__body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.catalog-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.catalog-card h3 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

/* A semantic title action exposes details without turning the entire card or
   its media into a nested interactive region. It inherits the heading's
   visual treatment while retaining a full keyboard/touch target. */
.catalog-card__title-button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.catalog-card__type {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 4px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 10px;
  font-weight: 900;
}

.catalog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #536268;
  font-size: 12px;
  font-weight: 800;
}

.catalog-card__meta span,
.catalog-card__meta strong {
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid #d9eeee;
  border-radius: 999px;
  background: #f7fbfb;
}

.catalog-card__meta strong {
  flex-basis: 100%;
  overflow: hidden;
  color: var(--teal-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-card__price {
  display: grid;
  gap: 3px;
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.catalog-card__price span,
.catalog-card__price strong,
.catalog-card__price small {
  display: block;
}

.catalog-card__price span {
  color: #607178;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.catalog-card__price strong {
  font-size: 22px;
  line-height: 1.1;
}

.catalog-card__price small {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
}

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

.catalog-card__economics div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d9eeee;
  border-radius: 6px;
  background: linear-gradient(135deg, #f2fbfb, #ffffff);
}

.catalog-card__economics span,
.catalog-card__economics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-card__economics span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-card__economics strong {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.catalog-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.catalog-card__badge--ok {
  color: #075c31;
  background: #dff8ea;
}

.catalog-card__badge--warn {
  color: #74470b;
  background: #fff0d8;
}

.catalog-card__badge--check {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.catalog-card__badge--neutral {
  color: #526168;
  background: #eef4f4;
}

.catalog-card__group-summary {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  appearance: none;
  cursor: pointer;
  padding: 7px 10px;
  border: 1px solid #bfe8e7;
  border-radius: 999px;
  color: #006d70;
  background: linear-gradient(135deg, #e9fbfb, #ffffff);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(0, 128, 128, 0.08);
}

.catalog-card__group-summary:hover,
.catalog-card__group-summary:focus-visible {
  border-color: #0aa6a6;
  color: #005f62;
  background: linear-gradient(135deg, #dff8f8, #ffffff);
  box-shadow: 0 10px 22px rgba(0, 128, 128, 0.14);
}

.catalog-card__source-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid #b9dedf;
  border-radius: 6px;
  background: linear-gradient(135deg, #eefafa, #ffffff);
}

.catalog-card__source-panel span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.catalog-card__source-panel strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-card__source-panel em {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.catalog-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.catalog-card__facts div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e5ecee;
  border-radius: 5px;
  background: #fafcfc;
}

.catalog-card__facts dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.catalog-card__facts dd {
  margin: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
}

.catalog-card__checking {
  margin: 0;
  padding: 9px 10px;
  border-left: 3px solid #d3a33f;
  color: #64440f;
  background: var(--yellow-soft);
  font-size: 12px;
  line-height: 1.45;
}

.catalog-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.catalog-card__actions a,
.catalog-card__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.catalog-card__actions a {
  border: 0;
  color: #fff;
  background: var(--teal-dark);
}

.catalog-card__actions .catalog-card__lead {
  border: 0;
  color: #fff;
  background: #151b1e;
}

.catalog-card__actions .catalog-card__details {
  border-color: #b9dedf;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.catalog-card__actions .catalog-card__disabled-source {
  color: #647278;
  background: #eef4f4;
  cursor: default;
}

.catalog-card__actions button {
  border: 1px solid var(--line-strong);
  color: var(--teal-dark);
  background: #fff;
}

.catalog-card__actions a:hover,
.catalog-card__actions button:hover {
  filter: brightness(0.96);
}

.vehicle-catalog__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.vehicle-catalog__pagination button {
  min-width: 96px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.vehicle-catalog__pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.vehicle-catalog__pagination span {
  min-width: 150px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.vehicle-catalog__boundary {
  padding: 14px 16px;
  border: 1px solid #ecd99e;
  border-radius: 6px;
  background: #fffaf0;
}

.vehicle-catalog__boundary strong {
  display: block;
  margin-bottom: 4px;
}

.vehicle-catalog__boundary p {
  margin: 0;
  color: #6b572a;
  font-size: 13px;
  line-height: 1.5;
}

.catalog-card__condition {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: #64440f;
  background: var(--yellow-soft);
  font-size: 11px;
  font-weight: 900;
}

.catalog-card__condition[data-condition="normal"] {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.catalog-lot-dialog {
  width: min(1080px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(18, 33, 39, 0.24);
}

.catalog-lot-dialog::backdrop {
  background: rgba(8, 23, 28, 0.48);
}

.catalog-lot-dialog__panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  max-height: min(820px, calc(100dvh - 34px));
  overflow: hidden;
  background: #fff;
}

.catalog-lot-dialog__media {
  min-height: 100%;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 15%, rgba(8, 167, 170, 0.16), transparent 34%),
    #eef5f5;
}

.catalog-lot-dialog__image {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: 10px;
  color: #607074;
  background: #f7fbfb;
}

.catalog-lot-dialog__image::after {
  content: "Фото уточним у источника";
  font-size: 14px;
  font-weight: 900;
}

.catalog-lot-dialog__image[data-photo-state="unavailable"]::after,
.catalog-featured-card__image[data-photo-state="unavailable"]::after {
  content: "Фото временно недоступно";
}

.catalog-lot-dialog__image img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-lot-dialog__image img[data-failed="true"] {
  display: none;
}

.catalog-photo-fallback {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 7px 9px;
  border-radius: 7px;
  color: #563d0f;
  background: rgba(255, 248, 222, 0.94);
  font-size: 12px;
  font-weight: 900;
}

.catalog-photo-gallery {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  touch-action: pan-y;
}

.catalog-photo-gallery > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7fbfb;
}

.catalog-photo-gallery__counter,
.catalog-photo-gallery__controls,
.catalog-photo-gallery__thumbnails {
  position: relative;
  z-index: 2;
}

.catalog-photo-gallery__counter {
  align-self: start;
  justify-self: start;
  margin: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #173e42;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 900;
}

.catalog-photo-gallery__controls {
  display: flex;
  align-self: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 10px;
  pointer-events: none;
}

.catalog-photo-gallery__control,
.catalog-photo-gallery__thumbnail {
  border: 2px solid #0b7175;
  background: #fff;
  cursor: pointer;
}

.catalog-photo-gallery__control {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #075e62;
  font-size: 31px;
  line-height: 1;
  pointer-events: auto;
}

.catalog-photo-gallery__thumbnails {
  display: flex;
  gap: 6px;
  align-self: end;
  max-width: 100%;
  padding: 10px;
  overflow-x: auto;
}

.catalog-photo-gallery__thumbnail {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  border-radius: 7px;
  opacity: 0.84;
}

.catalog-photo-gallery__thumbnail.is-unavailable {
  border-style: dashed;
  color: #617277;
  background: #f7fbfb;
}

.catalog-photo-gallery__thumbnail:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.catalog-photo-gallery__thumbnail-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 3px;
  color: #617277;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.catalog-photo-gallery__thumbnail.is-active { outline: 3px solid #f2bf3a; outline-offset: -3px; opacity: 1; }
.catalog-photo-gallery__thumbnail img { position: static; width: 100%; height: 100%; object-fit: cover; }
.catalog-photo-gallery:focus-visible,
.catalog-photo-gallery__control:focus-visible,
.catalog-photo-gallery__thumbnail:focus-visible { outline: 3px solid #0b7175; outline-offset: 3px; }

.catalog-lot-dialog__content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: min(820px, calc(100dvh - 34px));
  min-height: 0;
  overflow: hidden;
}

.catalog-lot-dialog__scroll {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px 22px 16px;
}

.catalog-lot-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.catalog-lot-dialog__head h2 {
  margin: 2px 0 6px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.12;
}

.catalog-lot-dialog__head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.catalog-lot-dialog__head button {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.catalog-lot-dialog__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.catalog-lot-dialog__facts div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e5ecee;
  border-radius: 7px;
  background: #fbfdfd;
}

.catalog-lot-dialog__facts strong,
.catalog-lot-dialog__facts span {
  display: block;
}

.catalog-lot-dialog__facts strong {
  margin-bottom: 4px;
  color: #536268;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.catalog-lot-dialog__facts span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.catalog-lot-dialog__finance {
  min-width: 0;
}

.catalog-lot-dialog__discount {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #b9dfe0;
  border-radius: 10px;
  color: #173f43;
  background: linear-gradient(135deg, #effafa, #fff 66%);
}

.catalog-lot-dialog__discount[data-state="verified"] {
  border-color: #84c7a5;
  background: linear-gradient(135deg, #edf9f2, #fff 68%);
}

.catalog-lot-dialog__discount-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-lot-dialog__discount h3,
.catalog-lot-dialog__discount p {
  margin: 0;
}

.catalog-lot-dialog__discount h3 {
  font-size: 18px;
  line-height: 1.2;
}

.catalog-lot-dialog__discount-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #dff3f3;
  font-size: 11px;
  font-weight: 900;
}

.catalog-lot-dialog__discount-copy {
  color: #52666b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.catalog-finance {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bfe5e6;
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, rgba(12, 166, 166, 0.13), transparent 34%),
    linear-gradient(135deg, #f1fbfb, #ffffff 58%, #fff9ec);
  box-shadow: 0 14px 36px rgba(6, 80, 82, 0.08);
}

.catalog-finance__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: start;
}

.catalog-finance__head span {
  display: block;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-finance__head h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.catalog-finance__head p,
.catalog-finance__foot {
  margin: 0;
  color: #54666b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

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

.catalog-finance__controls label {
  display: grid;
  gap: 6px;
}

.catalog-finance__controls label span {
  color: #526168;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-finance__controls select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #b9dedf;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 850;
}

.catalog-finance__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.catalog-finance__tile {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8eeee;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.catalog-finance__tile span,
.catalog-finance__tile strong,
.catalog-finance__tile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-finance__tile span {
  margin-bottom: 5px;
  color: #627278;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.catalog-finance__tile strong {
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
}

.catalog-finance__tile small {
  margin-top: 5px;
  color: #68777d;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
}

.catalog-finance__tax {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid #c7e6d7;
  border-radius: 10px;
  background: #f1faf6;
}

.catalog-finance__tax strong,
.catalog-finance__tax p {
  margin: 0;
}

.catalog-finance__tax strong {
  color: #176848;
  font-size: 14px;
  font-weight: 950;
}

.catalog-finance__tax p {
  color: #4f665c;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.catalog-finance__retry {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #0c7f85;
  border-radius: 8px;
  color: #0c6f74;
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.catalog-lot-dialog__source {
  padding: 12px 13px;
  border-left: 4px solid #d3a33f;
  border-radius: 7px;
  color: #64440f;
  background: var(--yellow-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.catalog-lot-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.catalog-lot-dialog__actions a,
.catalog-lot-dialog__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.catalog-lot-dialog__source-link {
  border: 1px solid var(--line-strong);
  color: var(--teal-dark);
  background: #fff;
}

.catalog-lot-dialog__internal-source {
  border: 1px solid #0c7f85;
  color: #fff;
  background: #0c7f85;
}

.catalog-lot-dialog__internal-source[hidden] {
  display: none !important;
}

.catalog-lot-dialog__internal-source-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #d8e7e9;
  border-radius: 6px;
  color: #53676c;
  background: #f7fbfb;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.catalog-lot-dialog__internal-source-status[data-state="verified"] {
  border-color: #b9dedf;
  color: #0c6f74;
  background: var(--teal-soft);
}

.catalog-lot-dialog__internal-source-status[data-state="warning"] {
  border-color: #ead3a0;
  color: #64440f;
  background: var(--yellow-soft);
}

.catalog-lot-dialog__internal-source-retry {
  border: 1px solid #0c7f85;
  color: #0c6f74;
  background: #fff;
}

.catalog-lot-dialog__internal-source-retry[hidden],
.catalog-lot-dialog__internal-source-status[hidden] {
  display: none !important;
}

.catalog-lot-dialog__lead {
  min-height: 50px;
  border: 0;
  border-radius: 7px;
  padding: 12px 16px;
  color: #fff;
  background: var(--teal-dark);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.catalog-lot-dialog__similar {
  border: 1px solid var(--line-strong);
  color: var(--teal-dark);
  background: #fff;
}

.catalog-lot-dialog__sticky-cta {
  display: grid;
  gap: 10px;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #d8e7e9;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -12px 28px rgba(17, 62, 70, 0.08);
  backdrop-filter: blur(12px);
}

.catalog-lot-dialog__sticky-cta p {
  margin: 0;
  color: #53676c;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.catalog-lead-dialog {
  width: min(560px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(18, 33, 39, 0.22);
}

.catalog-lead-dialog::backdrop {
  background: rgba(8, 23, 28, 0.42);
}

.catalog-lead-dialog__form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.catalog-lead-dialog__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.catalog-lead-dialog__head h2 {
  margin: 2px 0 0;
}

.catalog-lead-dialog__head button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.catalog-lead-dialog__lot {
  margin: 0;
  padding: 11px 12px;
  border-radius: 6px;
  color: #45545a;
  background: #f3f8f8;
  font-weight: 800;
}

.catalog-lead-dialog__notice {
  margin: -3px 0 0;
  padding: 10px 12px;
  border: 1px solid #ecd99e;
  border-radius: 6px;
  color: #64440f;
  background: var(--yellow-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.catalog-lead-dialog label {
  display: grid;
  gap: 6px;
}

.catalog-lead-dialog label > span {
  color: #536268;
  font-size: 12px;
  font-weight: 800;
}

.catalog-lead-dialog input,
.catalog-lead-dialog textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
}

.catalog-lead-dialog textarea {
  min-height: 92px;
  resize: vertical;
}

.catalog-lead-dialog__consent {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.catalog-lead-dialog__consent input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.catalog-lead-dialog__status {
  min-height: 20px;
  margin: 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.catalog-lead-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.catalog-lead-dialog__submit {
  min-height: 48px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
}

.catalog-lot-dialog :focus-visible,
.catalog-lead-dialog :focus-visible {
  outline: 3px solid #0b7175;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .vehicle-catalog__filters,
  .special-program-catalog__filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .vehicle-catalog__search,
  .special-program-catalog__search {
    grid-column: span 2;
  }

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

  /* At three columns city occupies the first column of the second row;
     distance remains directly beside it instead of opening a blank row. */
  .vehicle-catalog__radius-filter {
    grid-column: 2 / -1;
  }

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

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

  .vehicle-catalog__quick-panels {
    grid-template-columns: 1fr;
  }

  .catalog-lot-dialog__panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 38%) minmax(0, 1fr);
    height: min(820px, calc(100dvh - 34px));
  }

  .catalog-lot-dialog__media,
  .catalog-lot-dialog__image {
    min-height: 0;
    height: 100%;
  }

  .catalog-lot-dialog__content {
    min-height: 0;
    max-height: none;
  }

  .catalog-lot-dialog__actions {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  .vehicle-catalog__filter-details-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .search-view-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .search-view-tab {
    padding-inline: 10px;
  }

  .vehicle-catalog,
  .special-program-catalog,
  .source-quality {
    padding: 14px;
  }

  /* A phone needs one compact service switcher, not a select plus six
     duplicate navigation buttons before the catalogue starts. Keep this
     fallback here as well as in the shared shell so the catalogue remains
     usable if a shell stylesheet is delayed or cached separately. */
  body[data-op-service-page="search"] .service-navigation,
  body[data-op-service-page="search"] .product-tabs.service-navigation {
    position: static !important;
    display: block !important;
    min-height: 0;
    margin-bottom: 10px;
    padding: 6px;
    overflow: visible !important;
  }

  body[data-op-service-page="search"] .service-navigation .service-navigation__link,
  body[data-op-service-page="search"] .product-tabs.service-navigation .service-navigation__link {
    display: none !important;
  }

  body[data-op-service-page="search"] .service-navigation__mobile {
    display: block !important;
    width: 100%;
  }

  body[data-op-service-page="search"] .service-navigation__mobile-select {
    min-height: 46px;
    padding-right: 40px;
    border-color: #aac6c8;
    color: var(--teal-dark);
    background: #fff;
    font-size: 16px;
    font-weight: 800;
  }

  body[data-op-service-page="search"] .hero {
    margin-bottom: 10px;
  }

  body[data-op-service-page="search"] .hero-main {
    gap: 8px;
    padding: 10px 12px;
  }

  body[data-op-service-page="search"] .brand-row {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  body[data-op-service-page="search"] .brand-logo {
    width: 98px;
  }

  body[data-op-service-page="search"] .brand-subtitle {
    display: none;
  }

  body[data-op-service-page="search"] .hero-main h1 {
    font-size: 21px;
  }

  .vehicle-catalog__header { order: 1; }
  .catalog-featured { order: 2; }
  .vehicle-catalog__showcase { order: 3; }
  .vehicle-catalog__sort-panel { order: 4; }
  .vehicle-catalog__filters { order: 5; }
  .vehicle-catalog__result-head { order: 6; }
  .vehicle-catalog__quality-summary { order: 7; }
  .vehicle-catalog__loading,
  .vehicle-catalog__empty { order: 8; }
  .vehicle-catalog__grid { order: 9; }
  .vehicle-catalog__pagination { order: 10; }
  .catalog-program-hints { order: 11; }
  .vehicle-catalog__boundary { order: 12; }

  .vehicle-catalog__mobile-quick-search {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #b9dedf;
    border-radius: 18px;
    background: linear-gradient(135deg, #f6ffff 0%, #eefafa 100%);
    box-shadow: 0 12px 28px rgba(10, 60, 64, 0.07);
    scroll-margin-top: max(12px, env(safe-area-inset-top));
  }

  .vehicle-catalog__mobile-quick-fields {
    display: grid;
    gap: 10px;
  }

  .vehicle-catalog__mobile-quick-fields label {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  .vehicle-catalog__mobile-quick-fields label > span {
    color: #536268;
    font-size: 12.5px;
    font-weight: 800;
  }

  .vehicle-catalog__mobile-quick-fields input,
  .vehicle-catalog__mobile-quick-fields select {
    width: 100%;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid #9ed3d5;
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    font-size: 16px;
    line-height: 1.25;
  }

  .vehicle-catalog__mobile-quick-fields input:focus,
  .vehicle-catalog__mobile-quick-fields select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(0, 153, 160, 0.12);
    outline: none;
  }

  .vehicle-catalog__mobile-quick-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 8px;
  }

  .vehicle-catalog__mobile-quick-apply,
  .vehicle-catalog__mobile-filters-open {
    min-height: 48px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
    touch-action: manipulation;
  }

  .vehicle-catalog__mobile-quick-apply {
    border: 1px solid var(--teal-dark);
    color: #fff;
    background: var(--teal-dark);
  }

  .vehicle-catalog__mobile-filters-open {
    border: 1px solid #9ed3d5;
    color: var(--teal-dark);
    background: #fff;
  }

  .vehicle-catalog__mobile-filters-open:focus-visible,
  .vehicle-catalog__mobile-quick-apply:focus-visible {
    outline: 3px solid rgba(0, 153, 160, 0.28);
    outline-offset: 3px;
  }

  .vehicle-catalog__mobile-filters-open #catalogActiveFilterCount {
    display: inline-block;
    font-variant-numeric: tabular-nums;
  }

  .vehicle-catalog__mobile-collections {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #cfe8e9;
    border-radius: 18px;
    background: #fff;
  }

  .vehicle-catalog__mobile-collections h3 {
    margin: 2px 0 4px;
    font-size: 19px;
    line-height: 1.2;
  }

  .vehicle-catalog__mobile-collections p:last-child {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
  }

  .vehicle-catalog__mobile-collection-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .vehicle-catalog__mobile-collection-rail .vehicle-catalog__chip {
    min-height: 64px;
    border-radius: 12px;
  }

  .vehicle-catalog__header,
  .special-program-catalog__header,
  .source-quality__header,
  .vehicle-catalog__showcase-head,
  .vehicle-catalog__result-head,
  .vehicle-catalog__filters-head,
  .vehicle-catalog__sort-panel {
    display: grid;
  }

  .vehicle-catalog__result-head h3 {
    font-size: 21px;
  }

  .vehicle-catalog__sort {
    justify-items: stretch;
    width: 100%;
    max-width: none;
  }

  .vehicle-catalog__result-head > #catalogResultStatus {
    max-width: none;
    text-align: left;
  }

  .vehicle-catalog__status {
    justify-self: start;
  }

  .vehicle-catalog__header {
    gap: 10px;
  }

  .vehicle-catalog__header > .vehicle-catalog__stats {
    display: none;
  }

  .vehicle-catalog__header p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
  }

  .vehicle-catalog__stats,
  .special-program-catalog__stats,
  .vehicle-catalog__system-grid,
  .vehicle-catalog__filters,
  .vehicle-catalog__advanced-grid,
  .special-program-catalog__filters,
  .catalog-program-hints__grid,
  .vehicle-catalog__grid,
  .special-program-catalog__grid,
  .source-quality__grid,
  .source-quality__watch {
    grid-template-columns: 1fr;
  }

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

  .catalog-card__economics,
  .catalog-finance__head,
  .catalog-finance__controls,
  .catalog-finance__grid {
    grid-template-columns: 1fr;
  }

  .catalog-lot-dialog__discount-title {
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
  }

  .catalog-lot-dialog__discount-title h3,
  .catalog-lot-dialog__discount-badge {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .catalog-lot-dialog__discount-badge {
    box-sizing: border-box;
  }

  .catalog-finance {
    padding: 12px;
  }

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

  .vehicle-catalog__stats > div {
    padding: 10px 8px;
  }

  .vehicle-catalog__stats strong {
    font-size: 16px;
  }

  .vehicle-catalog__stats span {
    font-size: 10px;
    line-height: 1.2;
  }

  .vehicle-catalog__system-head {
    display: grid;
  }

  .catalog-program-hints__head {
    display: grid;
  }

  .vehicle-catalog__status-refresh {
    width: 100%;
  }

  .vehicle-catalog__search,
  .special-program-catalog__search {
    grid-column: auto;
  }

  .vehicle-catalog__filters {
    padding: 14px;
    border-radius: 18px;
  }

  .vehicle-catalog__filters-head {
    gap: 8px;
  }

  .vehicle-catalog__filters-head > p,
  .vehicle-catalog__sort-panel > div > p:last-child {
    max-width: none;
  }

  .vehicle-catalog__sort-panel {
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .vehicle-catalog__filter-primary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    order: 0;
  }

  .vehicle-catalog__radius-filter {
    grid-column: auto;
  }

  .vehicle-catalog__filter-details {
    display: block;
    grid-column: 1 / -1;
    order: 1;
  }

  .vehicle-catalog__filter-details > summary {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #c9e8e9;
    border-radius: 14px;
    color: var(--teal-dark);
    background: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(10, 60, 64, 0.05);
  }

  .vehicle-catalog__filter-details[open] > summary {
    margin-bottom: 14px;
    background: #eefafa;
  }

  .vehicle-catalog__filter-details-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vehicle-catalog__filter-details .vehicle-catalog__advanced-filter {
    display: grid !important;
  }

  .vehicle-catalog__actions {
    position: static;
    order: 2;
    display: grid;
    margin: 2px 0 0;
    padding: 14px 0 calc(2px + env(safe-area-inset-bottom));
    border-top: 1px solid #cce8e9;
    background: transparent;
  }

  .vehicle-catalog__submit-hint {
    max-width: none;
    font-size: 13px;
  }

  .vehicle-catalog__actions-buttons {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    width: 100%;
    margin-left: 0;
  }

  .vehicle-catalog__apply,
  .vehicle-catalog__reset {
    min-width: 0;
    width: 100%;
  }

  .vehicle-catalog__apply {
    padding-inline: 14px;
    font-size: 15px;
    white-space: nowrap;
  }

  .catalog-featured__grid[data-expanded="false"] > .catalog-featured-card:nth-child(n + 2) {
    display: none;
  }

  .catalog-featured {
    gap: 10px;
    padding: 12px;
  }

  .catalog-featured__head {
    display: block;
  }

  .catalog-featured__head h3 {
    margin: 0;
    font-size: 20px;
  }

  .catalog-featured__head > span,
  .catalog-featured__head p {
    display: none;
  }

  .vehicle-catalog .catalog-featured-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .vehicle-catalog .catalog-featured-card__image {
    min-height: 164px;
  }

  .catalog-featured-card__body {
    gap: 6px;
    padding: 10px;
  }

  .catalog-card {
    grid-template-rows: minmax(180px, 42vw) 1fr;
  }

  .catalog-card__actions {
    grid-template-columns: 1fr;
  }

  .catalog-card__source-panel {
    grid-template-columns: 1fr;
  }

  .catalog-lot-dialog__panel,
  .catalog-lot-dialog__content {
    max-height: calc(100dvh - 24px);
  }

  .catalog-lot-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .catalog-lot-dialog__panel {
    height: 100dvh;
    max-height: 100dvh;
  }

  .catalog-lot-dialog__content {
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .catalog-lot-dialog__panel {
    grid-template-rows: minmax(180px, 34dvh) minmax(0, 1fr);
  }

  .catalog-lot-dialog__scroll {
    padding: 16px 14px 14px;
  }

  .catalog-lot-dialog__sticky-cta {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .catalog-lot-dialog__media {
    padding: 12px;
  }

  .catalog-lot-dialog__image {
    min-height: 0;
    height: 100%;
  }

  .catalog-lot-dialog__facts {
    grid-template-columns: 1fr;
  }

  .catalog-lot-dialog__head {
    gap: 10px;
  }

  .vehicle-catalog__pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .vehicle-catalog__pagination span {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 360px) {
  .vehicle-catalog__mobile-collection-rail {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vehicle-catalog__loading span {
    animation: none;
  }

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

/* 2026-08-05: curated marketplace layer — faster first impression, less technical cards. */
.catalog-card {
  grid-template-rows: 176px 1fr;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(20, 77, 88, 0.05);
}

/* This must follow the late marketplace card track above.  A photo-less card
   has no media grid item, so its only row needs to grow with the body instead
   of reserving the generic cover height and clipping its actions. */
.catalog-card.catalog-card--no-photo {
  grid-template-rows: minmax(0, max-content);
}

.catalog-card__image {
  min-height: 176px;
}

.catalog-card__body {
  gap: 10px;
  padding: 15px;
}

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

.catalog-card__checking {
  padding: 8px 10px;
  border: 1px solid #d9eeee;
  border-radius: 999px;
  color: #536268;
  background: #f7fbfb;
  font-weight: 800;
}

.catalog-card__actions {
  grid-template-columns: 1.2fr 1fr;
}

.catalog-card__actions button:not(.catalog-card__lead):last-child {
  display: none;
}

.catalog-card__economics {
  display: none;
}

@media (max-width: 760px) {
  .catalog-featured__head,
  .catalog-featured-card {
    display: grid;
  }

  .catalog-featured__grid {
    grid-template-columns: 1fr;
  }

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

  .catalog-featured-card__image {
    min-height: 190px;
  }

  .catalog-skeleton-card--compact {
    grid-template-columns: 1fr;
  }

  .catalog-card {
    grid-template-rows: minmax(180px, 42vw) 1fr;
  }

  .catalog-card__facts,
  .catalog-card__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .catalog-lead-dialog {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: none;
  }

  .catalog-lead-dialog__form {
    min-width: 0;
    padding: 16px;
  }

  .catalog-lead-dialog__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-lead-dialog__actions > button {
    width: 100%;
    min-width: 0;
  }

  .catalog-lead-dialog__lot,
  .catalog-lead-dialog__notice,
  .catalog-lead-dialog__consent {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .catalog-lead-dialog :focus-visible {
    outline-offset: -3px;
  }
}

@media (max-width: 340px) {
  .vehicle-catalog {
    min-width: 0;
    overflow-x: clip;
  }

  .vehicle-catalog__stats,
  .vehicle-catalog__actions-buttons {
    grid-template-columns: minmax(0, 1fr);
  }

  .vehicle-catalog__stats > div,
  .vehicle-catalog__stats strong,
  .vehicle-catalog__stats span,
  .vehicle-catalog__filters,
  .vehicle-catalog__actions,
  .vehicle-catalog__actions-buttons,
  .vehicle-catalog__result-tools,
  .vehicle-catalog__sort {
    min-width: 0;
    max-width: 100%;
  }

  .vehicle-catalog__stats strong,
  .vehicle-catalog__stats span,
  .vehicle-catalog__showcase p,
  .vehicle-catalog__submit-hint {
    overflow-wrap: anywhere;
  }

  .vehicle-catalog__filters input,
  .vehicle-catalog__filters select,
  .vehicle-catalog__sort select,
  .vehicle-catalog__actions-buttons > button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* Unified public catalog: one entry surface, one modal scroll owner. */
body.catalog-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.catalog-natural-selection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #bfe5e6;
  border-radius: 12px;
  background: linear-gradient(135deg, #f1fbfb, #fff 66%);
}

.catalog-natural-selection label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.catalog-natural-selection label > span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.catalog-natural-selection input,
.catalog-natural-selection button {
  min-height: 48px;
  font: inherit;
}

.catalog-natural-selection input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.catalog-natural-selection button,
.catalog-lot-dialog__calculation {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.catalog-lot-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-height: min(760px, calc(100dvh - 48px));
  overflow: hidden;
}

.catalog-lot-dialog__panel {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  height: min(760px, calc(100dvh - 48px));
  max-height: min(760px, calc(100dvh - 48px));
}

.catalog-lot-dialog__media {
  align-self: start;
  min-height: 0;
}

.catalog-lot-dialog__image {
  height: auto;
  min-height: 0;
  max-height: min(560px, calc(100dvh - 84px));
  aspect-ratio: 4 / 5;
}

.catalog-lot-dialog__image img {
  object-fit: contain;
  background: #f7fbfb;
}

.catalog-lot-dialog__scroll {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

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

.catalog-finance__tile span,
.catalog-finance__tile strong,
.catalog-finance__tile small {
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  white-space: normal;
}

.catalog-finance__details {
  border-top: 1px solid #d8eeee;
}

.catalog-finance__details summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
}

.catalog-finance__details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 2px;
}

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

.catalog-lot-dialog__calculation {
  min-height: 46px;
  padding: 10px 12px;
}

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

.catalog-card__lead {
  grid-column: 1 / -1;
}

.catalog-card__calculation {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.catalog-card__actions button.catalog-card__calculation:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
}

/* CRM uses exact source links; keep status and retries readable on narrow cards. */
.catalog-card__actions .catalog-card__source-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.catalog-card__actions .catalog-card__source-link[aria-disabled="true"] {
  color: #536268;
  background: #eef4f4;
  cursor: default;
}

.catalog-card__actions button.catalog-card__source-retry:not([hidden]) {
  display: inline-flex;
  grid-column: 1 / -1;
}

.catalog-card__actions [hidden],
.catalog-lot-dialog__actions [hidden],
.catalog-lot-dialog__sticky-cta [hidden] {
  display: none !important;
}

.catalog-card__facts dd {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
  .catalog-lot-dialog {
    width: min(720px, calc(100vw - 28px));
    max-height: calc(100dvh - 28px);
  }

  .catalog-lot-dialog__panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 34dvh) minmax(0, 1fr);
    height: calc(100dvh - 28px);
    max-height: calc(100dvh - 28px);
  }

  .catalog-lot-dialog__media,
  .catalog-lot-dialog__image {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }
}

@media (max-width: 767px) {
  .catalog-natural-selection {
    grid-template-columns: 1fr;
  }

  .catalog-natural-selection button {
    width: 100%;
  }

  .catalog-lot-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .catalog-lot-dialog__panel {
    height: 100dvh;
    max-height: 100dvh;
    grid-template-rows: minmax(180px, 32dvh) minmax(0, 1fr);
  }

  .catalog-lot-dialog__actions,
  .catalog-finance__grid,
  .catalog-finance__details-grid {
    grid-template-columns: 1fr;
  }

  .catalog-lot-dialog__sticky-cta {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* Short landscape phones and compact tablets: keep card context visible before
   the persistent action bar. The regular tablet layout reserves too much room
   for the image at 812x375 and leaves the detail scroll area unusably small. */
@media (max-width: 1023px) and (max-height: 520px) and (orientation: landscape) {
  .catalog-lot-dialog {
    width: min(720px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
  }

  .catalog-lot-dialog__panel {
    grid-template-rows: minmax(104px, 29dvh) minmax(0, 1fr);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .catalog-lot-dialog__media {
    padding: 8px;
  }

  .catalog-lot-dialog__scroll {
    padding: 12px 14px;
  }

  .catalog-lot-dialog__sticky-cta {
    gap: 6px;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  }

  .catalog-lot-dialog__sticky-cta p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* A single, touch-friendly entry surface at the small phone widths used by managers and clients. */
@media (max-width: 420px) {
  .vehicle-catalog__showcase-head > span {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .vehicle-catalog__category-card,
  .vehicle-catalog__chip,
  .vehicle-catalog__advanced-filters summary,
  .vehicle-catalog__filter-details summary {
    min-height: 44px;
  }

  .vehicle-catalog__category-card {
    min-height: 64px;
  }

  .vehicle-catalog__quick-panels {
    gap: 16px;
  }
}

/* Catalog finance v2: keep public price/VAT, calculator state, and tax gate legible at every viewport. */
.catalog-featured-card__finance {
  color: #245057 !important;
  font-weight: 850 !important;
  line-height: 1.4;
  overflow: visible !important;
  overflow-wrap: anywhere;
  text-overflow: clip !important;
  white-space: normal !important;
}

.catalog-featured-card__tax {
  margin: 0;
  color: #176f58;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.catalog-featured-card__actions button {
  min-height: 44px;
}

.catalog-card__economics {
  display: grid;
  grid-template-columns: 1fr;
}

.catalog-card__economics strong {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.catalog-finance__price {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #9cd5d7;
  border-radius: 10px;
  background: #fff;
}

.catalog-finance__price span,
.catalog-finance__price small {
  color: #526168;
  font-size: 12px;
  font-weight: 850;
}

.catalog-finance__price strong {
  color: var(--teal-dark);
  font-size: clamp(22px, 4vw, 30px);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.catalog-finance__payment-result {
  min-width: 0;
}

.catalog-finance__manager-check {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid #d3a33f;
  border-radius: 7px;
  color: #64440f;
  background: var(--yellow-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.catalog-finance__retry:focus-visible,
.catalog-finance__controls select:focus-visible,
.catalog-lot-dialog__lead:focus-visible {
  outline: 3px solid #0b7175;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .catalog-card__economics,
  .catalog-finance__controls,
  .catalog-finance__grid,
  .catalog-finance__details-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-featured-card__actions,
  .catalog-card__actions,
  .catalog-lot-dialog__actions {
    gap: 8px;
  }

  .catalog-finance__price strong,
  .catalog-card__price strong {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 375px) {
  .catalog-lot-dialog__content,
  .catalog-lot-dialog__scroll,
  .catalog-finance,
  .catalog-finance__price,
  .catalog-finance__tile,
  .catalog-finance__tax,
  .catalog-finance__manager-check {
    min-width: 0;
    max-width: 100%;
  }

  .catalog-lot-dialog__head button,
  .catalog-finance__retry,
  .catalog-lot-dialog__calculation,
  .catalog-lot-dialog__similar,
  .catalog-lot-dialog__lead {
    min-height: 44px;
  }

  .catalog-photo-gallery__counter { max-width: calc(100% - 20px); overflow-wrap: anywhere; }
}

/* Content-first responsive shell. This is intentionally CSS-only: catalog.js
   remains the single owner of filters, special-program matching and lead/CRM
   contracts. */
html,
body.search-page {
  max-width: 100%;
  overflow-x: clip;
}

.vehicle-catalog[data-catalog-shell="content-first"],
.vehicle-catalog[data-catalog-shell="content-first"] > * {
  min-width: 0;
}

.vehicle-catalog[data-catalog-shell="content-first"] :where(button, summary, select, input) {
  touch-action: manipulation;
}

.vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__category-card,
.vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__chip,
.vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured-card__actions :where(a, button),
.vehicle-catalog[data-catalog-shell="content-first"] .catalog-program-hints__head button,
.vehicle-catalog[data-catalog-shell="content-first"] .catalog-program-hints__actions button {
  min-height: 44px;
}

.vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured__grid,
.vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__grid,
.vehicle-catalog[data-catalog-shell="content-first"] .catalog-program-hints__grid {
  grid-auto-flow: row;
  min-width: 0;
}

@media (min-width: 1024px) {
  .vehicle-catalog[data-catalog-shell="content-first"] {
    gap: 20px;
    padding: clamp(22px, 2.5vw, 34px);
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__showcase {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: start;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__showcase-head {
    grid-column: 1 / -1;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__category-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__quick-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.search-page .hero h1,
  body.search-page .brand-subtitle {
    display: none;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] {
    gap: 14px;
    padding:
      14px
      max(12px, env(safe-area-inset-right))
      calc(14px + env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__header,
  .vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured,
  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__result-head,
  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__filters {
    scroll-margin-top: max(12px, env(safe-area-inset-top));
  }

  /* The three intent controls and the apply action stay visible first; the
     secondary criteria become visible only after an explicit tap. */
  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__filter-details:not([open]) > .vehicle-catalog__filter-details-content {
    display: none;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__filter-details[open] > .vehicle-catalog__filter-details-content {
    display: grid;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__filter-details > summary {
    min-height: 54px;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__actions-buttons {
    gap: 8px;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured__grid,
  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__grid,
  .vehicle-catalog[data-catalog-shell="content-first"] .catalog-program-hints__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__status {
    display: none;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__header p {
    -webkit-line-clamp: 2;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__header > .vehicle-catalog__stats {
    display: block;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__stats > div {
    display: none;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__stats > div:last-child {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__stats > div:last-child strong,
  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__stats > div:last-child span {
    display: inline;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__stats > div:last-child span::after {
    content: ":";
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__stats > div:last-child span {
    order: 1;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__stats > div:last-child strong {
    order: 2;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured__head {
    display: grid;
    gap: 8px;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured__search-link {
    justify-self: start;
    min-height: 44px;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured__toggle:not([hidden]),
  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__showcase-toggle,
  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__rail-toggle:not([hidden]) {
    display: inline-flex;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__showcase-toggle {
    min-height: 44px;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__showcase[data-expanded="false"] > .vehicle-catalog__showcase-group,
  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__showcase[data-expanded="false"] > .vehicle-catalog__quick-panels {
    display: none;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__showcase-head > span {
    display: none;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__showcase-head h3 {
    font-size: 18px;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured-card__image {
    min-height: 168px;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] #catalogCategoryRail[data-expanded="false"] > :nth-child(n + 5),
  .vehicle-catalog[data-catalog-shell="content-first"] #catalogBrandRail[data-expanded="false"] > :nth-child(n + 5),
  .vehicle-catalog[data-catalog-shell="content-first"] #catalogModelRail[data-expanded="false"] > :nth-child(n + 5),
  .vehicle-catalog[data-catalog-shell="content-first"] #catalogQuickRail[data-expanded="false"] > :nth-child(n + 3) {
    display: none;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__quick-panels {
    gap: 10px;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__quick-panels > div[hidden] {
    display: none;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__sort-panel {
    grid-template-columns: minmax(92px, 0.65fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__sort-panel .vehicle-catalog__eyebrow,
  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__sort-panel > div > p:last-child,
  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__sort > span,
  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__sort small {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__sort-panel h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__sort select {
    min-height: 44px;
    font-size: 14px;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__actions {
    order: 1;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__filter-details {
    order: 2;
  }

  .vehicle-catalog[data-catalog-shell="content-first"] .vehicle-catalog__result-head {
    scroll-margin-top: 12px;
  }
}

/* Featured actual-lot clarity: show the whole object instead of squeezing a
   real landscape photo into a narrow portrait crop. */
.vehicle-catalog .catalog-featured-card--with-photo,
.vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured-card--with-photo {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}

.vehicle-catalog .catalog-featured-card--with-photo .catalog-featured-card__image,
.vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured-card--with-photo .catalog-featured-card__image {
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  background: #edf7f7;
}

.vehicle-catalog .catalog-featured-card--with-photo .catalog-featured-card__image img,
.vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured-card--with-photo .catalog-featured-card__image img {
  object-fit: contain;
}

.vehicle-catalog .catalog-featured-card__actions :where(a, button),
.vehicle-catalog[data-catalog-shell="content-first"] .catalog-featured-card__actions :where(a, button) {
  min-height: 44px;
}

/* Empty or exhausted media is status information, not a second detail column.
   Keep the existing message, gallery counter, scroll region and sticky actions;
   only compact the unused media area on browsers with relational-selector support. */
@supports selector(.catalog-lot-dialog__panel:has(.catalog-lot-dialog__image:empty)) {
  .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image:empty),
  .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image[data-photo-state="unavailable"]) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image:empty) .catalog-lot-dialog__media,
  .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image[data-photo-state="unavailable"]) .catalog-lot-dialog__media {
    align-self: start;
    min-height: 0;
    padding: 10px 22px 0;
  }

  .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image:empty) .catalog-lot-dialog__image,
  .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image[data-photo-state="unavailable"]) .catalog-lot-dialog__image {
    min-height: 64px;
    max-height: none;
    aspect-ratio: auto;
  }

  .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image:empty) .catalog-lot-dialog__image {
    height: 64px;
  }

  .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image[data-photo-state="unavailable"]) .catalog-photo-gallery {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image[data-photo-state="unavailable"]) .catalog-photo-gallery__counter {
    display: block;
    max-width: none;
    margin: 0;
  }

  @media (max-width: 767px) {
    .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image:empty) .catalog-lot-dialog__media,
    .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image[data-photo-state="unavailable"]) .catalog-lot-dialog__media {
      padding: 8px 14px 0;
    }

    .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image:empty) .catalog-lot-dialog__image,
    .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image[data-photo-state="unavailable"]) .catalog-lot-dialog__image {
      min-height: 56px;
    }

    .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image:empty) .catalog-lot-dialog__image {
      height: 56px;
    }
  }

  @media (max-width: 1023px) and (max-height: 520px) and (orientation: landscape) {
    .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image:empty) .catalog-lot-dialog__media,
    .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image[data-photo-state="unavailable"]) .catalog-lot-dialog__media {
      padding: 6px 14px 0;
    }

    .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image:empty) .catalog-lot-dialog__image,
    .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image[data-photo-state="unavailable"]) .catalog-lot-dialog__image {
      min-height: 48px;
    }

    .catalog-lot-dialog__panel:has(.catalog-lot-dialog__image:empty) .catalog-lot-dialog__image {
      height: 48px;
    }
  }
}
