/* profiles-aluminium.html — приведение к стилю каталога (catalog-background-v2.html / aluminium-refresh-20261105.css).
   Картинки и тексты не меняются. Подключается последним. Откат: убрать <link id="systems-refresh">. */

body[data-systems-review]{
  --sr-red:#c83536;
  --sr-ink:rgba(17,17,17,.92);
  --sr-text:rgba(17,17,17,.76);
  --sr-line:rgba(17,17,17,.08);
  --sr-shadow:0 0 20px 2px rgba(17,17,17,.04);
  --sr-shadow-hover:0 18px 40px rgba(17,17,17,.10);
  --sr-card-bg:radial-gradient(120% 95% at 50% 62%, #ffffff 0%, #ffffff 38%, #eef2f5 100%);
}

/* ---------- Шапка серии: заголовок слева, описание справа — как в каталоге ---------- */
body[data-systems-review] .system.section{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  column-gap:48px;
  align-items:end;
}
body[data-systems-review] .system.section > *{grid-column:1 / -1}
body[data-systems-review] .system.section > .h2-title{grid-column:1;margin:0;color:var(--sr-ink)}
body[data-systems-review] .system.section > .title-point{
  grid-column:2;
  margin:0;
  padding-left:0;
  max-width:600px;
  font-size:20px;
  font-weight:400;
  line-height:1.4;
  color:var(--sr-text);
}
body[data-systems-review] .system.section > .title-point::after,
body[data-systems-review] .system.section > .title-point::before{display:none}
body[data-systems-review] .system.section > .h2-title ~ .system-item:nth-child(3),
body[data-systems-review] .system.section > .title-point + .system-item{margin-top:40px}
/* разделитель между сериями */
body[data-systems-review] .system.section + .system.section{
  padding-top:48px;
  border-top:1px solid var(--sr-line);
}

/* ---------- Карточка системы ---------- */
body[data-systems-review] .system.section .system-item{
  border:1px solid rgba(17,17,17,.05);
  box-shadow:var(--sr-shadow);
}
body[data-systems-review] .system.section .system-item > .title{color:var(--sr-ink)}
body[data-systems-review] .system.section .system-copy-panel > .text:first-child{color:var(--sr-ink)}
body[data-systems-review] .system.section .system-copy-panel .system-note{color:var(--sr-text)}

/* ---------- Подложки под картинками: как у карточек каталога ---------- */
body[data-systems-review] .system.section .system-zoom-frame,
body[data-systems-review] .system.section .bf73-animation,
body[data-systems-review] .system.section .system-example{
  background:var(--sr-card-bg) !important;
  border:1px solid rgba(17,17,17,.05);
  border-radius:8px;
  box-shadow:var(--sr-shadow);
}

/* Примеры (фасады, покрытия): поведение карточек каталога */
body[data-systems-review] .system.section .system-example{
  position:relative;
  overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
body[data-systems-review] .system.section .system-example:hover,
body[data-systems-review] .system.section .system-example:focus-visible{
  transform:translateY(-4px);
  box-shadow:var(--sr-shadow-hover);
  border-color:rgba(33,99,151,.18);
}
body[data-systems-review] .system.section .system-example .system-image-stage img{transition:transform .45s ease, opacity .3s ease}
body[data-systems-review] .system.section .system-example:hover .system-image-stage img,
body[data-systems-review] .system.section .system-example:focus-visible .system-image-stage img{transform:scale(1.04)}

/* Подпись — серый тег с красной точкой, при наведении не меняется */
body[data-systems-review] .system.section .system-example > figcaption{
  display:inline-flex;
  align-items:center;
  gap:8px;
  z-index:2;
  padding:8px 14px;
  border-radius:4px;
  background:#f5f5f5;
  font-size:15px;
  font-weight:500;
  line-height:1.3;
  color:var(--sr-ink);
}
body[data-systems-review] .system.section .system-example > figcaption::before{
  content:"";
  flex:0 0 auto;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--sr-red);
}

/* Имитация структурного фасада: без зеркального разворота второй картинки */
body[data-systems-review] [data-mirror-hover] .facade-hover{transform:none}
body[data-systems-review] .system.section [data-mirror-hover]:hover .facade-hover,
body[data-systems-review] .system.section [data-mirror-hover]:focus-visible .facade-hover{transform:scale(1.04)}

/* ---------- Адаптив ---------- */
@media (max-width:991px){
  body[data-systems-review] .system.section{grid-template-columns:minmax(0,1fr)}
  body[data-systems-review] .system.section > .title-point{grid-column:1;margin-top:16px}
  body[data-systems-review] .system.section + .system.section{padding-top:40px}
  body[data-systems-review] .system.section > .title-point + .system-item{margin-top:32px}
}
@media (max-width:767px){
  body[data-systems-review] .system.section + .system.section{padding-top:32px}
  body[data-systems-review] .system.section > .title-point{font-size:16px}
  body[data-systems-review] .system.section > .title-point + .system-item{margin-top:24px}
  body[data-systems-review] .system.section .system-example > figcaption{font-size:14px;padding:6px 12px}
}
@media (hover:none){
  body[data-systems-review] .system.section .system-example:hover{transform:none;box-shadow:var(--sr-shadow)}
  body[data-systems-review] .system.section .system-example:hover .system-image-stage img{transform:none}
}

/* ---------- Галереи примеров (фасады, покрытия): ровные ряды ---------- */
body[data-systems-review] .system.section .system-visual-panel:has(> .system-example){
  align-items:stretch;
  gap:20px;
}
body[data-systems-review] .system.section .system-visual-panel > .system-example{
  display:flex;
  flex-direction:column;
  height:auto;
  min-width:0;
  margin:0;
}
body[data-systems-review] .system.section .system-visual-panel > .system-example > .system-image-stage{flex:1 1 auto;min-height:0}
body[data-systems-review] .system.section .system-visual-panel > .system-example > figcaption{align-self:flex-start;max-width:calc(100% - 16px)}

@media (min-width:640px) and (max-width:1199px){
  body[data-systems-review] .system.section .system-visual-panel:has(> .system-example){
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:12px;
  }
  body[data-systems-review] .system.section .system-visual-panel > .system-example > figcaption{font-size:13px;padding:6px 10px;gap:6px}
}

/* Телефон: карусель с одинаковыми карточками, как в каталоге */
@media (max-width:639px){
  body[data-systems-review] .system.section .system-visual-panel:has(> .system-example){
    display:flex !important;
    gap:12px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    padding-bottom:8px;
  }
  body[data-systems-review] .system.section .system-visual-panel > .system-example{
    flex:0 0 76%;
    max-width:300px;
    scroll-snap-align:start;
  }
}

/* Подзаголовки серий короткие — ставим под заголовок на всех ширинах (не справа) */
body[data-systems-review] .system.section{grid-template-columns:minmax(0,1fr)}
body[data-systems-review] .system.section > .title-point{grid-column:1;margin-top:12px}

/* Без линии-разделителя между сериями */
body[data-systems-review] .system.section + .system.section{border-top:0;padding-top:0}

/* Вертикальный разделитель в карточке системы: только между текстом и картинкой (под заголовком),
   ровно по центру промежутка между колонками. Исходная линия (::before на всю высоту) наезжала на заголовок. */
body[data-systems-review] .system.section .system-item::before{display:none !important}
body[data-systems-review] .system.section .system-item > .system-copy-panel{position:relative;align-self:stretch}
@media (min-width:768px){
  body[data-systems-review] .system.section .system-item > .system-copy-panel::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    right:calc(var(--sr-col-gap, 56px) / -2);
    width:1px;
    background:#bacddc;
    pointer-events:none;
  }
  body[data-systems-review] .system.section .system-item{--sr-col-gap:48px;column-gap:var(--sr-col-gap)}
}
@media (min-width:992px){
  body[data-systems-review] .system.section .system-item{--sr-col-gap:56px}
}
/* в карточках с галереей под текстом (фасады, покрытия) колонок нет — линия не нужна */
body[data-systems-review] .system.section .system-item:has(.system-example) > .system-copy-panel::after{display:none}

