.compare-component {
  margin: 0;
  font-family: Arial, sans-serif;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  /* 📱 Адаптив */
}
.compare-component .main-wrapper {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.compare-component .compare-item {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.compare-component .compare-block {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: ew-resize;
  user-select: none;
}
.compare-component .compare-block img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: fill;
  top: 0;
  left: 0;
  pointer-events: none;
}
.compare-component .after {
  clip-path: inset(0 50% 0 0);
}
.compare-component .slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  z-index: 10;
  transform: translateX(-50%);
}
.compare-component .handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  z-index: 11;
}
.compare-component .label {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  color: #333;
}
@media (max-width: 999px) {
  .compare-component .compare-item {
    flex: 1 1 calc(50% - 20px);
  }
}
@media (max-width: 599px) {
  .compare-component .compare-item {
    flex: 1 1 100%;
  }
  .compare-component .label {
    font-size: 16px;
  }
}

.compare-h2 h2 {
  font-size: 2em;
  margin-bottom: 1em;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  color: #0c276e;
}