/* Страница проекта — дополняет app.css.
   Токены, сброс, шапка, кнопки, формы и футер берутся из app.css. */

.bt-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--bt-text-3); font-size: 14px; margin-bottom: 14px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.bt-back:hover { color: var(--bt-primary); }

/* ── Hero: галерея + сайдбар ── */
.bt-phero { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 24px; margin-bottom: 26px; }
/* без этого лента превью (23 × 88px) распирает колонку и даёт горизонтальный скролл */
.bt-phero > * { min-width: 0; }

.bt-gal {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 16/10; background: var(--bt-surface-2);
}
.bt-gal__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(28px) brightness(.6); transform: scale(1.12); pointer-events: none;
}
.bt-gal__img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.bt-gal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  color: #111; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.bt-gal__nav--prev { left: 14px; }
.bt-gal__nav--next { right: 14px; }
.bt-gal__count {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 12px; backdrop-filter: blur(8px);
}
.bt-gal__badge {
  position: absolute; left: 16px; top: 16px;
  background: rgba(17,19,24,.66); color: #EDEDE9; backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px;
}
.bt-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.bt-thumbs img {
  width: 88px; height: 58px; object-fit: cover; border-radius: 8px; cursor: pointer;
  flex-shrink: 0; opacity: .5; outline: 2px solid transparent;
  transition: opacity .15s, outline-color .15s;
}
.bt-thumbs img[aria-current="true"] { opacity: 1; outline-color: var(--bt-primary); }

.bt-pside {
  position: sticky; top: 78px; align-self: start;
  background: var(--bt-surface); border: 1px solid var(--bt-line);
  border-radius: 20px; padding: 22px;
}
.bt-pside__name { font-family: var(--bt-font-display); font-size: 22px; font-weight: 800; line-height: 1.2; margin-bottom: 4px; }
.bt-pside__tag { font-size: 13px; color: var(--bt-text-3); margin-bottom: 8px; }
.bt-pside__note { font-size: 11.5px; line-height: 1.55; color: var(--bt-text-3); margin: 8px 0 4px; }
.bt-pside__geo { font-size: 13px; color: var(--bt-text-2); margin-bottom: 16px; }
.bt-pside__price { font-family: var(--bt-font-display); font-size: 26px; font-weight: 800; color: var(--bt-text); line-height: 1.1; }
.bt-pside__sqm { font-size: 12px; color: var(--bt-text-3); margin-top: 4px; }
.bt-pside__rows { margin: 16px 0; border-top: 1px solid var(--bt-line); }
.bt-pside__row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--bt-line); font-size: 13px;
}
.bt-pside__row span { color: var(--bt-text-3); }
.bt-pside__row b { font-weight: 600; text-align: right; }

/* ── Быстрые факты ── */
.bt-facts-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 10px; margin-bottom: 26px; }
.bt-fr { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 14px; padding: 14px 16px; }
.bt-fr__v { font-family: var(--bt-font-display); font-size: 19px; font-weight: 800; }
.bt-fr__l { font-size: 11px; color: var(--bt-text-3); margin-top: 3px; }

