/* Детальная страница объекта */

/* Детальная страница объекта недвижимости */
.object-top,
.object-bottom {
  display: grid;
  grid-template-columns: 1247fr 613fr;   /* пропорции макета при любой ширине */
  gap: 1.25rem;
  padding: 0 3.75rem;
}
.object-top { align-items: stretch; }
.object-bottom { align-items: start; margin-top: -2.5rem; }
.object-top__col { display: flex; flex-direction: column; gap: 1.25rem; }

/* Слайдер объекта */
.object-slider {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 15rem;                      /* 240 */
  min-height: 30.875rem;           /* 494 */
  padding: 1.25rem 0;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  overflow: hidden;
}
.object-slider__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.object-slider__photo--doc { object-fit: contain; background-color: #fff; }
/* position: absolute перебивает браузерное [hidden] — гасим явно */
.object-slider__photo[hidden] { display: none; }
.object-slider__arrows {
  position: relative;              /* ряд лежит поверх фотографии */
  display: flex;
  justify-content: space-between;
  padding: 0 2.5rem;               /* 40 */
}
.object-slider__arrow {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: none no-repeat center / 100% 100%;
  cursor: pointer;
  transition: transform .15s ease;
}
.object-slider__arrow--prev { background-image: url(../../../img/arrow-left.svg); }
.object-slider__arrow--next { background-image: url(../../../img/arrow-right.svg); }
.object-slider__arrow:hover { transform: scale(1.08); }
.object-slider__bars {
  position: relative;
  display: flex;
  justify-content: center;
  gap: .625rem;
  padding: 0 2.5rem;
}
.object-slider__bar {
  width: 4.75rem;                  /* 76 */
  height: .4375rem;                /* 7 */
  padding: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
  transition: background-color .2s ease;
}
.object-slider__bar.is-active { background: var(--orange); }

/* Лента миниатюÑ */
.object-thumbs { display: flex; gap: .625rem; height: 10.375rem; }
/* 166 */
.object-thumb {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  background: none;
  overflow: hidden;
  cursor: pointer;
}
.object-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.object-thumb:hover img,
.object-thumb:focus-visible img { opacity: .85; }

/* Плашка условий торгов */
.object-deal {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* кнопка прижата к низу растянутой плашки */
  gap: 2.5rem;                     /* 40 — минимальный просвет между группами */
  padding: 1.25rem;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  background: #0a1226;
}
.object-deal__price { display: flex; flex-direction: column; gap: .625rem; }
.object-deal__label {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.object-deal__sum { display: flex; align-items: flex-end; gap: 1.25rem; margin: 0; }
.object-deal__value {
  font-size: 2.5rem;               /* 40 Semibold */
  line-height: 1;
  font-weight: 600;
  color: var(--orange);
}
.object-deal__nds {
  font-size: 1.25rem;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.object-deal__rows { display: flex; flex-direction: column; gap: .9375rem; margin: 0; }
/* 15 */
.object-row { display: flex; gap: 2.5rem; font-size: 1.25rem; line-height: 1.2; }
.object-row__name { flex: 1 1 0; min-width: 0; margin: 0; color: rgba(255, 255, 255, .5); }
.object-row__value { flex: 1 1 0; min-width: 0; margin: 0; text-align: right; font-weight: 700; color: #fff; }
.object-deal__sep { height: 1px; background: rgba(255, 255, 255, .5); }

/* Плашка со сроками */
.object-dates {
  display: flex;
  gap: 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  background: #fff;
}
.object-date { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: .625rem; }
.object-date__icon { display: block; width: 2.5rem; height: 2.5rem; }
.object-date__text { display: flex; flex-direction: column; gap: .625rem; padding: .3125rem 0; }
.object-date__label {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25rem;
  text-transform: uppercase;
  color: rgba(10, 18, 38, .5);
}
.object-date__value { margin: 0; font-size: 1.75rem; line-height: 1.3; font-weight: 600; color: #0a1226; }

/* Описание имущества */
.object-desc {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: #fff;
}
.object-desc__title { margin: 0; font-size: 2.5rem; line-height: 1.2; font-weight: 400; color: #0a1226; }
.object-desc__lead { margin: 0; font-size: 1.25rem; line-height: 1.2; color: #0a1226; }
.object-grid {
  display: grid;
  /* minmax(0, 1fr): длинный кадастровый номер не должен растягивать колонку */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.object-fact {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  padding: .625rem;
  background: rgba(220, 230, 240, .5);
}
.object-fact--wide { grid-column: 1 / -1; }
.object-fact__label {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(10, 18, 38, .5);
}
.object-fact__value { margin: 0; font-size: 1.25rem; line-height: 1.2; font-weight: 600; color: #0a1226; }

/* Документы торгов */
.object-docs { display: flex; flex-direction: column; gap: .625rem; }
.object-doc {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: .625rem 1.25rem;
  border-left: .375rem solid var(--orange);
  border-radius: var(--radius);
  background: #fff;
}
.object-doc__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: .625rem; padding: .3125rem 0; }
.object-doc__title { margin: 0; font-size: 1.25rem; line-height: 1.25rem; font-weight: 600; color: #0a1226; }
.object-doc__date { margin: 0; font-size: 1rem; line-height: 1.25rem; color: rgba(10, 18, 38, .5); }
.object-doc__btns { flex: none; display: flex; gap: .625rem; }
.object-doc__format {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .375rem;
  background: #dce6f0;
  font-size: .875rem;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  color: #0a1226;
}
.object-doc__open,
.object-doc__down {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: no-repeat center / 1.25rem 1.25rem;
  transition: background-color .2s ease;
}
.object-doc__open { border: 1px solid #0a1226; background-image: url(../../../img/icon-doc-open.svg); }
.object-doc__down { border: 1px solid var(--orange); background-color: var(--orange); background-image: url(../../../img/icon-download.svg); }
.object-doc__open:hover { background-color: #dce6f0; }
.object-doc__down:hover { background-color: #f18f34; border-color: #f18f34; }
.object-doc[data-format="zip"] .object-doc__open,
.object-doc[data-format="doc"] .object-doc__open,
.object-doc[data-format="xls"] .object-doc__open { display: none; }

/* Планшет (< 1280) */
@media (max-width: 1279px) {
  .object-top,
  .object-bottom { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 0 1rem; }
  .object-bottom { margin-top: -1rem; }
  /* шаг между блоками 16, как внутри них */
  .object-top__col { gap: 1rem; }
  .object-slider { gap: 8rem; min-height: 22rem; }
  .object-slider__arrows { padding: 0 1.25rem; }
  .object-slider__arrow { width: 2.5rem; height: 2.5rem; }
  .object-slider__bar { width: 3.5rem; }
  .object-thumbs { height: 7rem; }
  .object-deal { gap: 1.5rem; }
  .object-deal__value { font-size: 2rem; }
  .object-deal__label,
  .object-deal__nds,
  .object-row { font-size: 1rem; }
  .object-row { gap: 1.25rem; }
  .object-deal__rows { gap: .75rem; }
  .object-dates { gap: 1.5rem; }
  .object-date__label { font-size: 1rem; line-height: 1.2; }
  .object-date__value { font-size: 1.25rem; }
  .object-desc { gap: 1rem; padding: 1.25rem; }
  .object-desc__title { font-size: 1.75rem; }
  .object-desc__lead { font-size: 1rem; }
  .object-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .object-fact__label { font-size: .8125rem; }
  .object-fact__value { font-size: 1rem; }
  .object-doc__title { font-size: 1rem; line-height: 1.2; }
  .object-doc__date { font-size: .8125rem; }
}

/* Мобильная (< 768): макет 632:10373 */
@media (max-width: 767px) {
  .object-top,
  .object-bottom { gap: 20px; padding: 0 20px; }
  .object-bottom { margin-top: 0; }
  .object-top__col { gap: 20px; }
  /* в макете кадр 427 при ширине 320 — держим ту же пропорцию */
  .object-slider { gap: 100px; min-height: 240px; padding: 12px 0; }
  .object-slider__arrows { padding: 0 12px; }
  .object-slider__arrow { width: 36px; height: 36px; }
  .object-slider__bars { gap: 6px; padding: 0 12px; }
  .object-slider__bar { width: 40px; height: 5px; }
  .object-thumbs { gap: 10px; height: 80px; }
  .object-deal { gap: 20px; padding: 20px; }
  .object-deal__label { font-size: 12px; line-height: 20px; }
  .object-deal__value { font-size: 26px; }
  .object-deal__nds { font-size: 12px; }
  .object-deal__rows { gap: 15px; }
  .object-row { gap: 20px; font-size: 14px; }
  .object-dates { gap: 20px; padding: 20px; }
  .object-date { gap: 10px; }
  .object-date__icon { width: 30px; height: 30px; }
  .object-date__text { gap: 5px; }
  .object-date__label { font-size: 12px; line-height: 20px; }
  .object-date__value { font-size: 14px; }
  .object-desc { gap: 20px; padding: 40px 20px; }
  .object-desc__title { font-size: 22px; }
  .object-desc__lead { font-size: 14px; line-height: 1.3; }
  .object-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .object-fact { gap: 5px; }
  .object-fact__label { font-size: 12px; }
  .object-fact__value { font-size: 14px; }
  .object-docs { gap: 10px; }
  /* на телефоне кнопки уходят под текст: в строку они не помещаются */
  .object-doc { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 20px; }
  .object-doc__title { font-size: 14px; line-height: 1.2; }
  .object-doc__date { font-size: 12px; line-height: 20px; }
  .object-doc__format,
  .object-doc__open,
  .object-doc__down { width: 36px; height: 36px; }
  .object-doc__format { font-size: 12px; }
}

/* Страница «Научно-техническое */
/* 50 + 10 = 60  → H1 на 1622 */
.object-slider--center { gap: 0; }
.object-slider--center .object-slider__arrows { flex: 1; align-items: center; }
