.comparison-main {
  width: min(1600px, 100%);
  min-height: calc(100vh - 142px);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 72px) clamp(18px, 4vw, 54px);
}

.comparison-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.comparison-heading h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.comparison-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.comparison-add,
.comparison-primary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  background: var(--forest);
  border-radius: 6px;
  font-weight: 800;
}

.comparison-empty {
  padding: clamp(36px, 8vw, 90px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.comparison-empty h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.comparison-empty p {
  max-width: 54ch;
  margin-right: auto;
  margin-bottom: 24px;
  margin-left: auto;
  color: var(--muted);
}

.comparison-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.comparison-picker button {
  min-height: 40px;
  padding: 0 12px;
  color: var(--forest-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 750;
}

.comparison-picker button[aria-pressed="true"] {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.comparison-scroll {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-grid {
  --model-count: 2;
  display: grid;
  grid-template-columns: 180px repeat(var(--model-count), minmax(250px, 1fr));
  min-width: calc(180px + var(--model-count) * 250px);
}

.comparison-cell {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.comparison-cell:nth-child(n) {
  overflow-wrap: anywhere;
}

.comparison-label {
  position: sticky;
  left: 0;
  z-index: 2;
  color: var(--muted);
  background: #f7f9f8;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.comparison-model {
  padding: 18px;
  background: #fff;
}

.comparison-model img {
  display: block;
  width: 100%;
  height: 190px;
  margin-bottom: 16px;
  object-fit: contain;
}

.comparison-model h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.comparison-model p {
  margin-bottom: 14px;
  color: var(--muted);
}

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

.comparison-model-actions a {
  color: var(--forest);
  font-weight: 800;
}

.comparison-remove {
  padding: 5px 0;
  color: #8b3c2f;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.comparison-value {
  font-weight: 700;
}

.comparison-value.is-different {
  background: #fff4d8;
}

.comparison-value small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 700px) {
  .comparison-heading {
    align-items: start;
    flex-direction: column;
  }

  .comparison-add {
    width: 100%;
  }

  .comparison-grid {
    grid-template-columns: 118px repeat(var(--model-count), minmax(220px, 1fr));
    min-width: calc(118px + var(--model-count) * 220px);
  }

  .comparison-cell,
  .comparison-model {
    padding: 13px;
  }

  .comparison-model img {
    height: 150px;
  }
}