/* ── Секции ── */
.bt-psec { margin-bottom: 34px; scroll-margin-top: 110px; }
.bt-psec > h2 { font-family: var(--bt-font-display); font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.bt-psec__sub { font-size: 13px; color: var(--bt-text-3); margin-bottom: 14px; }
.bt-prose { font-size: 15px; line-height: 1.75; color: var(--bt-text-2); white-space: pre-wrap; }

/* Имя проекта в сайдбаре это h1 страницы (до 27.08 h1 на карточке не было вовсе).
   Тег сменился, вид остался прежним: свои отступы заголовка снимаем, город рядом
   с именем набран тем же кеглем, но приглушён. */
h1.bt-pside__name { margin: 0; }
.bt-pside__city { font-weight: inherit; opacity: .62; }

/* ── Якорное меню ── */
.bt-anchors {
  position: sticky; top: 56px; z-index: 5;
  display: flex; gap: 6px; overflow-x: auto;
  background: var(--bt-bg); padding: 10px 0; margin-bottom: 20px;
  border-bottom: 1px solid var(--bt-line);
}
.bt-anchors button {
  flex-shrink: 0; font-size: 13px; padding: 7px 13px; border-radius: 50px; white-space: nowrap;
  border: 1px solid var(--bt-line); color: var(--bt-text-2);
  background: none; cursor: pointer; font-family: inherit;
}
.bt-anchors button:hover,
.bt-anchors button[aria-current="true"] {
  border-color: var(--bt-line-2); background: var(--bt-surface-3); color: var(--bt-text);
}

/* ── Преимущества ── */
.bt-advs { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 12px; }
.bt-adv { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 16px; padding: 16px 18px; }
.bt-adv__t { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.bt-adv__d { font-size: 13px; color: var(--bt-text-2); line-height: 1.6; }

/* ── Блоки ── */
.bt-blocks { display: grid; grid-template-columns: repeat(auto-fit,minmax(235px,1fr)); gap: 12px; }
.bt-block { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 16px; padding: 16px 18px; }
.bt-block--off { opacity: .6; }
.bt-block__h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bt-block__c {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--bt-surface-3); color: var(--bt-text-2);
  font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.bt-block__n { font-size: 13px; font-weight: 600; }
.bt-block__row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 4px 0; color: var(--bt-text-3); }
.bt-block__row b { font-weight: 600; color: var(--bt-text); }
.bt-block__note { font-size: 11px; color: var(--bt-text-3); margin-top: 9px; line-height: 1.5; }

/* ── Типы планировок ── */
.bt-types { display: grid; grid-template-columns: repeat(auto-fill,minmax(285px,1fr)); gap: 14px; }
.bt-type {
  background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
}
.bt-type__plan { aspect-ratio: 4/3; background: var(--bt-surface-2); display: flex; align-items: center; justify-content: center; }
.bt-type__plan img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.bt-type__none { font-size: 12px; color: var(--bt-text-3); }
.bt-type__b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bt-type__t { font-family: var(--bt-font-display); font-size: 16px; font-weight: 700; }
.bt-type__rows { font-size: 13px; color: var(--bt-text-3); }
.bt-type__rows div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.bt-type__rows b { color: var(--bt-text); font-weight: 600; }
.bt-type__p { font-family: var(--bt-font-display); font-size: 17px; font-weight: 700; color: var(--bt-text); margin-top: auto; }
.bt-type__note { font-size: 11px; color: var(--bt-text-3); line-height: 1.5; }

/* ── Цены по этажам ── */
.bt-floors {
  border: 1px solid var(--bt-line); border-radius: 14px; overflow: hidden;
  background: var(--bt-surface);
}
.bt-floor {
  display: grid; grid-template-columns: 56px minmax(80px,1fr) 118px 74px 108px;
  align-items: center; gap: 12px; width: 100%;
  padding: 9px 16px; border: 0; border-top: 1px solid var(--bt-line);
  background: none; color: var(--bt-text); font-family: inherit; font-size: 13px;
  text-align: left; cursor: pointer; transition: background .15s;
}
.bt-floor:first-child { border-top: 0; }
.bt-floor:not(.bt-floor--head):not([disabled]):hover { background: var(--bt-surface-2); }
.bt-floor[disabled] { opacity: .45; cursor: default; }
.bt-floor--head {
  background: var(--bt-surface-2); cursor: default;
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--bt-text-3); font-weight: 600;
}
.bt-floor__n { font-family: var(--bt-font-display); font-weight: 700; font-size: 15px; }
.bt-floor--head .bt-floor__n { font-family: inherit; font-weight: 600; font-size: 11px; }
.bt-floor__track { height: 8px; border-radius: 5px; background: var(--bt-surface-3); overflow: hidden; }
.bt-floor--head .bt-floor__track { background: none; }
.bt-floor__fill { display: block; height: 100%; background: var(--bt-text-3); opacity: .55; border-radius: 5px; }
.bt-floor__sqm { font-variant-numeric: tabular-nums; font-weight: 600; }
.bt-floor--head .bt-floor__sqm { font-weight: 600; }
.bt-floor__free { color: var(--bt-text-3); text-align: right; }
.bt-floor__from { font-variant-numeric: tabular-nums; color: var(--bt-text); font-weight: 600; text-align: right; }
.bt-floor--head .bt-floor__from,
.bt-floor--head .bt-floor__free { color: var(--bt-text-3); font-weight: 600; }

