.compare__title {
  margin-bottom: 1.2rem;
}

.compare__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.5rem, 1vw + 0.2rem, 0.75rem);
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(0.75rem, 1.5vw + 0.3rem, 1.25rem) 0;
}

.compare__tab {
  margin: 0;
}

.compare__tab-link {
  position: relative;
  cursor: pointer;
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
  line-height: 1;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 3rem;
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.6vw + 0.1rem, 0.5rem);
  user-select: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.compare__tab-link:hover {
  background-color: #ddd;
}

.compare__tab-link.is-active {
  background: #e6e6e6;
}

.compare__tab-count {
  opacity: 0.6;
  font-size: 0.85em;
}

.compare__tab-remove {
  padding: 0;
  margin-left: clamp(0.25rem, 0.5vw + 0.1rem, 0.375rem);
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  border-radius: 50%;
  width: clamp(1.125rem, 1vw + 0.5rem, 1.375rem);
  height: clamp(1.125rem, 1vw + 0.5rem, 1.375rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.compare__tab-remove:hover {
  background: rgba(255, 255, 255, 0.25);
}

.compare__tab-link:not(.is-active) .compare__tab-remove:hover {
  background: rgba(0, 0, 0, 0.08);
}

.compare__content {
  position: relative;
}

.compare__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 1vw + 0.2rem, 1rem);
  margin-bottom: clamp(0.75rem, 1.5vw + 0.3rem, 1.25rem);
  flex-wrap: wrap;
}

.compare__params {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw + 0.2rem, 1rem);
}

.compare__params-link {
  text-decoration: none;
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.compare__params-link:hover,
.compare__params-link.is-active {
  color: var(--blue);
}

.compare__params-link.is-active {
  font-weight: 600;
}

.compare__slider--top {
  position: sticky;
  top: 10px;
  z-index: 10;
  margin-bottom: clamp(0.5rem, 1vw + 0.2rem, 0.75rem);
}

.compare__slider .swiper {
  position: relative;
  overflow: hidden;
  padding: 0.25rem;
}

.compare__slider .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.compare__card-slide {
  display: flex;
  flex-direction: column;
}

.compare__char-slide {
  display: flex;
  flex-direction: column;
  gap: clamp(0.375rem, 0.8vw + 0.1rem, 0.625rem);
}

.compare__char {
  border-radius: clamp(0.5rem, 0.5vw + 0.3rem, 0.625rem);
  padding: clamp(0.5rem, 0.8vw + 0.2rem, 0.875rem)
    clamp(0.625rem, 1vw + 0.2rem, 0.875rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(3rem, 3vw + 1.5rem, 3.75rem);
}

.compare__char:nth-child(even of .compare__char:not(.is-hidden)) {
  background: #fff;
}

.compare__char:nth-child(odd of .compare__char:not(.is-hidden)) {
  background: #f0f0f0;
}

.compare__char-label {
  font-size: clamp(0.625rem, 0.6vw + 0.35rem, 0.75rem);
  color: #999;
  margin-bottom: 0.125rem;
  line-height: 1.2;
}

.compare__char-value {
  font-size: clamp(0.75rem, 0.7vw + 0.4rem, 0.9375rem);
  color: #222;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.compare__char-empty {
  color: #bbb;
}

.compare__char.is-hidden {
  display: none !important;
}

.compare__col--add {
  display: flex;
}

.compare__add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  width: 100%;
  min-height: 170px;
  box-sizing: border-box;

  background-color: var(--white);
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: clamp(0.75rem, 1vw + 0.5rem, 1rem);
  padding: clamp(1rem, 2vw + 0.5rem, 1.4rem);

  color: #666;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.compare__add:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.compare__add-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: inherit;
  transition: transform 0.15s ease;
}

.compare__add-icon svg {
  width: 15px;
  height: 15px;
}

.compare__add-title {
  font-size: 15px;
  font-weight: 600;
  color: inherit;
}

.compare__slider--top .swiper-button-prev,
.compare__slider--top .swiper-button-next {
  width: 2.5rem;
  height: 2.5rem;
  top: 50%;
  margin-top: -1.25rem;
  color: var(--color-black);
  padding: 0.9rem;
  background: var(--color-gray-60);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.compare__slider--top .swiper-button-prev::after,
.compare__slider--top .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}

.compare__slider--top .swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none !important;
}

.compare__empty {
  text-align: center;
  padding: clamp(2rem, 4vw + 1rem, 2.5rem) 0;
  color: #666;
  font-size: clamp(0.875rem, 0.8vw + 0.5rem, 1rem);
}

[x-cloak] {
  display: none !important;
}

@media (max-width: 56.25rem) {
  .compare__slider--top .swiper-button-prev,
  .compare__slider--top .swiper-button-next {
    display: none;
  }

  .compare__add {
    min-height: 220px;
  }
}
