.site-related {
  width: 100%;
  max-width: 1600px;
  margin: 30px auto;
  padding: 32px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #e7edf4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.035);
}

.site-related__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.site-related__title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.site-related__stage {
  position: relative;
  min-width: 0;
}

.site-related__swiper {
  width: 100%;
  padding: 2px;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 160ms ease;
}

.site-related.is-loading .site-related__swiper {
  opacity: 0;
  visibility: hidden;
}

.site-related__swiper .swiper-wrapper {
  align-items: stretch;
}

.site-related__swiper .swiper-slide {
  display: flex;
  height: auto;
  box-sizing: border-box;
}

.site-related__nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #2563eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}

.site-related__nav--prev {
  left: -22px;
}

.site-related__nav--next {
  right: -22px;
}

.site-related.is-loading .site-related__nav,
.site-related.is-fallback .site-related__nav {
  display: none;
}

.related-card {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #e7edf4;
  border-radius: 20px;
  background: #fff;
  user-select: none;
}

.related-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #fff;
}

.related-card__image-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.related-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.related-card__badges {
  position: absolute;
  top: 12px;
  right: 56px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.related-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.related-card__badge--blue {
  background: #e0f2fe;
  color: #0369a1;
}

.related-card__badge--green {
  background: #dcfce7;
  color: #166534;
}

.related-card__badge--red {
  background: #fee2e2;
  color: #b91c1c;
}

.related-card__badge--orange {
  background: #ffedd5;
  color: #9a3412;
}

.related-card__favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #e7edf4;
  border-radius: 999px;
  background: #fff;
  color: #94a3b8;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.related-card__favorite.active {
  color: #ef4444;
}

.related-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.related-card__meta {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.related-card__brand {
  max-width: 62%;
  overflow: hidden;
  padding: 4px 9px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.related-card__country {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}

.related-card__title {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 6px;
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card__title a {
  color: inherit;
  text-decoration: none;
}

.related-card__model {
  min-height: 18px;
  margin-bottom: 14px;
  color: #94a3b8;
  font-size: 11px;
}

.related-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 12px;
}

.related-card__spec {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-radius: 12px;
  background: #f8fafc;
}

.related-card__spec-icon {
  display: flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #fff;
  color: #2563eb;
  font-size: 12px;
}

.related-card__spec > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.related-card__spec small {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}

.related-card__spec strong {
  overflow: hidden;
  color: #1e293b;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-card__rating {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 11px;
}

.related-card__stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.related-card__footer {
  margin-top: auto;
}

.related-card__price {
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
}

.related-card__action {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.related-card__action--outline {
  border: 1px solid #2563eb;
  background: #fff;
  color: #2563eb;
}

.site-related__skeleton {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  background: #fff;
}

.site-related.is-loading .site-related__skeleton {
  display: grid;
}

.site-related__skeleton-card {
  padding: 16px;
  border: 1px solid #e7edf4;
  border-radius: 20px;
  background: #fff;
}

.site-related__skeleton-image,
.site-related__skeleton-line,
.site-related__skeleton-button {
  background: linear-gradient(90deg, #f1f5f9 25%, #e8eef5 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: related-shimmer 1.2s infinite;
}

.site-related__skeleton-image {
  margin-bottom: 16px;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
}

.site-related__skeleton-line {
  height: 14px;
  margin: 9px 0;
  border-radius: 7px;
}

.site-related__skeleton-line--short {
  width: 45%;
}

.site-related__skeleton-button {
  height: 44px;
  margin-top: 18px;
  border-radius: 12px;
}

.site-related__fallback-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.site-related__fallback-item {
  display: flex;
  min-width: 0;
}

@keyframes related-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 1023px) {
  .site-related {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .site-related__nav {
    display: none;
  }

  .site-related__skeleton,
  .site-related__fallback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .site-related__skeleton-card:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 639px) {
  .site-related {
    margin: 24px auto;
    padding: 20px 12px;
    border-radius: 18px;
  }

  .site-related__header {
    display: block;
    margin-bottom: 18px;
  }

  .site-related__title {
    width: 100%;
    font-size: 28px;
  }

  .site-related__skeleton,
  .site-related__fallback-grid {
    grid-template-columns: 1fr;
  }

  .site-related__skeleton-card:nth-child(n + 2) {
    display: none;
  }

  .related-card__body {
    padding: 16px;
  }

  .related-card__title {
    font-size: 16px;
  }

  .related-card__price {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-related__swiper {
    transition: none;
  }

  .site-related__skeleton-image,
  .site-related__skeleton-line,
  .site-related__skeleton-button {
    animation: none;
  }
}