@media (max-width: 767px) {
  .bt-floor { grid-template-columns: 40px minmax(50px,1fr) 96px 92px; gap: 8px; padding: 9px 12px; font-size: 12px; }
  .bt-floor__free { display: none; }
}

/* ── Таблица квартир ── */
.bt-units__bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.bt-tablewrap { overflow-x: auto; border: 1px solid var(--bt-line); border-radius: 14px; }
.bt-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.bt-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--bt-text-3); font-weight: 600; padding: 11px 14px;
  background: var(--bt-surface-2); cursor: pointer; user-select: none; white-space: nowrap;
}
.bt-table th[data-sort]::after { content: ' ↕'; opacity: .35; }
.bt-table th[aria-sort="ascending"]::after { content: ' ↑'; opacity: 1; color: var(--bt-text); }
.bt-table th[aria-sort="descending"]::after { content: ' ↓'; opacity: 1; color: var(--bt-text); }
.bt-table td { padding: 10px 14px; border-top: 1px solid var(--bt-line); white-space: nowrap; }
.bt-table tbody tr:hover { background: var(--bt-surface-2); }
.bt-st { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.bt-st--free { background: var(--bt-success-soft); color: var(--bt-success); }
.bt-st--book { background: var(--bt-surface-3); color: var(--bt-text-2); }
.bt-st--sold { background: var(--bt-surface-3); color: var(--bt-text-3); }
/* тип, у которого свободных лотов не осталось: не прячем, но приглушаем */
.bt-type--out { opacity: .62; }
.bt-type--out:hover { opacity: 1; }
.bt-types__h3 { margin: 30px 0 0; font-size: 17px; font-weight: 700; }

/* не выставлено в открытую продажу: не продано и не забронировано */
.bt-st--unlisted { background: transparent; color: var(--bt-text-3); border: 1px solid var(--bt-line); }
.bt-units__more { margin-top: 12px; text-align: center; }
.bt-units__note { font-size: 12px; color: var(--bt-text-3); margin-top: 10px; line-height: 1.6; }

/* ── Инфраструктура ── */
.bt-amgroup { margin-bottom: 16px; }
.bt-amgroup__t { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--bt-text-3); font-weight: 600; margin-bottom: 8px; }
.bt-amlist { display: flex; flex-wrap: wrap; gap: 7px; }
.bt-amgroup__t span {
  display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 20px;
  background: var(--bt-surface-2); font-size: 11px; color: var(--bt-text-3);
}
/* Ключевые пункты карточкой с фото, остальные чипсами под ними */
.bt-amcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 10px; }
.bt-amc { margin: 0; border-radius: 12px; overflow: hidden; background: var(--bt-surface); border: 1px solid var(--bt-line); }
.bt-amc img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; cursor: zoom-in; }
.bt-amc figcaption { padding: 9px 12px 11px; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
@media (max-width: 700px) { .bt-amcards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

.bt-am { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 12px; padding: 8px 14px; font-size: 13px; }

/* ── Отделка ── */
.bt-fin { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 10px; }
.bt-fin__i { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 14px; padding: 14px 16px; }
.bt-fin__n { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.bt-fin__d { font-size: 12px; color: var(--bt-text-3); line-height: 1.5; }

/* ── Локация ── */
.bt-loc { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 16px; }
.bt-loc__map { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--bt-line); background: var(--bt-surface-2); }
.bt-loc__map img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.bt-dist { display: flex; flex-direction: column; gap: 8px; }
.bt-dist__i {
  background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 12px;
  padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px;
}
.bt-dist__i b { font-family: var(--bt-font-display); font-weight: 600; }

/* Карта: живой Leaflet поверх статичной подложки застройщика.
   Подложка не растягивается: у SportCity это 223×189, у Home 279×138, растянуть их
   на 830 px значит показать кашу. Поэтому картинка вписана по центру, а фон размыт. */
/* overflow обязателен: слои Leaflet выходят за контейнер и тянут горизонтальный скролл страницы */
.bt-map { position: relative; height: 340px; overflow: hidden; background: var(--bt-surface-2); }
.bt-map__still {
  position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain; opacity: .75;
}
.bt-map__wait {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  padding: 5px 12px; border-radius: 20px; background: var(--bt-surface);
  font-size: 11.5px; color: var(--bt-text-3);
}
.bt-map .leaflet-container { height: 100%; background: var(--bt-surface-2); }
.bt-loc__addr { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* Что рядом: список точек с значком. Значки текстовые, внешних наборов не тянем. */
.bt-near { margin-top: 18px; }
.bt-near__hd {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--bt-text-3); margin-bottom: 10px;
}
.bt-near__hd span { font-weight: 400; text-transform: none; letter-spacing: 0; }
.bt-near__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 2px 26px; }
.bt-near__i { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--bt-line); font-size: 13.5px; }
.bt-near__ic { flex: 0 0 18px; text-align: center; opacity: .8; }
.bt-near__n { min-width: 0; }
.bt-near__d { margin-left: auto; white-space: nowrap; font-weight: 600; color: var(--bt-text-2); font-variant-numeric: tabular-nums; }

