:root {
  color-scheme: light;
  --bg: #eef6ff;
  --panel: #ffffff;
  --line: #c9d8ea;
  --text: #111827;
  --muted: #5f6f86;
  --accent: #006fcf;
  --accent-strong: #0050a4;
  --money: #087f5b;
  --money-soft: #eefbf5;
  --money-line: #a9dbc7;
  --warn: #a15c00;
  --bad: #9f2d20;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body.modalOpen {
  overflow: hidden;
}

.app {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 24px;
}

.topbarRight {
  align-items: flex-end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

p {
  color: var(--muted);
  font-size: 13px;
  margin: 5px 0 0;
}

.toolbar,
.actions,
.tabs,
.filtersBand {
  align-items: center;
  display: flex;
  gap: 8px;
}

.iconBtn,
button,
select,
input {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  height: 36px;
}

.iconBtn {
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  width: 38px;
}

.favoriteToggle {
  background: #fff;
  color: var(--accent-strong);
  min-width: 132px;
}

.favoriteToggle.active {
  background: #fff8ed;
  border-color: #f8c471;
  color: #7c3f08;
}

.headerContacts {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.headerContactLink {
  align-items: center;
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  text-decoration: none;
}

.headerContactLink img {
  height: 20px;
  width: 20px;
}

.headerPhoneLink {
  gap: 8px;
  padding: 0 10px;
}

.headerMessengerLink {
  width: 34px;
}

.headerContactLink:hover {
  border-color: #9fc7f4;
  background: #eef6ff;
}

button {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0 14px;
}

.secondaryBtn {
  background: #fff;
  color: var(--accent-strong);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

select,
input {
  background: #fff;
  color: var(--text);
  min-width: 142px;
  padding: 0 8px;
}

.tabs {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 0 24px 12px;
}

.tab {
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.filtersBand {
  align-items: end;
  flex-wrap: wrap;
  padding: 16px 24px;
}

.filtersBand label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 5px;
}

.filterLabel {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 5px;
  position: relative;
}

.filtersBand input,
.filtersBand select {
  min-width: 164px;
}

.nativeSelectHidden {
  display: none !important;
}

#catalogBrand,
#catalogModel,
#catalogBrandSearch,
#catalogModelSearch,
#koreaBrand,
#koreaBrandSearch,
#koreaModel,
#koreaModelSearch,
#catalogSpecSearch,
#catalogSpecToggle,
#koreaSpecSearch,
#koreaSpecToggle,
#koreaSaleMethodSearch,
#koreaSaleMethodToggle {
  min-width: 260px;
}

.comboInput {
  background: #fff;
  color: var(--text);
  font-weight: 400;
}

.comboLine {
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) 28px;
  min-width: 294px;
}

.clearWrap {
  align-items: stretch;
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) 28px;
}

.clearWrap > input,
.clearWrap > select {
  min-width: 0;
  width: 100%;
}

.comboLine .comboInput {
  min-width: 0;
  width: 100%;
}

.comboClear,
.fieldClear {
  align-items: center;
  background: transparent;
  border-color: transparent;
  color: #7b8797;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  min-height: 38px;
  min-width: 28px;
  opacity: 0.46;
  padding: 0;
  transition: background-color 120ms ease, color 120ms ease, opacity 120ms ease;
}

.comboClear:disabled,
.fieldClear:disabled {
  opacity: 0;
  pointer-events: none;
}

.comboLine:hover .comboClear:not(:disabled),
.comboLine:focus-within .comboClear:not(:disabled),
.clearWrap:hover .fieldClear:not(:disabled),
.clearWrap:focus-within .fieldClear:not(:disabled) {
  opacity: 0.85;
}

.comboClear:hover:not(:disabled),
.fieldClear:hover:not(:disabled) {
  background: #eef6ff;
  border-color: #c9def7;
  color: var(--accent-strong);
  opacity: 1;
}

.selectLike {
  background: #fff;
  color: var(--text);
  font-weight: 400;
  min-width: 260px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multiPanel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.16);
  left: 0;
  max-height: 300px;
  min-width: 360px;
  overflow: auto;
  padding: 8px;
  position: absolute;
  top: 59px;
  z-index: 5;
}

.compactPanel {
  min-width: 260px;
}

.checkRow {
  align-items: center;
  color: var(--text);
  display: grid;
  font-size: 13px;
  gap: 8px;
  grid-template-columns: 16px minmax(0, 1fr);
  padding: 7px 6px;
}

