@font-face {
  font-family: 'Campton';
  src: url('fonts/4374campton.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Campton';
  src: url('fonts/647campton-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

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

body {
  font-family: 'Campton', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 19px;
  background: #fff;
  color: #1A1B1F;
  padding: 2rem;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.03125em;
}

#logo {
  display: block;
  margin: 1.5rem auto 4rem;
  width: 37%;
  max-width: 333px;
}

#bg-bars {
  position: fixed;
  left: 0;
  bottom: 0;
  width: clamp(100px, calc(100vw - 1110px), 400px);
  height: 100vh;
  background: url('back.svg') no-repeat left bottom / auto 100%;
  pointer-events: none;
  z-index: -1;
}

#bg-png {
  position: fixed;
  left: 0;
  bottom: 8px;
  transform: translateX(-20%);
  width: clamp(250px, calc(100vw - 1110px), 950px);
  aspect-ratio: 1500 / 952;
  background: url('hero_motors_sie.png') no-repeat left bottom / cover;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 1630px) {
  #bg-bars { display: none; }
  #bg-png { display: none; }
  #value-props { max-width: 85%; }
}

@media (max-width: 1200px) {
  #value-props { max-width: 95%; }
}

#partner-logo {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: block;
  cursor: pointer;
  width: clamp(180px, calc((100vw - 1110px) * 12 / 89 + 180px), 300px);
}
#partner-logo img {
  display: block;
  width: 100%;
  height: auto;
}

#app {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: clamp(108px, calc((100vw - 1110px) * 12 / 89 * 765 / 1276 + 108px), 180px);
  overflow-x: clip;
}

.filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

#value-props {
  margin: clamp(2rem, 3vw, 5rem) auto 0rem;
  max-width: 66.666%;
  position: relative;
  left: clamp(0rem, calc((100vw - 768px) * 0.11124), 6rem);
}

@media (max-width: 1630px) {
  #bg-bars { display: none; }
  #bg-png { display: none; }
  #value-props { max-width: 100%; }
}

#value-props h2 {
  font-size: 2.4rem;
  color: #004973;
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

#value-props ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#value-props li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

#vp-carousel {
  position: relative;
  margin-top: 2rem;
  min-height: 400px;
  cursor: pointer;
}

#vp-carousel .vp-slide {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateX(140px);
  transition: opacity 0.45s cubic-bezier(0, 0, 0.4, 1), transform 0.45s cubic-bezier(0, 0, 0.4, 1);
  pointer-events: none;
}

#vp-carousel .vp-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

#vp-carousel .vp-slide.exit {
  opacity: 0;
  transform: translateX(-200px);
  transition: opacity 0.4s cubic-bezier(0.5, 0, 1, 1), transform 0.4s cubic-bezier(0.5, 0, 1, 1);
}

#value-props .icon {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.9rem;
}

#value-props .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

#value-props .text {
  display: flex;
  flex-direction: column;
}

#value-props .text strong {
  font-size: 1.4rem;
  font-weight: 400;
  color: #1A1B1F;
}

#value-props .text span {
  font-size: 1.1rem;
  color: #747579;
  line-height: 1.5;
}
#value-props #total-stock {
  font-size: inherit;
  color: inherit;
}

#cta-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0 auto 3rem;
}

#cta-heading {
  flex: 0 0 100%;
  text-align: center;
  font-size: 2.4rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: -0.03125em;
  color: #004973;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.cta-note {
  flex: 0 0 100%;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 300;
  color: #999;
  margin-top: 0.3rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  background: #004973;
  color: #fff;
  text-decoration: none;
  font-family: 'Campton', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  border: none;
  transition: background 0.2s;
}

.cta-link:hover {
  background: #00365a;
}

.cta-link svg {
  flex-shrink: 0;
}

#reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.6rem;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  color: #555;
  align-self: stretch;
}

#reset-btn:hover {
  background: #f5f5f5;
  color: #1A1B1F;
}

.filter-row select {
  flex: 1;
  min-width: 140px;
  padding: 0.6rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0;
  font-family: 'Campton', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 1.6rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23333' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.5rem center;
  cursor: pointer;
  appearance: none;
  padding-right: 1.6rem;
}



table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th, td {
  padding: 0.5rem 0.6rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-size: clamp(0.75rem, 0.9vw, 1rem);
}

th:first-child, td:first-child {
  text-align: left;
}

th {
  color: #747579;
  white-space: nowrap;
  border-bottom: 1px solid #ccc;
}

tr:last-child td { border-bottom: none; }

.placeholder {
  text-align: center;
  color: #bbb;
  padding: 3rem 1rem;
}

.count {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #999;
}

.stock-low { color: #000; }
.stock-ok { color: inherit; }
.eff-hint { cursor: help; display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border: 2px solid #004973; border-radius: 50%; font-weight: 700; font-size: 0.85em; color: #004973; line-height: 1; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 0.2em; }
.eff-wrap { position: relative; display: inline-block; padding-right: 0.3em; }
.price-request { cursor: help; display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border: 2px solid #004973; border-radius: 50%; font-weight: 700; font-size: 0.85em; color: #004973; line-height: 1; }

.sortable { cursor: pointer; user-select: none; }
.sortable:hover { background: #f5f5f5; }
.sort-asc::after,
.sort-desc::after {
  content: '';
  display: inline-block;
  margin-left: 4px;
  border: 4px solid transparent;
  vertical-align: middle;
}
.sort-asc::after {
  border-bottom-color: #000;
  border-top: none;
}
.sort-desc::after {
  border-top-color: #000;
  border-bottom: none;
}

@media (max-width: 768px) {
  #app { display: flex; flex-direction: column; }
  #value-props { order: 1; }
  #results { order: 2; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 0.5rem; margin-bottom: 1rem; }
  #results table { min-width: 700px; }
  #cta-bar { order: 3; }
  #logo { width: 100%; max-width: 100%; }
  .filter-row select:first-child { flex: 0 0 100%; }
  .cta-link { flex: 1; justify-content: center; }
  #value-props h2 { font-size: 1.6rem; }
  #vp-carousel { min-height: 520px; }
}