/* ── Инвестиции ── */
.bt-inv { display: grid; grid-template-columns: repeat(auto-fit,minmax(235px,1fr)); gap: 12px; margin-bottom: 16px; }
.bt-inv__i { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 16px; padding: 18px 20px; }
.bt-inv__v { font-family: var(--bt-font-display); font-size: 24px; font-weight: 700; color: var(--bt-text); }
.bt-inv__t { font-size: 13px; font-weight: 600; margin-top: 2px; }
.bt-inv__d { font-size: 12px; color: var(--bt-text-3); margin-top: 6px; line-height: 1.5; }

.bt-growth { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; }
.bt-growth__bar { display: flex; align-items: flex-end; gap: 16px; height: 100px; margin: 22px 0 10px; }
.bt-growth__col {
  flex: 1; border-radius: 8px 8px 0 0; position: relative; min-height: 18px;
  background: var(--bt-text-3); opacity: .6;
}
.bt-growth__col span { position: absolute; top: -21px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--bt-text); }
.bt-growth__x { display: flex; gap: 16px; }
.bt-growth__x div { flex: 1; text-align: center; font-size: 11px; color: var(--bt-text-3); line-height: 1.4; }

.bt-calc { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 16px; padding: 20px; }
.bt-calc__in { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 14px; margin-bottom: 16px; }
.bt-calc__f label { display: block; font-size: 11px; font-weight: 600; color: var(--bt-text-3); margin-bottom: 6px; }
.bt-calc__v { font-size: 13px; font-weight: 600; margin-top: 5px; }
.bt-calc__out { border-top: 1px solid var(--bt-line); padding-top: 14px; }
.bt-calc__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; color: var(--bt-text-3); }
.bt-calc__row b { color: var(--bt-text); font-weight: 600; }
.bt-calc__row--tot { border-top: 1px solid var(--bt-line); margin-top: 6px; padding-top: 12px; }
.bt-calc__row--tot b { color: var(--bt-primary); font-family: var(--bt-font-display); font-weight: 800; font-size: 18px; }
.bt-calc__note { font-size: 11px; color: var(--bt-text-3); margin-top: 12px; line-height: 1.6; }
.bt-range { width: 100%; accent-color: var(--bt-primary); }

/* ── Доверие и документы ── */
.bt-trust { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 12px; }
.bt-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-doc {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 12px;
  padding: 10px 14px; font-size: 13px; color: var(--bt-text-2);
}
.bt-doc b { color: var(--bt-text); font-weight: 600; }

/* ── Лайтбокс ── */
.bt-lb { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.93); display: none; align-items: center; justify-content: center; }
.bt-lb[data-open="true"] { display: flex; }
.bt-lb img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.bt-lb__x, .bt-lb__nav { border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; position: absolute; }
.bt-lb__x { top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; }
.bt-lb__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; font-size: 22px; }
.bt-lb__nav--prev { left: 16px; }
.bt-lb__nav--next { right: 16px; }
.bt-lb__c { position: absolute; bottom: 18px; color: rgba(255,255,255,.6); font-size: 13px; }

/* ── Похожие ── */
.bt-similar { display: grid; grid-template-columns: repeat(auto-fill,minmax(255px,1fr)); gap: 14px; }

