/* Стрелки каруселей (планировки, виды отделки, преимущества) — только русская версия.
   Тонкие, как в «Планировках квартир»; при наведении — заливка бежевым #BB9775, рамка того же цвета, стрелка белая. */
#allrecords .t-rec .t1196__control,
#allrecords .t-rec .t1148__control {
  background-color: transparent !important;
  border-width: 1px !important;
  border-style: solid !important;
  transition: background-color .3s ease, border-color .3s ease !important;
}
#allrecords .t-rec .t1196__control svg path,
#allrecords .t-rec .t1148__control svg path {
  stroke-width: 1px !important;
  transition: stroke .3s ease;
}
#allrecords .t-rec .t1196__control:hover,
#allrecords .t-rec .t1148__control:hover {
  background-color: #bb9775 !important;
  border-color: #bb9775 !important;
}
#allrecords .t-rec .t1196__control:hover svg path,
#allrecords .t-rec .t1148__control:hover svg path {
  stroke: #ffffff !important;
}

/* Стрелки на карусели слева и справа (положение задаёт arrows.js) */
#allrecords .hh-side-controls {
  position: absolute !important;
  z-index: 5;
  display: flex !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 50px;
  pointer-events: none;
  translate: none !important;
}
#allrecords .hh-side-controls > * { pointer-events: auto; margin: 0 !important; }
#allrecords .hh-side-controls .hh-ctrl-hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
#allrecords .hh-side-controls > * { transition: opacity .3s ease, visibility .3s ease, background-color .3s ease, border-color .3s ease !important; }
/* Все стрелки одинаковые: бежевая рамка и стрелка (как в «Видах отделки») */
#allrecords .t-rec .hh-side-controls .t1196__control { border-color: #bb9775 !important; }
#allrecords .t-rec .hh-side-controls .t1196__control svg path { stroke: #bb9775 !important; }
#allrecords .t-rec .hh-side-controls .t1196__control:hover svg path { stroke: #ffffff !important; }

/* Все карусели как «Инфраструктура» (по просьбе):
   на компьютере три карточки заканчиваются перед правой стрелкой (стрелка 50px + зазор 10px), между карточками 10px;
   стрелки — белая заливка без обводки, при наведении бежевые. Высоту карточек и текст не меняем. */
@media (min-width: 960px) {
  #allrecords #rec1240219136 .t1196__slider { column-gap: 10px !important; gap: 10px !important; }
  #allrecords #rec1240219136 .t1196__item,
  #allrecords #rec1236951396 .t1148__item,
  #allrecords #rec-hh-adv .hh-adv__card,
  #allrecords #rec-hh-reviews .hh-rev__card { flex: 0 0 calc((100% - 80px) / 3) !important; width: calc((100% - 80px) / 3) !important; max-width: none !important; }
  #allrecords #rec1236951396 .t1148__img-wrapper { width: 100% !important; }
}
#allrecords .t-rec .hh-side-controls .t1196__control,
#allrecords .t-rec .hh-side-controls .t1148__control { background-color: #ffffff !important; border-color: transparent !important; }
#allrecords .t-rec .hh-side-controls .t1196__control:hover,
#allrecords .t-rec .hh-side-controls .t1148__control:hover { background-color: #bb9775 !important; border-color: #bb9775 !important; }
/* в более узких карточках длинные строки переносятся, а не выходят за край карточки */
@media (min-width: 960px) {
  #allrecords #rec1236951396 .hh-fin__descr { white-space: normal !important; }
  #allrecords #rec-hh-adv .hh-adv__title { white-space: normal !important; right: 8%; }
  #allrecords #rec-hh-adv .hh-adv__note { right: 8%; }
  #allrecords #rec-hh-adv .hh-adv__body, #allrecords #rec-hh-adv .hh-adv__sub { white-space: normal !important; }
  #allrecords #rec-hh-adv .hh-adv__body br { display: none; }
}
@media (min-width: 960px) {
  /* нижние подписи «Преимуществ» прижаты к низу карточки, чтобы при переносе строк не выходить за край */
  #allrecords #rec-hh-adv .hh-adv__note[style*="top:7"], #allrecords #rec-hh-adv .hh-adv__note[style*="top:8"] { top: auto !important; bottom: 7%; }
}
@media (min-width: 960px) {
  /* в узкой карточке (окно 960–1200px) текст «Преимуществ» уменьшается пропорционально карточке, максимум 32/16px */
  #allrecords #rec-hh-adv .hh-adv__card { container-type: inline-size; }
  #allrecords #rec-hh-adv .hh-adv__title { font-size: min(32px, 8.9cqw) !important; }
  #allrecords #rec-hh-adv .hh-adv__body, #allrecords #rec-hh-adv .hh-adv__sub { font-size: min(16px, 4.45cqw) !important; }
}

/* «Комфорт и тишина»: верхний текст уже (строки переносятся), чтобы не заходил на лицо девушки (по просьбе); шрифт и слова те же */
#allrecords #rec-hh-adv .hh-adv__card:nth-child(3) .hh-adv__note[style*="top:19%"] { right: auto !important; width: 40% !important; }

/* «Комфорт и тишина»: нижняя подпись белая, под ней затемнение снизу карточки, как в «Инфраструктуре» (по просьбе) */
#allrecords #rec-hh-adv .hh-adv__card:nth-child(3) .hh-adv__note_dark { color: #fff !important; border-left-color: #fff !important; z-index: 2; }
#allrecords #rec-hh-adv .hh-adv__card:nth-child(3)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.25) 45%, rgba(0,0,0,0));
}
