/* Patch 07 — слайдер и улучшенная карточка объекта */

.object-slider {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  padding: 10px;
  margin-bottom: 28px;
  box-shadow: 0 10px 40px rgba(24,26,32,.05);
}

.slider-main {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--muted);
  height: 560px;
}

.slider-photo {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.slider-photo.active {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #181a20;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  transition: .2s;
}

.slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev {
  left: 18px;
}

.slider-btn.next {
  right: 18px;
}

.slider-counter {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(24,26,32,.78);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
}

.slider-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 108px;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 2px;
}

.thumb {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  height: 78px;
}

.thumb.active {
  border-color: var(--primary);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.object-info-card-v7 {
  padding: 30px;
}

.spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 34px;
}

.spec-table div {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.spec-table div:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.spec-table div:nth-last-child(1),
.spec-table div:nth-last-child(2) {
  border-bottom: 0;
}

.spec-table span {
  display: block;
  color: var(--muted-foreground);
  font-size: 13px;
  margin-bottom: 7px;
}

.spec-table b {
  font-size: 17px;
}

.contact-card-v7 {
  border-radius: 22px;
}

.detail-v7 .detail-title-row {
  align-items: flex-start;
}

.detail-v7 .detail-price {
  font-size: 38px;
  padding-top: 8px;
}

@media (max-width: 900px) {
  .slider-main {
    height: 430px;
  }

  .detail-v7 .detail-price {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .object-slider {
    border-radius: 16px;
    padding: 6px;
  }

  .slider-main {
    height: 330px;
    border-radius: 14px;
  }

  .slider-btn {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .slider-thumbs {
    grid-auto-columns: 82px;
  }

  .thumb {
    height: 62px;
  }

  .object-info-card-v7 {
    padding: 20px;
  }

  .spec-table {
    grid-template-columns: 1fr;
  }

  .spec-table div,
  .spec-table div:nth-child(odd) {
    border-right: 0;
  }

  .spec-table div:nth-last-child(2) {
    border-bottom: 1px solid var(--border);
  }
}