/* ---------- Галереи (фасады, покрытия) ниже 1200px: без пустоты внизу карточки ----------
   Картинка заполняет всю область под подписью, высота области задаётся пропорцией, а не растягиванием ряда.
   Три в ряд — от 768px; уже — карусель (три узкие карточки по ~150px выглядят несуразно). */
@media (max-width:1199px){
  body[data-systems-review] .system.section .system-visual-panel:has(> .system-example){align-items:start}
  body[data-systems-review] .system.section .system-visual-panel > .system-example{height:auto !important}
  body[data-systems-review] .system.section .system-visual-panel > .system-example > .system-image-stage{
    flex:0 0 auto;
    height:auto !important;
    aspect-ratio:1 / 0.9;
  }
  body[data-systems-review] .system.section .system-visual-panel > .system-example > .system-image-stage > img{
    position:absolute;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    padding:8px 12px 12px;
    object-fit:contain;
  }
}
@media (min-width:768px) and (max-width:1199px){
  body[data-systems-review] .system.section .system-visual-panel:has(> .system-example){
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    overflow:visible;
  }
}
@media (max-width:767px){
  body[data-systems-review] .system.section .system-visual-panel:has(> .system-example){
    display:flex !important;
    gap:12px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    padding-bottom:8px;
  }
  body[data-systems-review] .system.section .system-visual-panel > .system-example{
    flex:0 0 min(76%, 300px);
    max-width:300px;
    scroll-snap-align:start;
  }
  body[data-systems-review] .system.section .system-visual-panel > .system-example > figcaption{font-size:14px;padding:6px 12px;gap:8px}
}
/* одна высота карточек в ряду: разница в строках подписи уходит в зазор над картинкой, а не вниз */
@media (max-width:1199px){
  body[data-systems-review] .system.section .system-visual-panel:has(> .system-example){align-items:stretch}
  body[data-systems-review] .system.section .system-visual-panel > .system-example > .system-image-stage{margin-top:auto}
}
/* карусель: начинать с первой карточки (исходное justify-content:center уводило её за левый край) */
@media (max-width:767px){
  body[data-systems-review] .system.section .system-visual-panel:has(> .system-example){justify-content:flex-start !important}
}