@media (max-width: 1024px) {
  .bt-phero { grid-template-columns: 1fr; }
  .bt-pside { position: static; }
  .bt-loc { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .bt-gal { border-radius: 14px; }
  .bt-gal__nav { display: none; }
  .bt-anchors { top: 48px; }
  .bt-psec > h2 { font-size: 18px; }
  .bt-pside__name { font-size: 20px; }
  .bt-table { min-width: 560px; }
  .bt-growth__bar { gap: 10px; }
}

/* начало смысловой группы разделов — тонкая линия вместо лишнего якоря */
.bt-psec--g { border-top: 1px solid var(--bt-line); padding-top: 30px; margin-top: 34px; }

/* ── свёрнутые разделы ── */
.bt-fold { border: 1px solid var(--bt-line); border-radius: 12px; background: var(--bt-surface); }
.bt-fold + .bt-fold { margin-top: 10px; }
.bt-fold__s {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer;
  font-family: var(--bt-font-display); font-weight: 600; font-size: 14px;
  color: var(--bt-text-2); list-style: none; user-select: none;
}
.bt-fold__s::-webkit-details-marker { display: none; }
.bt-fold__s::after {
  content: '⌄'; margin-left: auto; font-size: 15px; line-height: 1;
  color: var(--bt-text-3); transition: transform .2s;
}
.bt-fold[open] > .bt-fold__s::after { transform: rotate(180deg); }
.bt-fold__s:hover { color: var(--bt-text); }
.bt-fold[open] > .bt-fold__s { border-bottom: 1px solid var(--bt-line); color: var(--bt-text); }
.bt-fold__n {
  padding: 2px 8px; border-radius: 999px; background: var(--bt-surface-3);
  font-size: 11px; font-weight: 600; color: var(--bt-text-3);
}
.bt-fold__b { padding: 16px; }
.bt-fold__b > .bt-amgroup:first-child { margin-top: 0; }


/* ── Застройщик ── */
/* display задаём явно: у секций раздела есть общее правило на прямых потомков */
.bt-dev { display: block; background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: var(--bt-r-card); padding: 18px 20px; }
.bt-dev__hd { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.bt-dev__logo { height: 28px; width: auto; }
.bt-dev__id { min-width: 0; }
.bt-dev__n { font-family: var(--bt-font-display); font-weight: 800; font-size: 17px; line-height: 1.2; }
.bt-dev__tag { font-size: 12.5px; color: var(--bt-text-2); }
.bt-dev__site { margin-left: auto; font-size: 13px; color: var(--bt-primary); white-space: nowrap; }
/* Одна полоса плиток, а не две колонки разной высоты: секция читается за пять секунд */
.bt-dev__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.bt-dev__tile { padding: 12px 14px; border-radius: 12px; background: var(--bt-surface-2); border: 1px solid var(--bt-line); }
.bt-dev__v { font-family: var(--bt-font-display); font-weight: 800; font-size: 22px; line-height: 1; color: var(--bt-primary); }
.bt-dev__badge { display: block; height: 28px; width: auto; margin-bottom: 4px; }
.bt-dev__tile--award .bt-dev__k { font-weight: 700; }
.bt-dev__tile--plain .bt-dev__k { color: var(--bt-text-3); }
.bt-dev__k { margin-top: 6px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.bt-dev__d { margin-top: 3px; font-size: 11.5px; line-height: 1.45; color: var(--bt-text-3); }
.bt-dev__why1 { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--bt-text-2); max-width: 78ch; }
.bt-dev__why1 b { color: var(--bt-text); }
.bt-dev__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.bt-dev__foot .bt-fold { flex: 1 1 240px; margin: 0; }
.bt-fold--dev { margin-top: 0; }
.bt-dev__desc { margin: 0 0 12px; font-size: 13.5px; line-height: 1.65; color: var(--bt-text-2); max-width: 78ch; }

.bt-dev__docsT { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bt-text-3); margin-bottom: 9px; }
.bt-dev__docsL { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.bt-dev__docsL span { padding: 6px 12px; border-radius: 20px; background: var(--bt-surface-2); border: 1px solid var(--bt-line); font-size: 12.5px; }


/* ── Отделка ── */
.bt-fincs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.bt-finc { display: flex; flex-direction: column; min-width: 0; background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: var(--bt-r-card); overflow: hidden; }
.bt-finc__ph {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; background: var(--bt-surface-2); overflow: hidden;
}
.bt-finc__ph img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.bt-finc__nophoto { padding: 14px; font-size: 11.5px; line-height: 1.5; color: var(--bt-text-3); text-align: center; max-width: 30ch; }
.bt-fold--fin, .bt-fold--cmp { margin-top: 12px; }
.bt-fold--cmp { margin-top: 16px; }
/* Своя таблица, а не .bt-table: общий селектор ловил её в чужих местах */
.bt-cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.bt-cmp th, .bt-cmp td { padding: 9px 12px; border-top: 1px solid var(--bt-line); text-align: left; vertical-align: top; }
.bt-cmp thead th { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--bt-text-3); border-top: 0; }
.bt-cmp th[scope="row"] { text-align: left; white-space: nowrap; font-size: 12px; color: var(--bt-text-3); }
.bt-cmp td { white-space: normal; min-width: 190px; font-size: 12.5px; line-height: 1.5; vertical-align: top; }
.bt-cmp__no { color: var(--bt-text-3); }
.bt-finc__b { padding: 14px 16px 16px; }
.bt-finc__hd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.bt-finc__hd b { font-family: var(--bt-font-display); font-weight: 700; font-size: 16px; }
.bt-finc__p { margin-left: auto; padding: 3px 10px; border-radius: 20px; background: var(--bt-primary-soft); color: var(--bt-primary); font-size: 12px; font-weight: 600; white-space: nowrap; }
.bt-finc__s { font-size: 13px; line-height: 1.6; color: var(--bt-text-2); margin-bottom: 12px; }
.bt-finc__rows { margin: 0; }
.bt-finc__rows > div { padding: 8px 0; border-top: 1px solid var(--bt-line); }
.bt-finc__rows dt { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bt-text-3); margin-bottom: 3px; }
.bt-finc__rows dd { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--bt-text-2); }