.checkRow input {
  height: 16px;
  min-width: 16px;
  width: 16px;
}

.checkRow span {
  line-height: 1.25;
}

.emptyOption {
  color: var(--muted);
  font-size: 13px;
  padding: 8px;
}

.rangeInputs {
  display: grid;
  gap: 6px;
  grid-template-columns: 78px 78px;
}

.rangeInputs.hasClear {
  grid-template-columns: 78px 78px 28px;
}

.rangeInputs input {
  min-width: 0;
  width: 78px;
}

.catalogGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding: 0 24px 24px;
  transition: opacity 0.18s ease;
}

.catalogGrid.isLoading {
  opacity: 0.72;
}

#loadCatalogBtn.isLoading::before {
  animation: spin 0.8s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  height: 14px;
  display: inline-block;
  margin-right: 8px;
  width: 14px;
  vertical-align: -2px;
}

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

.loadMoreBand {
  display: flex;
  justify-content: center;
  padding: 0 24px 28px;
}

.loadMoreBand[hidden],
.loadMoreBand button[hidden] {
  display: none;
}

.carCard,
.empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.carCard {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.photoLink {
  background: #e8edf2;
  color: var(--muted);
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 0;
  position: relative;
}

.photoLink img,
.noPhoto {
  height: 100%;
  width: 100%;
}

.photoLink img {
  display: block;
  object-fit: cover;
  object-position: center center;
}

.saleBadge {
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  max-width: calc(100% - 18px);
  overflow: hidden;
  padding: 7px 9px;
  position: absolute;
  right: 8px;
  text-overflow: ellipsis;
  top: 8px;
  white-space: nowrap;
  z-index: 2;
}

.saleBadgeNormal {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #047857;
}

.saleBadgeWarning {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.noPhoto {
  align-items: center;
  display: flex;
  font-size: 12px;
  justify-content: center;
}

.cardBody {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.cardTop {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cardTitle {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.cardMeta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px 10px;
}

.cardMetaPower {
  color: #005aaa;
  font-weight: 600;
}

.cardMetaTech {
  color: #244d7a;
}

.sourceLink {
  background: #eef6ff;
  border: 1px solid #cfe5ff;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
  text-decoration: none;
  white-space: nowrap;
}

.cardQuickActions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.favoriteBtn {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: #9aa4b2;
  display: inline-grid;
  font-size: 17px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  place-items: center;
  padding: 0;
  width: 28px;
}

.favoriteIcon {
  display: block;
  line-height: 1;
}

.favoriteBtn.active {
  background: #fff8ed;
  border-color: #f8c471;
  color: #b45309;
}

.pricePanel {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.pricePanel > div {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
}

.pricePanel span,
.specGrid span,
.footerHint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.pricePanel strong {
  color: var(--accent-strong);
  font-size: 16px;
  line-height: 1.2;
}

.pricePanel small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.pricePanelTotal {
  background: var(--money-soft) !important;
  border-color: var(--money-line) !important;
}

.pricePanelTotal strong {
  color: var(--money);
}

.specGrid {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.specGrid > div {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
}

.specGrid b {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.detailBox {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #344054;
  display: grid;
  font-size: 12px;
  gap: 4px;
  line-height: 1.35;
  padding: 7px 8px;
}

.powertrainRaw {
  background: #f8fbff;
  border: 1px solid #cfe0f6;
  border-radius: 6px;
  color: #27415f;
  display: grid;
  font-size: 12px;
  gap: 6px;
  line-height: 1.35;
  padding: 8px;
}

.powertrainRawTitle {
  color: #18395f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.powertrainRawGrid {
  display: grid;
  gap: 4px 8px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.powertrainRawGrid span {
  color: inherit;
  opacity: 0.76;
}

.powertrainRawGrid b {
  color: #1d344f;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.che168FullSpecs {
  background: #f8fbff;
  border: 1px solid #cfe0f6;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 111, 207, 0.03);
  overflow: hidden;
}

.che168FullSpecs summary {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  color: #18395f;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  padding: 10px 12px;
}

.che168FullSpecs summary::-webkit-details-marker {
  display: none;
}

.che168FullSpecs summary::after {
  color: var(--muted);
  content: "Раскрыть";
  font-size: 12px;
  font-weight: 700;
}

.che168FullSpecs[open] summary {
  border-bottom: 1px solid var(--line);
}

.che168FullSpecs[open] summary::after {
  content: "Свернуть";
}

.che168FullSpecs summary span {
  background: #e5f2ff;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 11px;
  margin-left: auto;
  margin-right: 12px;
  padding: 2px 7px;
}

.che168FullSpecsBody {
  display: grid;
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding: 12px;
}

.che168SpecSection {
  display: grid;
  gap: 6px;
}

.che168SpecSection h4 {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  margin: 0;
}

.che168SpecRows {
  border: 1px solid #edf0f5;
  border-radius: 6px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
}

.che168SpecRows span,
.che168SpecRows b {
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
  padding: 8px 10px;
}

.che168SpecRows span:nth-child(4n + 1),
.che168SpecRows b:nth-child(4n + 2) {
  background: #f7f9fb;
}

.che168SpecRows span {
  color: #53627a;
}

.che168SpecRows b {
  color: #17202c;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: pre-line;
}

.inspectionSchemeLink {
  display: block;
  text-align: right;
}

.inspectionSchemeLink img {
  background: #fff;
  border: 1px solid #d9e4f2;
  border-radius: 6px;
  max-height: 220px;
  max-width: 100%;
  object-fit: contain;
  padding: 6px;
}

.damageScheme {
  display: grid;
  gap: 10px;
}

.damageSchemeGrid {
  display: grid;
  gap: 10px;
}

.damageSchemeCard {
  align-items: start;
  display: grid;
  gap: 8px;
}

.damageSchemeCard > span {
  color: #53627a;
}

.damageSchemeCanvas {
  background: #fff;
  border: 1px solid #d9e4f2;
  border-radius: 6px;
  display: block;
  justify-self: end;
  max-width: 230px;
  padding: 6px;
  position: relative;
}

.damageSchemeCanvas img {
  display: block;
  max-height: 220px;
  max-width: 100%;
  object-fit: contain;
}

.damageMarker {
  align-items: center;
  background: #dc2626;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.3);
  color: #fff;
  display: flex;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 24px;
}

.damageRows {
  background: #fff;
  border: 1px solid #e5edf7;
  border-radius: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 8px 12px;
  padding: 8px 10px;
}

.damageRows span {
  color: #53627a;
}

.damageRows b {
  color: #17202c;
  text-align: right;
}

.detailError {
  background: #fff7ed;
  color: var(--warn);
}

.landedBox {
  background: #f4f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #17324f;
  display: grid;
  font-size: 12px;
  gap: 6px;
  line-height: 1.35;
  padding: 8px;
}

.landedBox.needsReview {
  background: #fff8ed;
  border-color: #fed7aa;
  color: #7c3f08;
}

.mutedCost {
  background: #f7f9fb;
  border-color: var(--line);
  color: var(--muted);
}

.landedHead {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.landedHead span {
  color: inherit;
  font-weight: 700;
}

.landedHead strong {
  color: var(--accent-strong);
  font-size: 14px;
  text-align: right;
}

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

.costSections {
  display: grid;
  gap: 7px;
}

.costSection {
  border-top: 1px solid rgba(0, 80, 164, 0.14);
  display: grid;
  gap: 4px;
  padding-top: 7px;
}

.costSection:first-child {
  border-top: 0;
  padding-top: 0;
}

.costSectionTitle {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.costGrid span,
.costNote {
  color: inherit;
  opacity: 0.82;
}

.costGrid b {
  font-weight: 700;
  text-align: right;
}

.costGrid .costTotal {
  color: #143253;
  font-weight: 800;
  opacity: 1;
}

.costGrand {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 80, 164, 0.16);
  border-radius: 6px;
  padding: 7px 8px;
}

.costGrand .costGrid {
  gap: 4px 8px;
}

.costGrand span:last-of-type,
.costGrand b:last-of-type {
  color: var(--money);
  font-size: 13px;
  font-weight: 900;
  opacity: 1;
}

.costNote {
  font-size: 11px;
}

.costWarning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  color: #8a4b10;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 8px;
}

.powerCalcNote {
  align-items: center;
  background: #eef6ff;
  border: 1px solid #cfe5ff;
  border-radius: 6px;
  color: #1f3b57;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 8px;
}

.powerCalcNote span {
  font-size: 11px;
  font-weight: 700;
}

.powerCalcNote b {
  color: var(--accent-strong);
  font-size: 13px;
  text-align: right;
}

.cardFooter {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cardFooter strong {
  color: var(--accent-strong);
  font-size: 15px;
}

.footerHint {
  line-height: 1.25;
}

.priceBlock {
  display: grid;
  gap: 2px;
}

.priceBlock span {
  color: var(--muted);
  font-size: 12px;
}

.cardActions {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 32px;
  justify-content: stretch;
  min-width: 240px;
}

.detailBtn,
.viewBtn,
.koreaViewBtn,
.koreaLandedActionBtn,
.calcusCheckBtn {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  height: 30px;
  justify-content: center;
  line-height: 1;
  padding: 0 10px;
  white-space: nowrap;
}

.calcusCheckBtn {
  background: #fff7dc;
  border-color: #d7b957;
  color: #725700;
  font-size: 14px;
  font-weight: 900;
  padding: 0;
}

.calcusCheckBtn:hover:not(:disabled) {
  background: #ffedab;
  border-color: #b69321;
}

.calcusCheckBox {
  align-items: center;
  background: #fffaf0;
  border: 1px solid #ead69b;
  border-radius: 7px;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 8px;
  padding: 9px 11px;
}

.calcusCheckBox b {
  color: #725700;
  font-size: 12px;
}

.calcusCheckBox span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.calcusCheckBox small {
  color: var(--muted);
  font-size: 11px;
  grid-column: 1 / -1;
}

.calcusCheckMatch {
  background: #f1fbf4;
  border-color: #9dd3aa;
}

.calcusCheckDiff {
  background: #fff4f2;
  border-color: #e6aaa1;
}

.viewBtn {
  background: transparent;
  color: var(--accent-strong);
}

.landedActionBtn,
.koreaLandedActionBtn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 800;
  min-width: 0;
}

.landedActionBtn:hover,
.koreaLandedActionBtn:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.refreshCardBtn {
  background: #eef6ff;
  color: var(--accent-strong);
}

.cardFooter a {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}

.cardActions .cardOriginalLink {
  align-self: center;
  grid-column: 1 / -1;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

.empty {
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 22px;
}

.modal[hidden] {
  display: none;
}

.modal {
  inset: 0;
  position: fixed;
  z-index: 20;
}

.modalBackdrop {
  background: rgba(15, 23, 42, 0.54);
  inset: 0;
  position: absolute;
}

.modalPanel {
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.28);
  left: 50%;
  max-height: calc(100vh - 48px);
  max-width: 1040px;
  overflow: auto;
  padding: 18px;
  position: absolute;
  top: 24px;
  transform: translateX(-50%);
  width: calc(100vw - 48px);
}

.comparePanel {
  max-width: 1180px;
}

.modalClose {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: var(--text);
  display: flex;
  font-size: 22px;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  z-index: 1;
}

.modalHero {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.modalPhoto {
  background: #e8edf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 300px;
  overflow: hidden;
}

.modalPhoto img,
.modalPhoto .noPhoto {
  height: 100%;
  width: 100%;
}

.modalPhoto img {
  display: block;
  object-fit: cover;
}

.modalSummary {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-right: 34px;
}

.modalKicker {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.modalSummary h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.modalActions {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px 42px minmax(0, 1fr) minmax(0, 1fr);
}

.modalActions button,
.modalActions a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-strong);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 36px;
  padding: 8px 10px;
  text-decoration: none;
}

.modalActions button {
  width: 100%;
}

.modalActions .refreshDetailBtn {
  font-size: 19px;
  line-height: 1;
  padding: 0;
}

.modalActions .calcusCheckBtn {
  background: #fff7dc;
  border-color: #d7b957;
  color: #725700;
  font-size: 15px;
  padding: 0;
}

.modalActions .modalPdfBtn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.modalActions .modalPdfBtn:hover:not(:disabled) {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.modalActions .originalBtn {
  grid-column: 1 / -1;
  font-weight: 400;
}

.contactBox {
  display: grid;
  gap: 8px;
}

.contactLead {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.contactLink {
  align-items: center;
  background: #eef6ff;
  border: 1px solid #b8d8ff;
  border-radius: 6px;
  color: var(--accent-strong);
  display: flex;
  gap: 7px;
  justify-content: center;
  min-height: 36px;
  min-width: 0;
  padding: 7px 10px;
  text-decoration: none;
}

.contactLink img {
  display: block;
  height: 24px;
  width: 24px;
}

.contactLink b {
  color: inherit;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favoriteTextBtn.active {
  background: #fff8ed;
  border-color: #f8c471;
  color: #7c3f08;
}

.modalPlaceholder {
  background: #f7f9fb;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px;
}

.modalPlaceholder strong {
  color: var(--text);
}

.modalContentGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  margin-top: 14px;
}

.modalSection {
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.modalCostSection {
  background: #fbfefc;
  border-color: #cbead9;
}

.modalSectionHead {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.modalSectionHead span {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.modalSectionHead b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.modalSection .specGrid,
.modalSection .powertrainRaw,
.modalSection .landedBox {
  margin-top: 0;
}

.modalPanel > .detailBox,
.modalPanel > .specGrid,
.modalPanel > .landedBox,
.modalPanel > .modalPlaceholder {
  margin-top: 14px;
}

.compareHeader {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-right: 42px;
}

.compareHeader h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 4px 0 0;
}

.compareCount {
  background: #eef6ff;
  border: 1px solid #b8d8ff;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
}

.compareHeaderTools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.compareModeToggle {
  background: #f7fbff;
  border: 1px solid #cfe0f3;
  border-radius: 7px;
  display: inline-grid;
  grid-template-columns: auto auto;
  overflow: hidden;
}

.compareModeToggle button {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  height: 32px;
  padding: 0 12px;
  white-space: nowrap;
}

.compareModeToggle button + button {
  border-left: 1px solid #cfe0f3;
}

.compareModeToggle button.active {
  background: var(--accent);
  color: #fff;
}

.compareTableWrap {
  margin-top: 14px;
  overflow: auto;
}

.compareSummaryBar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.compareSummaryBar span {
  background: #f7fbff;
  border: 1px solid #cfe0f3;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 10px;
}

.compareSummaryBar b {
  color: var(--accent-strong);
}

.compareEmptyDiffs {
  margin-top: 14px;
}

.compareTable {
  min-width: 1040px;
}

.compareMatrixTable {
  min-width: 1120px;
  table-layout: fixed;
}

.compareTable th {
  position: static;
  vertical-align: top;
}

.compareTable td {
  font-size: 12px;
  line-height: 1.35;
  vertical-align: top;
}

.compareTable span {
  color: var(--muted);
}

.compareMatrixTable th:first-child,
.compareMatrixTable td:first-child {
  background: #fff;
  left: 0;
  position: sticky;
  z-index: 2;
}

.compareMatrixTable th:first-child {
  z-index: 3;
}

.compareSpecCol {
  width: 210px;
}

.compareSpecName {
  min-width: 210px;
}

.compareSpecName span {
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
}

.compareSpecName b {
  color: var(--text);
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.compareDiffRow td {
  background: #f0f7ff;
}

.compareDiffRow td:first-child {
  background: #e7f2ff;
}

.compareSameRow td {
  color: #50627a;
}

.compareMissing {
  color: #9aa9bb;
}

.compareCar {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 74px minmax(0, 1fr);
  min-width: 230px;
}

.compareCarHead {
  align-items: start;
  grid-template-columns: 74px minmax(0, 1fr);
  min-width: 250px;
}

.compareCar img {
  aspect-ratio: 4 / 3;
  background: #e8edf2;
  border-radius: 6px;
  object-fit: cover;
  width: 74px;
}

.compareCar b {
  display: block;
  line-height: 1.25;
}

.compareCarHead > .compareActions,
.compareCarHead > .compareLoadState {
  grid-column: 1 / -1;
}

.compareCar a {
  color: var(--accent-strong);
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
  text-decoration: none;
}

.compareActions {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
}

.compareActions button {
  height: 30px;
  padding: 0 10px;
  white-space: nowrap;
}

.compareLoadState {
  color: var(--muted);
  font-size: 12px;
}

.inputBand {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px 24px;
}

textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 13px/1.45 Consolas, "Courier New", monospace;
  min-height: 86px;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}

.tableWrap {
  overflow: auto;
  padding: 0 24px 24px;
}

table {
  background: var(--panel);
  border-collapse: collapse;
  border: 1px solid var(--line);
  min-width: 1180px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef1f5;
  color: #344054;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
}

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

.status {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
}

.status.ok {
  background: #e5f5ef;
  color: var(--accent-strong);
}

.status.api_not_loaded {
  background: #fff3db;
  color: var(--warn);
}

.status.unsupported {
  background: #fae7e3;
  color: var(--bad);
}

#toast {
  background: #111827;
  border-radius: 6px;
  bottom: 18px;
  color: white;
  display: none;
  font-size: 13px;
  left: 24px;
  max-width: calc(100vw - 48px);
  padding: 10px 12px;
  position: fixed;
}

.newEvHero {
  align-items: end;
  background:
    radial-gradient(circle at 78% 22%, rgba(75, 157, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #071d34, #123b65 62%, #0b6bc0);
  color: #fff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 210px;
  padding: 34px 40px;
}

.newEvHero h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.04em;
  margin: 8px 0 10px;
  max-width: 720px;
}

.newEvHero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
  max-width: 680px;
}

.newEvEyebrow {
  color: #8cc9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.newEvRate {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  min-width: 220px;
  padding: 14px 16px;
}

.newEvLayout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  padding: 20px 24px 36px;
}

.newEvCatalogPanel,
.newEvConfigurator {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.newEvCatalogPanel {
  align-self: start;
  overflow: hidden;
  position: sticky;
  top: 12px;
}

.newEvPanelHead {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.newEvPanelHead h3,
.newEvEmpty h3,
.newEvConfigurator h3 {
  margin: 0;
}

.newEvPanelHead span {
  color: var(--muted);
  font-size: 12px;
}

.newEvCatalog {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.newEvModelCard {
  background: #f7fbff;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 112px minmax(0, 1fr);
  height: auto;
  padding: 9px;
  text-align: left;
}

.newEvModelCard:hover,
.newEvModelCard.active {
  background: #eef7ff;
  border-color: #75b9f1;
}

.newEvModelCard img {
  background: #e9f0f7;
  border-radius: 9px;
  height: 78px;
  object-fit: cover;
  width: 112px;
}

.newEvModelCard strong,
.newEvModelCard small {
  display: block;
}

.newEvModelCard strong {
  font-size: 15px;
  margin-top: 4px;
}

.newEvModelCard small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}

.newEvConfigurator {
  min-height: 520px;
  overflow: visible;
}

.newEvEmpty {
  display: grid;
  min-height: 520px;
  place-content: center;
  text-align: center;
}

.newEvConfigHero {
  background: #edf6ff;
  border-radius: 14px 14px 0 0;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  padding: 22px;
}

.newEvMainImage {
  background: linear-gradient(145deg, #ddeaf5, #fff);
  border-radius: 14px;
  height: 290px;
  object-fit: contain;
  width: 100%;
}

.newEvVisualStage {
  position: relative;
}

.newEvVisualCaption {
  background: rgba(7, 29, 52, 0.86);
  border-radius: 9px;
  bottom: 10px;
  color: #fff;
  display: grid;
  gap: 2px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 8px 10px;
  position: absolute;
}

.newEvVisualCaption span {
  color: #8cc9ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.newEvVisualCaption b {
  font-size: 12px;
}

.newEvConfigTitle h2 {
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.035em;
  margin: 5px 0;
}

.newEvConfigTitle p {
  font-size: 14px;
  line-height: 1.5;
}

.newEvTrimSelect {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.newEvTrimSelect label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.newEvTrimSelect select {
  height: 44px;
  width: 100%;
}

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

.newEvSpec {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 10px;
  padding: 10px 12px;
}

.newEvSpec span,
.newEvSpec b {
  display: block;
}

.newEvSpec span {
  color: var(--muted);
  font-size: 11px;
}

.newEvSpec b {
  font-size: 14px;
  margin-top: 3px;
}

.newEvConfigBody {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  padding: 22px;
}

.newEvOptions {
  display: grid;
  gap: 16px;
}

.newEvOptionGroup {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(175px, 220px) minmax(0, 1fr);
  padding: 14px;
}

.newEvOptionGroup h4 {
  margin: 0;
}

.newEvGroupVisual {
  align-self: start;
  background: linear-gradient(145deg, #eaf3fb, #fff);
  border: 1px solid #d7e4ef;
  border-radius: 11px;
  overflow: hidden;
  position: sticky;
  top: 12px;
  z-index: 2;
}

.newEvGroupVisual img {
  display: block;
  height: 150px;
  object-fit: contain;
  width: 100%;
}

.newEvGroupVisual > div:not(.newEvGroupVisualEmpty) {
  background: #0d2945;
  color: #fff;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.newEvGroupVisual span {
  color: #8cc9ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.newEvGroupVisual b {
  font-size: 12px;
  line-height: 1.35;
}

.newEvGroupVisualEmpty {
  display: grid;
  gap: 5px;
  min-height: 150px;
  padding: 16px;
  place-content: center;
}

.newEvGroupVisualEmpty b {
  color: var(--muted);
}

.newEvGroupContent {
  min-width: 0;
}

.newEvGroupDescription {
  font-size: 12px;
  line-height: 1.45;
  margin: 5px 0 12px;
}

.newEvOptionValues {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.newEvOption {
  background: #fff;
  border: 1px solid #d7e2ed;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  min-height: 48px;
  padding: 11px;
}

.newEvOptionChoice {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 9px;
}

.newEvOption:has(input:checked) {
  background: #eef7ff;
  border-color: var(--accent);
}

.newEvOption input {
  height: 18px;
  margin-top: 2px;
  min-width: 18px;
  width: 18px;
}

.newEvOption.isIncluded {
  background: #f1faf6;
  border-color: #b7ddcc;
  cursor: default;
}

.newEvOption.isUnavailable {
  background: #f3f4f6;
  border-color: #e1e4e8;
  cursor: not-allowed;
  opacity: 0.58;
}

.newEvSwatch {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  flex: 0 0 22px;
  height: 22px;
}

.newEvOptionThumb {
  background: #edf3f8;
  border: 1px solid #dbe5ed;
  border-radius: 7px;
  flex: 0 0 58px;
  height: 46px;
  object-fit: contain;
  width: 58px;
}

.newEvOptionText {
  font-size: 12px;
  line-height: 1.3;
}

.newEvOptionText b {
  display: block;
}

.newEvOptionPrice {
  color: var(--money);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 3px;
}

.newEvOptionDescription,
.newEvOptionAvailability {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 7px;
}

.newEvOptionAvailability {
  color: var(--warn);
  font-weight: 700;
}

.newEvPreviewButton {
  align-self: end;
  background: #f1f7fd;
  border-color: #c9dced;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  height: 30px;
  justify-self: stretch;
}

.newEvCalculation {
  align-self: start;
  background: #f7fbff;
  border: 1px solid #cbdff0;
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 12px;
}

.newEvCalculation h3 {
  border-bottom: 1px solid #d9e6f1;
  padding: 15px 16px;
}

.newEvCalcRows {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.newEvCalcRow {
  align-items: baseline;
  display: flex;
  font-size: 12px;
  gap: 12px;
  justify-content: space-between;
}

.newEvCalcRow span {
  color: var(--muted);
}

.newEvCalcRow.total {
  border-top: 1px solid #cbdff0;
  font-size: 17px;
  margin-top: 5px;
  padding-top: 12px;
}

.newEvCalcRow.total span,
.newEvCalcRow.total b {
  color: var(--text);
}

.newEvOrder {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.newEvOrder button {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 800;
  height: 44px;
}

.newEvOrder small {
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 760px) {
  .topbar,
  .tabs,
  .filtersBand,
  .inputBand {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
  }

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

  .actions {
    flex-wrap: wrap;
  }

  .catalogGrid,
  .loadMoreBand,
  .tableWrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .pricePanel,
  .specGrid {
    grid-template-columns: 1fr;
  }

  .cardFooter {
    align-items: stretch;
    flex-direction: column;
  }

  .cardActions {
    justify-content: space-between;
  }

  .modalPanel {
    border-radius: 0;
    inset: 0;
    max-height: none;
    padding: 14px;
    top: 0;
    transform: none;
    width: 100vw;
  }

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

  .newEvHero {
    align-items: stretch;
    flex-direction: column;
    padding: 26px 16px;
  }

  .newEvLayout,
  .newEvConfigHero,
  .newEvConfigBody {
    grid-template-columns: 1fr;
  }

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

  .newEvGroupVisual {
    position: static;
  }

  .newEvLayout {
    padding: 14px;
  }

  .newEvCatalogPanel,
  .newEvCalculation {
    position: static;
  }

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

  .newEvMainImage {
    height: 220px;
  }

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

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

  .che168SpecRows b {
    padding-top: 0;
    text-align: left;
  }

  .modalPhoto {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .modalSummary {
    padding-right: 0;
  }

  .modalSummary h2 {
    font-size: 20px;
  }

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

  .topbarRight {
    align-items: stretch;
    justify-items: stretch;
    width: 100%;
  }

  .toolbar,
  .headerContacts {
    justify-content: flex-start;
    overflow-x: auto;
  }

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