/* ── Блоки и инфраструктура выпадающими списками ── */
.bt-blocksel, .bt-amsel { margin-bottom: 14px; }
.bt-blockcard .fl-bc { border-radius: var(--bt-r-card); }


/* Карта на телефоне: одним пальцем страница скроллится, карта таскается после
   разворота. Кнопка нужна ровно для этого, а не для красоты. */
.bt-map__full {
  position: absolute; z-index: 5; right: 10px; bottom: 10px;
  padding: 9px 14px; min-height: 44px; border-radius: 20px; cursor: pointer;
  background: var(--bt-surface); border: 1px solid var(--bt-line-2); color: var(--bt-text);
  font: 600 12px/1 var(--bt-font-body); display: none;
}
@media (max-width: 700px) {
  .bt-map { height: 260px; }
  .bt-map__full { display: block; }
  .bt-map.is-full { height: 70vh; }
  /* Цифры не прыгают при листании */
  .bt-dist__i b, .bt-near__d, .bt-finc__p { font-variant-numeric: tabular-nums; }
}

/* Шапка сайта в тёмной теме раздела: белая полоса поверх тёмной страницы это брак */
:root[data-theme="dark"] .bt-header { background: rgba(17,19,24,.94); }


/* Ничего мельче 12 px на телефоне. Кегль поднимаем, а не прячем текст:
   на 390 px подписи в 11 px просто не читаются. Часть 8к. */
@media (max-width: 700px) {
  .bt-finc__rows dt, .bt-lot__r span, .bt-dist__i span, .bt-near__i,
  .bt-dev__d, .bt-dev__docsT, .bt-fold__n, .bt-gal__count,
  .bt-finc__nophoto, .bt-units__note, .bt-am, .bt-amc figcaption,
  .bt-near__hd, .bt-amgroup__t, .bt-amgroup__t span,
  .bt-cmp thead th, .bt-cmp th[scope="row"], .fl-srch__g label,
  .bt-psec__sub, .bt-form__note, .bt-field label, .bt-consent { font-size: 12px; }
  .bt-finc__rows dd, .bt-cmp td { font-size: 13px; }
  .bt-table th, .bt-st { font-size: 12px; }
}


/* Прототипная строка про источники данных. На боевом её удаляет project.js вместе
   со всеми пометками data-proto: подвал раздела теперь отдельный компонент. */
.bt-protonote { margin: 34px 0 0; font-size: 12px; line-height: 1.6; color: var(--bt-text-3); }

/* Кнопка презентации стоит под основным действием и намеренно тише его:
   заявка важнее скачивания. */
.bt-pside__pres {
  margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.bt-pside__pres svg { flex: none; }
