@import url("/assets/brand-tokens.css");

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--ink); color:var(--text);
  font:400 17px/1.6 var(--b);
  overflow-x:clip;           /* не hidden: hidden прячет уехавший за край блок */
}
img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}

.wrap{max-width:var(--max); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad)}
section{padding:64px 0; border-top:1px solid var(--line)}
section[id]{scroll-margin-top:calc(var(--hd) + 16px)}
/* Заголовки статей адресуются снаружи и из генеративных ответов: без своего
   отступа переход по такой ссылке уводит заголовок под липкую шапку. */
h2[id],h3[id]{scroll-margin-top:calc(var(--hd) + 16px)}
.hero{border-top:0}
@media (min-width:941px){ section{padding:96px 0} }

/* ---------- типографика: три ступени, разница ≥1.4× ---------- */
h1,h2{font-family:var(--h); font-weight:700; line-height:1.12; letter-spacing:-.02em; margin:0}
h1{font-size:clamp(31px,7.6vw,54px)}
h2{font-size:clamp(28px,6.2vw,40px)}
h3{font-family:var(--h); font-weight:600; font-size:18px; line-height:1.3; margin:0}
p{margin:0 0 14px}
.lead{color:var(--muted); font-size:clamp(16px,3.9vw,19px); max-width:68ch}
.kick{font:500 13px/1 var(--m); letter-spacing:.13em; text-transform:uppercase;
      color:var(--accent-on-dark); margin:0 0 14px}
.sec-head{margin-bottom:32px}
.sec-head p{margin-top:12px; margin-bottom:0}
@media (min-width:941px){ .sec-head{margin-bottom:40px} }

/* ---------- шапка ---------- */
.hd{position:sticky; top:0; z-index:60; background:rgba(15,17,20,.94);
    border-bottom:1px solid var(--line); backdrop-filter:blur(10px)}
.hd-in{display:flex; align-items:center; gap:10px; min-height:var(--hd)}
.hd .lg{display:flex; align-items:center; min-height:44px; flex:0 0 auto}
.hd .lg img{height:22px; width:auto; display:block}
.hd-tel{display:none}
.hd .hd-cta{display:none}
.hd-call{display:grid; place-items:center; width:44px; height:44px; flex:0 0 auto;
         margin-left:auto; border:1px solid var(--line); border-radius:10px; color:var(--text)}
.hd-call svg{width:20px; height:20px}
.burger{width:44px; height:44px; flex:0 0 auto; display:grid; place-items:center;
        background:none; border:1px solid var(--line); border-radius:10px; color:var(--text); cursor:pointer}
.burger svg{width:20px; height:20px}
.nav{display:none}

/* мобильное меню: разделы раскрываются, а не уводят сразу на хаб */
.m-nav{display:none; border-top:1px solid var(--line);
       max-height:calc(100dvh - var(--hd)); overflow-y:auto; overscroll-behavior:contain;
       padding-bottom:24px}
.m-nav.on{display:block}
.m-grp{border-bottom:1px solid var(--line)}
.m-grp summary{list-style:none; display:flex; align-items:center; justify-content:space-between;
               min-height:56px; font-family:var(--h); font-weight:600; font-size:18px; cursor:pointer}
.m-grp summary::-webkit-details-marker{display:none}
.m-grp summary::after{content:'+'; font:400 24px/1 var(--b); color:var(--accent-on-dark)}
.m-grp[open] summary::after{content:'–'}
.m-grp a{display:flex; align-items:center; min-height:48px; color:var(--muted); font-size:16px}
.m-grp a.m-hub{color:var(--text); font-weight:500}
.m-grp a[aria-current]{color:var(--accent-on-dark)}
.m-nav .m-cta{margin-top:20px; width:100%}
.m-nav .m-tel{display:flex; align-items:center; justify-content:center; min-height:48px;
              margin-top:8px; color:var(--text); font-weight:500}

@media (min-width:641px){
  .hd-in{gap:14px}
  .hd-call{display:none}
  .hd-tel{display:inline-flex; align-items:center; min-height:44px; margin-left:auto;
          font:500 15px/1 var(--b); color:var(--text); white-space:nowrap}
  .hd .hd-cta{display:inline-flex; min-height:44px; padding:0 16px; font-size:14px}
}
@media (min-width:1081px){
  .burger{display:none}
  .m-nav{display:none !important}
  /* .nav — точка отсчёта для широкого выпадающего списка. Без неё .nav-wide
     (position:static) отдавал абсолютное позиционирование липкой шапке, и меню
     «Услуги» открывалось от левого края экрана: x=0 вместо края навигации
     (правка Андрея 18.09.2026, замерено в браузере). */
  .nav{display:flex; align-items:center; gap:2px; margin-left:24px; position:relative}
  .nav-i{position:relative}
  .nav-i > a{display:flex; align-items:center; min-height:44px; padding:0 10px; border-radius:8px;
             font-size:14.5px; color:#CFD4DA; white-space:nowrap}
  .nav-i:hover > a,.nav-i:focus-within > a{color:var(--text); background:rgba(242,244,246,.07)}
  .drop{position:absolute; top:100%; left:0; min-width:290px; background:var(--block);
        border:1px solid var(--line); border-radius:14px; padding:10px;
        opacity:0; visibility:hidden; transform:translateY(6px); transition:.16s;
        box-shadow:0 18px 40px rgba(0,0,0,.45)}
  .nav-i:hover .drop,.nav-i:focus-within .drop{opacity:1; visibility:visible; transform:none}
  .nav-wide{position:static}
  .nav-wide .drop-wide{left:0; right:auto; display:grid;
                       grid-template-columns:repeat(3,minmax(220px,1fr)); gap:4px 18px; padding:16px}
  .drop a{display:block; padding:9px 12px; border-radius:8px; font-size:14.5px; color:var(--muted); line-height:1.35}
  .drop a:hover{background:rgba(242,244,246,.08); color:var(--text)}
  .drop a[aria-current]{color:var(--accent-on-dark)}
  .drop-h{font-family:var(--h); font-weight:600; font-size:14.5px; color:var(--text);
          border-bottom:1px solid var(--line); border-radius:0; margin-bottom:6px; padding-bottom:9px}
  .hd-tel{margin-left:auto}
}

/* Планшетная полоса 700–1079: сетки идут в две колонки, и при нечётном числе
   карточек последний ряд оставался наполовину пустым — то самое замечание
   Никиты от 04.09.2026, но на ширине, которую мы не смотрели (найдено
   18.09.2026 замером в браузере: дыры были и на принятых разделах — главная,
   «Монтаж», «О компании», «ПВХ-мембрана»). Последний нечётный элемент
   занимает оба столбца: ряд закрыт, ячейка не висит. */
/* Тот же долг на десктопе: сетки, где карточку-заявку не поставить (листинг
   блога, позиции каталога), оставляли в последнем ряду одну-две пустые ячейки.
   Последняя карточка занимает недостающие столбцы — ряд закрыт, состав не
   меняется. Найдено замером 18.09.2026 на /blog/ (17 статей) и
   /materialy/pvh-membrana/ (7 позиций). */
@media (min-width:1080px){
  .cards:has(> :nth-child(3n+2):last-child):not(:has(.card-obj)) > :last-child,
  .cards:has(> :nth-child(7):last-child):not(:has(.card-obj)) > :last-child{grid-column:span 2}
}

@media (min-width:700px) and (max-width:1079px){
  .cards:has(> :nth-child(odd):last-child) > :last-child,
  .tiles:has(> li:nth-child(odd):last-child) > li:last-child,
  .factors:has(> li:nth-child(odd):last-child) > li:last-child,
  .steps:has(> li:nth-child(odd):last-child) > li:last-child{grid-column:1 / -1}
}

/* ---------- первый экран ---------- */
.hero{position:relative; padding:0; min-height:min(90svh,780px); display:flex; align-items:flex-end; overflow:hidden}
.hero picture,.hero img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
/* Два слоя вместо одного: нижний держит общий сумеречный тон, верхний — тёмная
   подложка ровно под текстом. Кадр первого экрана с 28.08 дневной и светлый,
   и одного градиента не хватало: заголовок давал 2,6:1 на десктопе, лид 3,7:1
   на мобильном. На вертикали текст занимает низ, на широком экране — левую
   колонку, поэтому подложки разные и кровля справа остаётся видимой. */
.hero::after{content:''; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(15,17,20,0) 24%, rgba(15,17,20,.62) 52%, rgba(15,17,20,.80) 74%, rgba(15,17,20,.86) 100%),
    linear-gradient(180deg, rgba(15,17,20,.60) 0%, rgba(15,17,20,.30) 32%, rgba(15,17,20,.90) 82%, var(--ink) 100%)}
@media (min-width:941px){
  .hero::after{background:
    linear-gradient(90deg, rgba(15,17,20,.84) 0%, rgba(15,17,20,.62) 34%, rgba(15,17,20,0) 64%),
    linear-gradient(180deg, rgba(15,17,20,.55) 0%, rgba(15,17,20,.24) 32%, rgba(15,17,20,.88) 84%, var(--ink) 100%)}
}
.hero-in{position:relative; z-index:2; width:100%; padding-top:104px; padding-bottom:40px}
.hero h1{max-width:14ch}
.hero .lead{color:#D7DBE0; max-width:46ch; margin-top:18px}
@media (min-width:941px){ .hero-in{padding-top:150px; padding-bottom:56px} }

.btn{display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:0 24px;
     border-radius:10px; font:600 16px/1 var(--b); border:1px solid transparent; cursor:pointer; text-align:center}
.btn-1{background:var(--accent); color:var(--accent-text)}
.btn-1:hover{background:#ACD139}
.btn-2{background:rgba(15,17,20,.55); color:var(--text); border-color:#4A5058}
.btn-2:hover{border-color:var(--text)}
.btns{display:grid; gap:12px; margin-top:26px}
.btns .btn{width:100%}
@media (min-width:560px){ .btns{display:flex; flex-wrap:wrap} .btns .btn{width:auto} }

/* факты первого экрана: значение и подпись, а не строка через точку */
.facts{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:32px 0 0;
       border-top:1px solid rgba(242,244,246,.18); padding-top:18px}
.facts div{min-width:0}
/* Ставок в первом экране две (работы и под ключ) — на телефоне четыре плашки
   в три колонки не помещаются и рвут сумму пополам: ниже 560 px идём в две. */
@media (max-width:560px){ .facts{grid-template-columns:repeat(2,1fr)} }
.facts b{display:block; font:700 clamp(17px,4.4vw,24px)/1.15 var(--h); color:var(--text);
         white-space:nowrap}
.facts b.fit{font-size:clamp(15px,3.9vw,24px); letter-spacing:-.02em}
.facts span{display:block; margin-top:6px; font:400 13px/1.35 var(--b); color:#C3C9D0}

/* якорный ряд по интентам */
.anchors{display:flex; flex-wrap:wrap; gap:8px; margin-top:24px}
.anchors a{display:inline-flex; align-items:center; min-height:44px; padding:0 16px;
           border:1px solid var(--line); border-radius:999px; font-size:14.5px; color:var(--text)}
.anchors a:hover{border-color:var(--accent)}

/* ---------- фоновая фотография секции ----------
   Ставится в двух местах на странице: под «объектами» и под заявкой. Вуаль
   объявляется вместе с фоном — текст поверх фото не наследует цвет ниоткуда. */
.bg-sec{position:relative; overflow:hidden}
.bg-sec > .wrap{position:relative; z-index:2}
.bg{position:absolute; inset:0; z-index:0}
.bg img{width:100%; height:100%; object-fit:cover}
.bg::after{content:''; position:absolute; inset:0}
.bg-dark::after{background:linear-gradient(180deg, rgba(15,17,20,.86) 0%, rgba(15,17,20,.74) 45%, rgba(15,17,20,.92) 100%)}
.bg-light::after{background:linear-gradient(180deg, rgba(241,243,245,.94) 0%, rgba(241,243,245,.90) 40%, rgba(241,243,245,.96) 100%)}
/* подвал: кадр светлый (макро сварного шва), поэтому вуаль плотнее — из него
   остаётся только диагональ шва, а текст лежит на ровном тёмном поле */
.bg-foot::after{background:linear-gradient(180deg, rgba(11,13,16,.93) 0%, rgba(11,13,16,.88) 30%, rgba(11,13,16,.96) 100%)}

/* ---------- опоры ---------- */
.pill{display:grid; gap:16px; grid-template-columns:1fr}
.pill>div{background:var(--block); border:1px solid var(--line); border-radius:16px; padding:20px}
.pill .no{font:500 13px/1 var(--m); color:var(--accent-on-dark); letter-spacing:.1em; margin:0 0 12px}
.pill .pill-t{font-family:var(--h); font-weight:700; font-size:clamp(20px,4.4vw,26px);
              line-height:1.2; margin:0 0 10px; color:var(--text)}
.pill p{color:var(--muted); margin:0; font-size:15.5px}
@media (min-width:700px){ .pill{grid-template-columns:repeat(2,1fr); gap:20px} }
@media (min-width:1080px){ .pill{grid-template-columns:repeat(4,1fr); gap:24px} }

/* ---------- схема ---------- */
.pie{display:grid; gap:20px}
.pie figure{margin:0; background:var(--block); border:1px solid var(--line); border-radius:16px; padding:12px}
.pie svg{width:100%; height:auto; max-width:640px; margin:0 auto; display:block}
.pie figcaption{color:var(--muted); font-size:14px; margin-top:12px; line-height:1.5; padding:0 4px 4px}
@media (min-width:700px){ .pie figure{padding:20px} }
@media (min-width:941px){ .pie{grid-template-columns:1.05fr .95fr; gap:24px; align-items:start} }
/* Схема без списка рядом — одна колонка на всю ширину. Иначе вторая колонка
   грида остаётся пустой, и схема висит прижатой к левому краю (14.09.2026). */
@media (min-width:941px){ .pie:has(> :only-child){grid-template-columns:1fr} }
/* Схема не растягивается: вместе с рисунком растёт кегль подписей, и они
   начинают спорить с заголовками. 420 px — размер, при котором кегль внутри
   схемы держится в 15–18 px и на телефоне, и на десктопе (15.09.2026). */
.pie svg{max-width:420px}
.pie > svg:only-child{max-width:420px}
/* Пояснение рядом со схемой: занимает вторую колонку, чтобы схема не висела
   одна посреди пустого поля. */
/* Пара «схема + пояснение»: текст начинается вровень с рисунком, соседние пары
   разведены воздухом — иначе пять схем подряд сливаются в одну колонку. */
.pie-note{align-self:start}
.pie + .pie{margin-top:40px}
/* Схема после списка или абзаца (23.09.2026): без отступа рамка figure
   прилипала к карточкам сверху — пары «схема + пояснение» стоят у текста,
   который поясняют, то есть сразу после .factors/.tiles/.steps. */
:is(.cards,.factors,.tiles,.steps,.ptable,p) + .pie{margin-top:32px}
/* И в обратную сторону (06.10.2026): на /moskva/ рамка схемы оснований
   упиралась в карточки шагов под ней. */
.pie + :is(.cards,.factors,.tiles,.steps,.ptable){margin-top:40px}
/* То же, когда сетка обёрнута в .rv — блок «Как работаем» на главной (07.10.2026). */
.pie + .rv:has(> :is(.cards,.factors,.tiles,.steps,.ptable)){margin-top:40px}
.pie figure{max-width:420px; padding:10px}
@media (min-width:700px){ .pie figure{padding:16px} }
.pie figure svg{max-width:100%}
.pie-note p{margin:0 0 12px; color:var(--muted); font-size:15px; line-height:1.6}
.pie-note p:last-child{margin-bottom:0}
.paper .pie-note p{color:var(--paper-muted)}
.pie-note b{color:var(--text)}
.paper .pie-note b{color:var(--paper-text)}

/* Схема пирога от производителя на светлой секции — 11.09.2026, раздел /sistemy/.
   Кадры отрисованы на белом фоне, поэтому подложка тоже белая: тёмный var(--block)
   давал бы белый квадрат внутри тёмной рамки. Цвета объявляются вместе с фоном. */
.pie img{width:100%; height:auto; display:block; border-radius:10px}
.paper .pie figure{background:#fff; border-color:var(--paper-line)}
.paper .pie figcaption{color:var(--paper-muted)}

/* ---------- нумерованный состав пирога ----------
   11.09.2026: «страницы выглядят скудно, добавить технологичности». Четыре
   одинаковых списка-полоски подряд читались как черновик. Номер слоя — не
   украшение: состав идут читать снизу вверх, и без нумерации теряется место
   в пироге. Цвет номера объявлен вместе с фоном строки. */
.layers.num{counter-reset:l}
.layers.num li{display:grid; grid-template-columns:auto 1fr; gap:14px; align-items:start}
.layers.num li::before{counter-increment:l; content:counter(l,decimal-leading-zero);
  font:500 13px/1.5 var(--m); color:var(--accent-on-dark); letter-spacing:.06em}
.paper .layers.num li::before{color:var(--accent-on-paper)}
.paper .layers{border-color:var(--paper-line)}
.paper .layers li{background:#fff; border-bottom-color:var(--paper-line)}
.paper .layers span{color:var(--paper-muted)}
.layers li{transition:background .25s ease}
.layers li:hover{background:#1C2026}
.paper .layers li:hover{background:#FAFBFC}

/* ---------- каскадное появление содержимого блока ----------
   Родитель уже показывается через .rv (IntersectionObserver в layout.php).
   Здесь дети родителя выезжают по очереди — пирог собирается снизу вверх,
   карточки набегают слева направо. Задержка обрывается на восьмом элементе:
   дальше ожидание заметно глазу и выглядит не техничностью, а тормозами.
   Без JS (нет html.js) правило не действует вовсе — страница видна сразу,
   это условие проверки «проявление» в приёмке. */
html.js .rv.stagger > *{opacity:0; transform:translateY(10px);
  transition:opacity .45s ease, transform .45s ease}
html.js .rv.stagger.in > *{opacity:1; transform:none}
html.js .rv.stagger.in > :nth-child(1){transition-delay:.00s}
html.js .rv.stagger.in > :nth-child(2){transition-delay:.06s}
html.js .rv.stagger.in > :nth-child(3){transition-delay:.12s}
html.js .rv.stagger.in > :nth-child(4){transition-delay:.18s}
html.js .rv.stagger.in > :nth-child(5){transition-delay:.24s}
html.js .rv.stagger.in > :nth-child(6){transition-delay:.30s}
html.js .rv.stagger.in > :nth-child(7){transition-delay:.36s}
html.js .rv.stagger.in > :nth-child(n+8){transition-delay:.42s}
/* Блок, который экран уже проехал, показывается мгновенно — вместе с детьми.
   Переход и задержка снимаются, иначе дети остаются прозрачными навсегда. */
html.js .rv.stagger.in.now > *{transition:none !important; transition-delay:0s !important;
  opacity:1 !important; transform:none !important}
/* Состав кровли собирается снизу вверх — как его и укладывают на объекте. */
html.js .layers.num.rv.stagger > *{transform:translateY(14px)}

/* ---------- плитки применения и границ ----------
   Тот же текст, что лежал полосками в списке, но плиткой: акцентная черта
   сверху, воздух по краям, сетка сама считает колонки по числу плиток
   (то же правило :has, что у .cards и .steps — висящей плитки не бывает). */
.tiles{display:grid; gap:14px; grid-template-columns:1fr; list-style:none; margin:0; padding:0}
@media (min-width:700px){ .tiles{grid-template-columns:repeat(2,1fr); gap:16px} }
@media (min-width:1080px){
  .tiles{grid-template-columns:repeat(4,1fr); gap:20px}
  .tiles:has(> li:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}
  .tiles:has(> li:nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}
  .tiles:has(> li:nth-child(5):last-child),
  .tiles:has(> li:nth-child(6):last-child),
  .tiles:has(> li:nth-child(9):last-child){grid-template-columns:repeat(3,1fr)}
}
.tiles li{position:relative; background:var(--block); border:1px solid var(--line);
  border-radius:14px; padding:20px 18px 18px; color:var(--muted); font-size:15px; line-height:1.55;
  transition:transform .25s ease, border-color .25s ease}
.tiles li::before{content:''; position:absolute; top:-1px; left:18px; width:26px; height:2px;
  background:var(--accent-on-dark); border-radius:2px}
.tiles li:hover{transform:translateY(-2px); border-color:var(--accent-on-dark)}
.tiles a{color:var(--text); transition:color .2s ease}
.tiles a:hover{color:var(--accent-on-dark)}
.paper .tiles li{background:#fff; border-color:var(--paper-line); color:var(--paper-muted)}
.paper .tiles li::before{background:var(--accent-on-paper)}
.paper .tiles a{color:var(--paper-text)}

/* ---------- отклик на курсор ---------- */
.card{transition:transform .25s ease, border-color .25s ease, background .25s ease}
a.card:hover{transform:translateY(-3px); border-color:var(--accent-on-dark)}
.paper a.card:hover{border-color:var(--accent-on-paper)}
.steps li,.factors li{transition:transform .25s ease, box-shadow .25s ease}
.steps li:hover,.factors li:hover{transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.10)}
.pie figure{transition:transform .4s ease}
.pie figure:hover{transform:scale(1.01)}

/* ---------- полоса прочитанного ----------
   Тонкая линия прогресса вверху: на длинной технической странице она
   показывает, сколько осталось, и держит ощущение живого документа. */
.readbar{position:fixed; top:0; left:0; height:2px; width:0; z-index:60;
  background:var(--accent); transition:width .1s linear; pointer-events:none}

/* Системное предпочтение «меньше движения» отменяет всё перечисленное. */
@media (prefers-reduced-motion:reduce){
  html.js .rv, html.js .rv.stagger > *{opacity:1 !important; transform:none !important;
    transition:none !important}
  .card,.steps li,.factors li,.pie figure{transition:none}
  a.card:hover,.steps li:hover,.factors li:hover,.pie figure:hover{transform:none}
  .readbar{display:none}
}

.layers{list-style:none; margin:0; padding:0; border:1px solid var(--line); border-radius:16px; overflow:hidden}
.layers li{padding:16px 18px; background:var(--block); border-bottom:1px solid var(--line)}
.layers li:last-child{border-bottom:0}
.layers li.on{background:#1F2519}
.layers b{display:block; font-family:var(--h); font-weight:600; font-size:18px; margin-bottom:4px}
.layers span{color:var(--muted); font-size:15px; line-height:1.5}

/* ---------- витрина разделов: карточки одного каркаса ---------- */
.silos{display:grid; gap:16px}
@media (min-width:700px){ .silos{grid-template-columns:repeat(2,1fr); gap:20px} }
@media (min-width:1080px){ .silos{grid-template-columns:repeat(3,1fr); gap:24px} }
.silo{background:var(--block); border:1px solid var(--line); border-radius:16px; padding:24px;
      display:flex; flex-direction:column}
.silo .no{font:500 13px/1 var(--m); color:var(--accent-on-dark); letter-spacing:.1em; margin:0 0 12px}
.silo h3{font-size:clamp(20px,4.4vw,26px); font-weight:700; line-height:1.2; margin-bottom:8px}
.silo > p{color:var(--muted); font-size:15.5px; margin:0}
.silo-list{list-style:none; margin:16px 0 0; padding:0; border-top:1px solid var(--line)}
.silo-list a{display:flex; align-items:center; justify-content:space-between; gap:12px;
             min-height:52px; color:var(--text); font-size:16px; border-bottom:1px solid var(--line)}
.silo-list li:last-child a{border-bottom:0}
.silo-list a::after{content:'→'; color:var(--fg-soft)}
.silo-list a:hover,.silo-list a:hover::after{color:var(--accent-on-dark)}
.silo-all{display:inline-flex; align-items:center; min-height:44px; margin-top:auto;
          padding-top:12px; color:var(--accent-on-dark); font-size:15px; font-weight:500}

/* ---------- карточки ---------- */
.cards{display:grid; gap:16px; grid-template-columns:1fr}
@media (min-width:700px){ .cards{grid-template-columns:repeat(2,1fr); gap:20px} }
@media (min-width:1080px){ .cards{grid-template-columns:repeat(3,1fr); gap:24px} }
.cards.two{grid-template-columns:1fr}
@media (min-width:700px){ .cards.two{grid-template-columns:repeat(2,1fr)} }
/* Ряд из четырёх: четвёртая карточка не уезжает одна на вторую строку.
   Просил заказчик 02.09 голосом: «четыре в ряд, пусть чуть длиннее, зато
   лаконичнее». Только для блоков ровно из четырёх коротких карточек —
   объектам с фото ширины 1/4 мало. */
@media (min-width:1080px){ .cards.four{grid-template-columns:repeat(4,1fr); gap:20px} }

/* То же правило, но без класса руками: блок сам не оставляет карточку висеть
   одну на второй строке. Класс .four пришлось ставить вручную, и новая страница
   его не получала — 03.09.2026 «Соседние работы по кровле» на /obyekty/ стояли
   как 2 + 1. Карточки с фотографией (.card-obj) в ряд по четыре не ставим:
   ширины 1/4 кадру мало, для них разложение на две колонки. */
@media (min-width:1080px){
  /* Два элемента в сетке — две колонки, иначе в ряду остаётся пустая ячейка
     (группы номенклатуры каталога, 15.09.2026). */
  .cards:has(> :nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}
  .cards:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}
  .cards:has(> :nth-child(5):last-child){grid-template-columns:repeat(3,1fr)}
  .cards:not(.two):has(> :nth-child(4):last-child):not(:has(.card-obj)),
  .cards:has(> :nth-child(7):last-child):not(:has(.card-obj)){grid-template-columns:repeat(4,1fr); gap:20px}
  .cards:has(> :nth-child(4):last-child):has(.card-obj){grid-template-columns:repeat(2,1fr)}
  /* Длинные ленты (список статей): в две колонки нечётное число всегда
     оставляет одну карточку внизу одну — в три раскладываются ровно. */
  .cards:has(> :nth-child(9):last-child),
  .cards:has(> :nth-child(11):last-child),
  .cards:has(> :nth-child(15):last-child),
  .cards:has(> :nth-child(17):last-child){grid-template-columns:repeat(3,1fr)}
}
.card{background:var(--block); border:1px solid var(--line); border-radius:16px; padding:24px; display:block; color:var(--text)}
.card:hover{border-color:var(--accent)}
.card svg{width:100%; max-width:300px; height:auto; display:block; border-radius:10px}
.card h3{margin-bottom:8px}
.card p{color:var(--muted); font-size:15px; margin:0}
/* Номенклатура слоя в карточке хаба: отделена от описания, читается как
   перечень, а не как продолжение фразы (15.09.2026). */
.card .note{margin-top:10px; padding-top:10px; border-top:1px solid var(--line);
            font-size:13px; line-height:1.45; color:var(--accent-on-dark)}
.paper .card .note{border-top-color:var(--paper-line); color:var(--accent-on-paper)}

/* ---------- каталог материалов ----------
   Позиция каталога: имя по формуле заказчика (понятие → бренд → марка →
   толщина), назначение и характеристики. Не карточка товара: цен и наличия
   здесь нет. Цвета объявлены для тёмной базы; светлую секцию .paper
   переопределяет блок ниже. */
.card h4{font-family:var(--h); font-size:17px; line-height:1.3; margin:0 0 8px; color:var(--text)}
.grp{font-size:15px; letter-spacing:.06em; text-transform:uppercase; color:var(--accent-on-dark);
     margin:36px 0 14px; font-family:var(--m); font-weight:600}
.grp:first-of-type{margin-top:0}
.grp a{color:inherit; text-decoration:none; border-bottom:1px solid currentColor}
.grp a:hover{color:var(--text)}
/* Характеристики позиции: термин и значение идут одной строкой и переносятся
   вместе. Двухколоночная сетка в узкой карточке рвала значение по словам и
   прижимала хвост к правому краю (15.09.2026). */
.specs{margin:14px 0 0; padding-top:12px; border-top:1px solid var(--line);
       font-size:14px; line-height:1.5}
.specs dt{display:inline; color:var(--muted)}
.specs dt::after{content:'\00a0 '}
.specs dd{display:inline; margin:0; color:var(--text)}
.specs dd::after{content:''; display:block}
/* пиктограмма позиции: маленький разрез изделия над именем */
.card-pos .ico{width:128px; height:auto; display:block; margin:0 0 14px;
               border:1px solid var(--line); border-radius:10px}
@media (min-width:700px){ .card-pos .ico{width:150px} }
.paper .card-pos .ico{border-color:var(--paper-line)}

.card-obj{padding:0; overflow:hidden}
.card-obj .card-cover{display:block; aspect-ratio:8/5; background:#0C0E11}
.card-obj .card-cover img{width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .4s ease}
.card-obj:hover .card-cover img{transform:scale(1.03)}
.card-obj h3{margin:18px 20px 8px}
.card-obj p{margin:0 20px 20px}
@media (prefers-reduced-motion:reduce){ .card-obj .card-cover img{transition:none} }

/* ---------- светлая секция ---------- */
.paper{background:var(--paper); color:var(--paper-text); border-top-color:var(--paper-line)}
.paper + .paper{border-top:0; padding-top:0}
/* Две светлые секции подряд читаются одним полотном, и вертикаль между ними
   набирается дважды: 64 снизу у первой плюс 56 сверху у заголовка второй.
   На телефоне это 166 px пустоты перед «Как это выглядит» на /montazh/ при
   норме 140 (приёмка 22.09.2026). Низ ужимаем: верхний отступ несёт линию
   раздела и трогать его нельзя — без воздуха заголовок сядет на линию. */
.paper:has(+ .paper){padding-bottom:40px}
.paper + .paper .sec-head{border-top:1px solid var(--paper-line); padding-top:56px}
.paper h1,.paper h2,.paper h3{color:var(--paper-text)}
.paper .lead,.paper p{color:var(--paper-muted)}
.paper .kick{color:var(--accent-on-paper)}
.paper .card{background:#fff; border-color:var(--paper-line); color:var(--paper-text)}
.paper .card p{color:var(--paper-muted)}
.paper .card h4{color:var(--paper-text)}
.paper .grp{color:var(--accent-on-paper)}
.paper .grp a:hover{color:var(--paper-text)}
.paper .specs{border-top-color:var(--paper-line)}
.paper .specs dt{color:var(--paper-muted)}
.paper .specs dd{color:var(--paper-text)}

/* ---------- из чего складывается смета ---------- */
.factors{display:grid; gap:14px; grid-template-columns:1fr; list-style:none; margin:0; padding:0}
@media (min-width:700px){ .factors{grid-template-columns:repeat(2,1fr); gap:16px} }
@media (min-width:1080px){ .factors{grid-template-columns:repeat(4,1fr)} }

/* Число колонок сетка выбирает по количеству карточек, а не по классу руками.
   Одна карточка, висящая на второй строке, и полупустой ряд, прижатый влево, —
   самая частая правка заказчика: 02.09.2026 по «Команде и квалификации» и
   «Как выбрать подрядчика», 03.09.2026 по ценовому блоку /montazh/. Правило
   общее и живёт в каркасе, поэтому новая страница получает его сама. */
@media (min-width:1080px){
  .factors:has(> li:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}
  .factors:has(> li:nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}
  .factors:has(> li:nth-child(5):last-child),
  .factors:has(> li:nth-child(6):last-child),
  .factors:has(> li:nth-child(9):last-child){grid-template-columns:repeat(3,1fr)}
  .steps:has(> li:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}
  .steps:has(> li:nth-child(4):last-child),
  .steps:has(> li:nth-child(7):last-child),
  .steps:has(> li:nth-child(8):last-child),
  .steps:has(> li:nth-child(10):last-child){grid-template-columns:repeat(4,1fr); gap:20px}
}
.factors li{background:#fff; border:1px solid var(--paper-line); border-radius:14px; padding:18px}
.factors b{display:block; font-family:var(--h); font-size:17px; margin-bottom:6px; color:var(--paper-text)}
.factors span{color:var(--paper-muted); font-size:15px; line-height:1.5}
/* Его таблица отдаёт по две графы на материал; слитые в один абзац, они
   читаются как сплошной текст (правка Андрея 18.09.2026). .part — одна графа
   или один именованный пункт внутри карточки. */
.factors span .part{display:block; margin-top:9px}
.factors span .part:first-child{margin-top:0}
.factors span .part b{display:inline; margin:0; font-family:var(--b); font-size:15px;
                      font-weight:600; color:var(--paper-text)}
.price-note{margin-top:24px; padding:20px; background:#fff; border:1px solid var(--paper-line);
            border-left:3px solid var(--accent-on-paper); border-radius:14px;
            color:var(--paper-muted); font-size:15.5px; max-width:72ch}
/* На телефоне сетка цен вырождается в столбик, и её нижний отступ складывается
   с отступом примечания: приёмка мерила пустую полосу 169 px при норме 140
   (21.09.2026). Отступ уменьшаем только на узком экране — на десктопе воздух
   между ценами и примечанием нужен. */
@media (max-width:700px){ .price-note{margin-top:12px; padding:16px} }

/* ---------- экспресс-расчёт на главной ----------
   Светлая секция, поэтому цвета объявляются заново: наследовать тёмные токены
   тут нельзя. Считает тот же модуль, что и полная страница расчёта. */
.mini{display:grid; gap:0; background:#fff; border:1px solid var(--paper-line); border-radius:18px;
      overflow:hidden; margin-bottom:32px}
@media (min-width:941px){ .mini{grid-template-columns:1.1fr .9fr} }
.mini-q{padding:24px}
.mini-h{font-family:var(--h); font-weight:600; font-size:16px; color:var(--paper-text); margin:0 0 12px}
.mini-h label{color:inherit}
.mini-h2{margin-top:22px}
.mini-q .area input{background:#fff; border-color:#CDD3DA; color:var(--paper-text)}
.mini-q .area .unit{color:var(--paper-muted)}
.mini-q .chips button{border-color:#CDD3DA; color:var(--paper-text)}
.mini-q .chips button:hover{border-color:var(--accent-on-paper)}
.mini-q .opts{grid-template-columns:1fr}
.mini-q .opts label{border-color:#CDD3DA; color:var(--paper-muted); background:#fff}
.mini-q .opts label:hover{border-color:#AEB6BF; color:var(--paper-text)}
.mini-q .opts input:checked + span{color:var(--paper-text)}
.mini-q .opts label:has(input:checked){border-color:var(--accent-on-paper); background:#F4F7EC}

.mini-r{padding:24px; background:var(--ink); color:var(--text)}
.mini-r p.cap{font:500 13px/1 var(--m); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin:0 0 10px}
.mini-r p.big{font:700 clamp(24px,5.4vw,32px)/1.1 var(--h); color:var(--accent-on-dark); margin:0}
.mini-r p.per{color:var(--muted); font-size:14.5px; margin:8px 0 18px}
.mini-r ul.calc-list{padding-top:16px; border-top:1px solid var(--line)}
.mini-act{display:grid; gap:10px; margin-top:20px}
@media (min-width:560px){ .mini-act{grid-template-columns:1fr 1fr} }
.mini-r p.mini-note{color:#C3C9D0; font-size:13.5px; line-height:1.5; margin:16px 0 0}
.mini-sep{margin-bottom:16px}

/* ---------- этапы ---------- */
.steps{display:grid; gap:16px; counter-reset:s; list-style:none; margin:0; padding:0}
@media (min-width:700px){ .steps{grid-template-columns:repeat(2,1fr); gap:20px} }
@media (min-width:1080px){ .steps{grid-template-columns:repeat(3,1fr); gap:24px} }
@media (min-width:1080px){ .steps.four{grid-template-columns:repeat(4,1fr); gap:20px} }
/* Восемь шагов в три колонки дают 3+3+2 — тот же остаток-дыра, что и у card.
   membro_cta_step() добивает семь шагов до восьми, а восемь ровно ложится
   в две колонки без хвоста (4 строки по 2), поэтому именно для восьми — свой
   переход на две колонки, а не наружу в общий {mod 3} расчёт. */
@media (min-width:1080px){
  .steps:has(> :nth-child(8):last-child){grid-template-columns:repeat(2,1fr)}
}
.steps li{background:#fff; border:1px solid var(--paper-line); border-radius:16px; padding:22px}
.steps li::before{counter-increment:s; content:counter(s,decimal-leading-zero); display:block;
  font:500 18px/1 var(--m); color:var(--accent-on-paper); margin-bottom:12px}
/* Цвет объявляется вместе с фоном: карточка шага всегда белая, а раньше текст
   заголовка наследовался от секции — в тёмной секции получалось белое на белом
   (поймано на /sistemy/klassik/ 24.08.2026). CONTRAST_STANDARD, норма о наследовании. */
.steps b{display:block; font-family:var(--h); font-size:18px; margin-bottom:6px; color:var(--paper-text)}
.steps span{color:var(--paper-muted); font-size:15px; line-height:1.55}

/* ---------- карточка-заявка в дыре сетки (membro_cta_card/_obj/_step) ---------- */
/* Составные селекторы (.card.card-cta, а не просто .card-cta) специально:
   .paper .card и .paper .card p уже объявлены выше с той же специфичностью
   (два класса) — бледный .card-cta проиграл бы им внутри секций с классом
   .paper. Своя тёмная заливка держится в любой секции сайта. */
.card.card-cta{display:flex; flex-direction:column; background:linear-gradient(135deg,#20242A,#12141A);
          border-color:transparent}
.card.card-cta h3{color:var(--accent-on-dark)}
.card.card-cta p{color:#C7CBD1; flex:1}
.card.card-cta .btn{margin-top:14px; width:100%}

.card.card-cta-obj{padding:0}
.card.card-cta-obj .cta-art{aspect-ratio:8/5; background:linear-gradient(135deg,#20242A,#12141A);
                        display:flex; align-items:center; justify-content:center}
.card.card-cta-obj .cta-ico{width:32px; height:32px; color:var(--accent-on-dark)}
.card.card-cta-obj .cta-txt{padding:16px 20px 20px}
.card.card-cta-obj h3{margin:0 0 8px}
.card.card-cta-obj .btn{width:100%; margin-top:12px}

.steps li.step-cta{background:linear-gradient(135deg,#20242A,#12141A); border-color:transparent}
.steps li.step-cta::before{content:none}
.step-cta-ico{width:26px; height:26px; color:var(--accent-on-dark); display:block; margin-bottom:14px}
.steps li.step-cta b{color:#fff}
.steps li.step-cta span{color:#C7CBD1}
.steps li.step-cta .btn{margin-top:14px; width:100%}

/* ---------- FAQ ---------- */
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none; cursor:pointer; padding:20px 40px 20px 0; position:relative;
             font-family:var(--h); font-weight:600; font-size:18px; line-height:1.35; max-width:78ch}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+'; position:absolute; right:4px; top:18px; font:400 24px/1 var(--b); color:var(--accent-on-dark)}
.faq details[open] summary::after{content:'–'}
.faq .a{color:var(--muted); padding:0 0 20px; font-size:16px; max-width:68ch}
.faq .a p:last-child{margin-bottom:0}

/* ---------- калькулятор ----------
   Слева вопросы, справа результат. На десктопе панель результата липкая: человек
   меняет площадь и сразу видит, что изменилось, без прокрутки вверх-вниз. */
.calc{display:grid; gap:20px}
@media (min-width:941px){ .calc{grid-template-columns:1.15fr .85fr; gap:28px; align-items:start} }
.calc-q{display:grid; gap:16px; margin:0}
.q{border:1px solid var(--line); border-radius:16px; background:var(--block); padding:20px}
.q-h{font-family:var(--h); font-weight:600; font-size:17px; line-height:1.3; color:var(--text); margin:0 0 14px}
.opts{display:grid; gap:8px}
@media (min-width:560px){ .opts{grid-template-columns:repeat(2,1fr)} }
.opts label{display:flex; align-items:center; gap:10px; min-height:52px; padding:8px 14px;
            border:1px solid var(--line); border-radius:10px; cursor:pointer; font-size:15.5px; color:var(--muted)}
.opts input{position:absolute; opacity:0; width:1px; height:1px}
.opts label:hover{border-color:#3D444E; color:var(--text)}
.opts input:checked + span{color:var(--text); font-weight:500}
.opts label:has(input:checked){border-color:var(--accent); background:#1F2519}
.opts input:focus-visible + span{outline:2px solid var(--accent); outline-offset:3px}
.opts-check label{min-height:52px}
.area{display:flex; align-items:center; gap:12px}
.area input{width:100%; max-width:220px; min-height:56px; padding:14px; border-radius:10px; border:1px solid #333942;
            background:#0F1114; color:var(--text); font:600 22px/1 var(--h); margin:0}
.area .unit{color:var(--muted); font-size:16px}
.chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.chips button{min-height:44px; padding:0 16px; border-radius:999px; border:1px solid var(--line);
              background:none; color:var(--text); font:400 14.5px/1 var(--b); cursor:pointer}
.chips button:hover{border-color:var(--accent)}
.chips span{display:inline-flex; align-items:center; min-height:38px; padding:0 14px; border-radius:999px;
             border:1px solid var(--line); color:var(--muted); font:400 14.5px/1 var(--b)}
.paper .chips span{border-color:var(--paper-line); color:var(--paper-muted)}

.calc-r{background:var(--block); border:1px solid var(--line); border-radius:16px; padding:22px}
@media (min-width:941px){ .calc-r{position:sticky; top:calc(var(--hd) + 16px)} }
.calc-r .cap{font:500 13px/1 var(--m); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin:0 0 10px}
.calc-sum{padding-bottom:18px; border-bottom:1px solid var(--line)}
.calc-sum .big{font:700 clamp(26px,6vw,34px)/1.1 var(--h); color:var(--accent-on-dark); margin:0}
.calc-sum .per{color:var(--muted); font-size:14.5px; margin:8px 0 0}
.calc-block{padding:18px 0; border-bottom:1px solid var(--line)}
.calc-list{list-style:none; margin:0; padding:0; display:grid; gap:10px}
.calc-list li{display:flex; align-items:baseline; justify-content:space-between; gap:14px; font-size:15px; color:var(--muted)}
.calc-list b{color:var(--text); font-weight:600; white-space:nowrap; font-family:var(--m); font-size:14px}
.calc-list li:only-child, .calc-block:last-of-type .calc-list li{display:block}
/* на узком экране длинная подпись переносится, и значение повисает у первой
   строки — поэтому ниже 480 строка складывается в две: подпись, под ней число */
@media (max-width:480px){
  .calc-list li{display:grid; gap:2px}
  .calc-list b{justify-self:start}
}
.calc-note{margin:16px 0 18px; padding:14px; border-radius:10px; background:#22201A;
           border:1px solid #4A431F; color:#E6DFC8; font-size:13.5px; line-height:1.5}
.calc-r .btn{width:100%}
.calc-disclaimer{margin:24px 0 0; padding:16px 18px; border-radius:12px; background:#22201A;
                 border:1px solid #4A431F; color:#E6DFC8; font-size:14px; line-height:1.55; max-width:72ch}

/* ---------- заявка ---------- */
.lead-grid{display:grid; gap:20px}
/* Однотонная заявка — без снимка кровли (правки Олега 27.09.2026): фон и текст объявлены вместе. */
.zayavka-plain{background:#14171B; color:var(--text); border-top:1px solid var(--line)}
#zayavka .need{margin:12px 0 0; color:var(--muted); font-size:15.5px; line-height:1.55; max-width:72ch}
#zayavka .need b{color:var(--text); font-weight:600}
.form label .opt{color:var(--muted)}
@media (min-width:941px){ .lead-grid{grid-template-columns:.85fr 1.15fr; gap:32px; align-items:start} }
.contacts{background:var(--block); border:1px solid var(--line); border-radius:16px; padding:24px}
.contacts div + div{margin-top:6px; padding-top:12px; border-top:1px solid var(--line)}
.contacts a{display:inline-flex; align-items:center; min-height:44px; color:var(--text); font-size:17px; font-weight:500}
.contacts a:hover{color:var(--accent-on-dark)}
.contacts .cap{display:block; color:var(--muted); font-size:13px; font-family:var(--m);
               letter-spacing:.1em; text-transform:uppercase}
.contacts .note{margin:18px 0 0; color:var(--muted); font-size:14.5px; line-height:1.5}

.form{background:var(--block); border:1px solid var(--line); border-radius:16px; padding:22px; max-width:560px}
.form label{display:block; font-size:14px; color:var(--muted); margin:0 0 6px}
.form input,.form textarea,.form select{width:100%; min-height:52px; padding:14px; border-radius:10px;
  border:1px solid #333942; background:#0F1114; color:var(--text); font:400 16px/1.4 var(--b); margin-bottom:14px}
.form textarea{min-height:104px; resize:vertical}
.form ::placeholder{color:#7C838D; opacity:1}
.form input:focus,.form textarea:focus,.form select:focus{outline:2px solid var(--accent); outline-offset:1px}
@media (min-width:560px){
  .form .row2{display:grid; grid-template-columns:1fr 1fr; column-gap:14px}
  .form .row2 > *{min-width:0}
}
.file{margin-bottom:14px}
.file input{position:absolute; width:1px; height:1px; opacity:0; overflow:hidden}
.file label{display:flex; align-items:center; gap:10px; min-height:52px; padding:14px; margin:0;
  border:1px dashed #3D444E; border-radius:10px; color:var(--text); font-size:15px; cursor:pointer}
.file label:hover{border-color:var(--accent)}
.file input:focus-visible + label{outline:2px solid var(--accent); outline-offset:1px}
.file svg{width:20px; height:20px; flex:0 0 auto; color:var(--accent-on-dark)}
.agree{display:flex; gap:12px; align-items:flex-start; padding:6px 0 10px;
       font-size:13.5px; color:var(--muted); line-height:1.5}
.agree input{width:24px; min-height:24px; height:24px; margin:1px 0 0; flex:0 0 auto}
.agree a{color:var(--text); border-bottom:1px solid rgba(156,191,45,.55)}
.form .btn{width:100%}
.form-note{color:var(--muted); font-size:13.5px; margin:12px 0 0}
.ok,.err{border-radius:10px; padding:14px; margin-bottom:14px; font-size:15px}
.ok{background:#1F2519; border:1px solid var(--accent); color:var(--text)}
.err{background:#2A1A1A; border:1px solid #C0563F; color:#F2D9D3}

/* ---------- SEO-текст: ссылки подчёркиванием, а не заливкой цветом ---------- */
.seo-txt{color:var(--muted); font-size:15.5px}
.seo-txt h1{margin-bottom:8px}
.seo-txt h2{font-size:clamp(22px,4.8vw,28px); color:var(--text); margin-bottom:14px}
.seo-txt p{max-width:68ch}
/* Мера строки на 1440px: при 72ch первый абзац политики выходил на 91 знак при
   типографской норме 90 (приёмка /privacy/, 22.09.2026). Лид крупнее основного
   текста, поэтому его мера задаётся отдельно, а не наследуется от .lead. */
.seo-txt .lead{max-width:64ch}
.seo-txt a,.faq .a a{color:var(--text); border-bottom:1px solid rgba(156,191,45,.5)}
.seo-txt a:hover,.faq .a a:hover{border-bottom-color:var(--accent)}
.paper .seo-txt a{color:var(--paper-text); border-bottom:1px solid rgba(92,115,20,.55)}

/* ---------- крошки и утилиты ---------- */
.crumbs{display:flex; flex-wrap:wrap; align-items:center; gap:0 14px; font:400 13.5px/1.4 var(--b); color:var(--muted)}
.crumbs a{display:inline-flex; align-items:center; min-height:44px; color:var(--muted)}
.crumbs a:hover{color:var(--text)}
.mt-s{margin-top:18px}
/* Абзац-примечание под списком тянулся на всю ширину .wrap — на 1440px строка
   доходила до 131 знака при типографской норме 90 (приёмка /sistemy/layt-pm/,
   11.09.2026). Ширина текста ограничивается так же, как у .lead и .seo-txt p. */
p.mt-s{max-width:64ch}
/* Денежная сумма как один смысловой отрезок вне карточек с фиксированным
   форматированием — лид, вопрос FAQ, обычный абзац (price_wrap_lint). */
.nowrap{white-space:nowrap}
.mt-m{margin-top:16px}

/* ---------- подвал ---------- */
.ft{background:#0B0D10; border-top:1px solid var(--line); padding:48px 0 28px}
.ft-top{display:grid; gap:20px; margin-bottom:36px}
.ft-lg img{height:22px; width:auto}
.ft-top p{color:var(--muted); font-size:15px; margin:14px 0 0; max-width:44ch}
.ft-act{display:grid; gap:10px}
.ft-act .btn{width:100%}
@media (min-width:700px){
  .ft-top{grid-template-columns:1.4fr 1fr; align-items:center}
  .ft-act{grid-template-columns:auto auto; justify-content:end}
  .ft-act .btn{width:auto}
}
.ft-map{display:grid; gap:26px 28px; grid-template-columns:1fr}
.ft-h{font-family:var(--h); font-weight:600; font-size:15px; color:var(--text); margin:0 0 10px}
.ft-map a{display:block; padding:6px 0; color:var(--muted); font-size:14.5px}
.ft-h + .ft-h,.ft-h2{margin-top:22px}
.ft-map a:hover{color:var(--text)}
.ft-bot{border-top:1px solid var(--line); margin-top:32px; padding-top:20px;
        display:grid; gap:10px; color:#8A9199; font-size:13px}
.ft-bot a{color:#A6ADB5; white-space:nowrap}
@media (min-width:700px){ .ft-map{grid-template-columns:repeat(3,1fr)} }
@media (min-width:941px){ .ft-map{grid-template-columns:repeat(4,1fr)} .ft-bot{grid-template-columns:1fr auto} }

/* ---------- появление блоков ----------
   Контент прячется ТОЛЬКО когда скрипт жив: без .js страница обязана читаться. */
@media (prefers-reduced-motion:no-preference){
  html.js .rv{opacity:0; transform:translateY(14px); transition:opacity .5s ease, transform .5s ease}
  html.js .rv.in{opacity:1; transform:none}
}

/* ---------- страница услуги (money-посадка) ----------
   Первый экран без фотографии: кадр работает на главной, а на четырнадцати
   страницах услуг подряд он превращается в шум и тянет вес. Здесь важнее,
   чтобы сразу читались крошки, ответ на запрос, факты и якоря. */
.pg-head{border-top:0; padding:24px 0 56px}
.pg-head h1{max-width:18ch}
.pg-head .lead{margin-bottom:0}
@media (min-width:941px){ .pg-head{padding:32px 0 72px} }

/* Первый экран с фоновой картинкой (.pg-head.has-bg). Подложка та же логика,
   что у .hero: снизу плотнее, сверху прозрачнее — текст стоит внизу блока
   и должен читаться, а кадр кровли остаётся виден. */
.pg-head.has-bg{position:relative; overflow:hidden; border-radius:0;
                padding:120px 0 44px; min-height:min(56svh,460px);
                display:flex; align-items:flex-end}
.pg-head.has-bg .pg-bg,.pg-head.has-bg .pg-bg img{position:absolute; inset:0;
                width:100%; height:100%; object-fit:cover}
.pg-head.has-bg::after{content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(15,17,20,.55) 0%, rgba(15,17,20,.35) 34%,
             rgba(15,17,20,.66) 72%, rgba(15,17,20,.9) 100%)}
.pg-head.has-bg .wrap{position:relative; z-index:1}

/* Цвета текста поверх фотографии объявлены здесь целиком, а не наследуются.
   --muted даёт 7:1 на графите, но фон первого экрана — не графит, а светлый
   кадр кровли: серое по серому. На главной это уже было исправлено (.hero
   .lead), а страницы услуг остались с наследованием — заказчик 03.09.2026:
   «плохо читается серое на сером, лучше белым». Кадр кровли всегда светлый,
   поэтому здесь только светлые тона, независимо от того, что стоит в токенах. */
.pg-head.has-bg .crumbs{color:#DDE1E6}
.pg-head.has-bg .crumbs a{color:#DDE1E6}
.pg-head.has-bg .lead{color:#F2F4F6; text-shadow:0 1px 12px rgba(9,10,12,.45)}
.pg-head.has-bg h1{text-shadow:0 2px 18px rgba(9,10,12,.4)}
.pg-head.has-bg .facts b{color:#fff}
.pg-head.has-bg .facts span{color:#E4E7EB}
/* Подложка под текстом плотнее: лид лежит в средней трети, где градиент был
   прозрачнее всего (.35) и кровля просвечивала прямо под строками. */
.pg-head.has-bg::after{background:linear-gradient(180deg, rgba(15,17,20,.58) 0%,
             rgba(15,17,20,.48) 30%, rgba(15,17,20,.72) 68%, rgba(15,17,20,.92) 100%)}
@media (min-width:941px){ .pg-head.has-bg{padding:150px 0 60px; min-height:min(60svh,520px)} }

/* Строка прайса: работа слева, цена справа. Цена не переносится и не разрывается
   на «от 950» / «₽/м²» — сумма это один смысловой отрезок (price_wrap_lint). */
/* Ставка внутри общей сетки: сумма крупно сверху, за что она — под ней.
   Раньше строка была flex «подпись слева, цена справа», но в ряду из четырёх
   карточек подпись и сумма в одну строку не помещаются и текст рвётся по
   два слова. Порядок в разметке прежний (подпись, затем цена) — переворот
   делает column-reverse, чтобы разметку страниц не трогать. */
.factors li.price-row{display:flex; flex-direction:column-reverse; justify-content:flex-end; gap:8px}
.factors li.price-row b{margin-bottom:0; font-size:15.5px; font-weight:500; color:var(--paper-muted)}
.factors li.price-row .nowrap{white-space:nowrap; font:600 clamp(21px,2.2vw,26px)/1.1 var(--h);
                    color:var(--paper-text)}

/* Состав работ и документы: тот же каркас, что у слоёв пирога, но на светлом. */
.paper .layers{border-color:var(--paper-line)}
.paper .layers li{background:#fff; border-bottom-color:var(--paper-line)}
.paper .layers b{color:var(--paper-text)}
.paper .layers span{color:var(--paper-muted)}

/* Ссылка внутри текста отличается подчёркиванием, а не цветом: лайм закреплён
   за действием. Цвет объявляется вместе с фоном, наследование тут не годится. */
.price-note a,.faq .a a,.layers span a,
.tiles li a,.factors span a,.steps span a,
.pie-note a,
.sec-head .lead a,p.lead a,p.mt-s a,.wrap > p a{text-decoration:underline; text-underline-offset:3px;
                                       text-decoration-thickness:1px}
.paper .price-note a,.paper .layers span a{color:var(--paper-text)}
.faq .a a,.layers span a{color:var(--text)}
/* Цвет объявляется вместе с фоном: карточки .factors белые всегда, .tiles и
   абзацы живут на графите, в .paper — на светлом. 18.09.2026: ревью не увидело
   ссылок в тексте и трижды написало «добавить гиперссылку» — их не было видно. */
/* Карточки .factors и .steps белые в любой секции — ссылка в них тёмная.
   .tiles и абзацы живут на графите, а в .paper — на светлом. */
.factors span a,.steps span a{color:var(--paper-text)}
.tiles li a,.sec-head .lead a,p.lead a,p.mt-s a,.wrap > p a{color:var(--text)}
.paper .tiles li a,.paper .sec-head .lead a,
.paper p.lead a,.paper p.mt-s a,.paper .wrap > p a{color:var(--paper-text)}

/* ---------- полный прайс на отдельные работы (/montazh/cena/) ----------
   04.09.2026, документ 297: прайс должен быть текстом и HTML-таблицами, а не
   картинкой — так его читают пользователь, поисковик и ИИ-краулер. Секция тёмная
   (без .paper), поэтому цвета объявляются заново, вместе с фоном. На мобиле
   таблица не рвёт строки — скроллится горизонтально сама, текст остаётся в DOM. */
.ptable{margin-top:28px}
.ptable:first-of-type{margin-top:8px}
.ptable h3{font:600 17px/1.3 var(--h); color:var(--text); margin:0 0 12px}
.ptable-scroll{overflow-x:auto; border:1px solid var(--line); border-radius:14px;
               -webkit-overflow-scrolling:touch}
.ptable table{width:100%; border-collapse:collapse; min-width:560px; font-size:14.5px}
.ptable th,.ptable td{padding:12px 16px; text-align:left; border-bottom:1px solid var(--line);
                      vertical-align:top}
.ptable tr:last-child td{border-bottom:0}
.ptable th{background:var(--block); color:var(--muted); font:600 12.5px/1.3 var(--m);
           text-transform:uppercase; letter-spacing:.05em; white-space:nowrap}
.ptable td{color:var(--text)}
.ptable td.nowrap{white-space:nowrap; text-align:right; font-weight:500}
.ptable td:first-child{min-width:280px}

/* Та же таблица на светлой секции (.paper) — 11.09.2026, хаб /sistemy/.
   Цвета объявляются вместе с фоном: тёмные токены --text/--line на #F1F3F5
   дают белое по белому (гейт поймал 24 места, CONTRAST_STANDARD). */
.paper .ptable h3{color:var(--paper-text)}
.paper .ptable-scroll{border-color:var(--paper-line); background:#fff}
.paper .ptable th,.paper .ptable td{border-bottom-color:var(--paper-line)}
.paper .ptable th{background:var(--paper); color:var(--paper-muted)}
.paper .ptable td{color:var(--paper-text)}

/* ---------- показатели команды на светлой секции ----------
   Тот же приём, что в первом экране, но для .paper: цвета объявляются вместе
   с фоном, а не наследуются — иначе тёмные токены первого экрана дают белое
   по белому (CONTRAST_STANDARD). */
.paper .facts-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; margin-top:8px;
            background:var(--paper-line); border:1px solid var(--paper-line); border-radius:14px; overflow:hidden}
.paper .facts-grid > div{background:#fff; padding:22px 20px; min-width:0}
.paper .facts-grid b{display:block; font:700 clamp(24px,4vw,34px)/1.05 var(--h); color:var(--paper-text);
              letter-spacing:-.02em; white-space:nowrap}
.paper .facts-grid span{display:block; margin-top:8px; font:400 14px/1.4 var(--b); color:var(--paper-muted)}
@media (max-width:860px){ .paper .facts-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:420px){ .paper .facts-grid b{font-size:22px} }

/* Цифры-карточки на ТЁМНОМ первом экране (#cifry на «О компании»). Отдельный
   класс, а не .paper .facts-grid: тот красит карточки белым по белому фону и
   живёт только в светлых секциях. Здесь свои тёмные токены — иначе число и
   подпись слипаются в строку без стиля (CONTRAST_STANDARD, палитра ролей). */
.stat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:8px}
.stat-grid > div{background:var(--block); border:1px solid var(--line); border-radius:14px;
                 padding:22px 20px; min-width:0}
.stat-grid b{display:block; font:700 clamp(24px,4vw,34px)/1.05 var(--h); color:var(--text);
             letter-spacing:-.02em; white-space:nowrap}
.stat-grid b.fit{white-space:normal}
.stat-grid span{display:block; margin-top:8px; font:400 14px/1.4 var(--b); color:var(--muted)}
@media (max-width:860px){ .stat-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:420px){ .stat-grid b{font-size:22px} }
.no-top{border-top:0; padding-top:0}

/* ---------- квиз подбора решения ----------
   Заменил калькулятор 22.08: заказчик снял его как невыполнимый («смета из 100+
   позиций»), взамен согласовал квиз из нескольких вопросов с контактами в конце.
   Цвета объявлены вместе с фоном: секция светлая, токены — paper-*. */
.quiz{max-width:760px; margin-top:8px}
.quiz-bar{height:4px; background:var(--line); border-radius:999px; overflow:hidden}
.quiz-bar span{display:block; height:100%; background:var(--accent); transition:width .25s ease}
.quiz-num{margin-top:12px; font:500 13px/1 var(--b); color:var(--muted); letter-spacing:.04em}
.quiz-step{border:0; margin:0; padding:22px 0 0}
.quiz-step legend{padding:0; font:700 clamp(20px,4.4vw,27px)/1.2 var(--h); color:var(--text)}
.quiz-opts{display:grid; gap:12px; margin-top:20px}
@media (min-width:720px){ .quiz-opts{grid-template-columns:1fr 1fr} }
.quiz-opt{display:flex; align-items:center; min-height:60px; width:100%; padding:14px 18px; text-align:left;
          background:var(--block); color:var(--text); border:1px solid var(--line); border-radius:14px;
          font:500 16px/1.35 var(--b); cursor:pointer; transition:border-color .15s, background .15s}
.quiz-opt:hover{border-color:var(--accent); background:var(--block-2, var(--block))}
.quiz-back{margin-top:18px; background:none; border:0; padding:8px 0; color:var(--muted);
           font:500 14px/1 var(--b); cursor:pointer}
.quiz-back:hover{color:var(--text)}
.quiz-final .note{margin-top:10px; color:var(--muted); font-size:15px; line-height:1.5}
.quiz-final form{margin-top:20px}
.quiz-final .agree{display:flex; gap:10px; align-items:flex-start; margin:16px 0; font-size:14.5px; color:var(--muted)}
.quiz-final .agree input{margin-top:3px; flex-shrink:0}
.quiz-final .agree a{color:var(--text); text-decoration:underline}
#quiz-msg{margin-bottom:14px; padding:12px 16px; border-radius:12px; font-size:15px}
#quiz-msg.ok{background:#16351C; color:#CFE9D4; border:1px solid #2C5C36}
#quiz-msg.err{background:#3A1D1B; color:#F3D0CC; border:1px solid #6B322C}

/* ── Блог: лента и статья ───────────────────────────────────────────────
   Отдельный слой поверх общих секций. Колонка чтения ограничена по ширине
   намеренно: длинная строка на десктопе — та самая ловушка каскада, когда
   текст растягивается на 1180 px и глаз теряет начало следующей строки.
   Цвет объявляется вместе с фоном (CONTRAST_STANDARD): статья живёт на
   тёмном --ink, поэтому все её тона заданы явно, а не наследуются. */
.art-wrap{max-width:820px; margin-left:auto; margin-right:auto}
.art-meta{display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:24px;
  font:400 14px/1.4 var(--b); color:var(--muted)}
.art-meta span{display:inline-flex; align-items:center; gap:8px}
.art-meta span + span::before{content:''; width:4px; height:4px; border-radius:50%;
  background:var(--fg-soft); display:inline-block}

.art-tldr{border-top:1px solid var(--line); padding:40px 0}
/* «Коротко» — настоящий H2, поэтому и по размеру он заголовок: рубричный
   кегль 13px на теге H2 читается инструментами как заголовок мельче текста
   (page_ui_lint), а глазами — как подпись, потерявшая вес. */
.art-tldr .tldr-h{font-family:var(--h); font-weight:700; font-size:clamp(22px,5vw,28px);
  line-height:1.15; letter-spacing:-.01em; color:var(--accent-on-dark); margin:0 0 20px}
.art-tldr ul{list-style:none; margin:0; padding:0; display:grid; gap:12px}
.art-tldr li{position:relative; padding-left:26px; color:var(--text);
  font-size:clamp(16px,3.9vw,18px); line-height:1.5}
.art-tldr li::before{content:''; position:absolute; left:0; top:10px; width:12px; height:2px;
  background:var(--accent)}
.art-tldr b{color:var(--accent-on-dark); font-weight:600}

/* Только вертикальные отступы и по отдельности: этот класс висит на том же
   узле, что и .wrap, а сокращённая запись padding обнуляет его боковое поле —
   тогда весь текст статьи прилипает к краям экрана. */
.art-body{padding-top:8px; padding-bottom:56px; color:var(--text)}
.art-body p{margin:0 0 20px; font-size:clamp(16px,3.9vw,18px); line-height:1.62; color:#D7DBE0}
.art-body b{color:var(--text); font-weight:600}
.art-body h2{margin:48px 0 18px; font-size:clamp(26px,5.6vw,34px)}
.art-body h2:first-child{margin-top:16px}
.art-body h3{margin:32px 0 12px; font-size:clamp(20px,4.6vw,24px); font-weight:700; color:var(--text)}
.art-body a{color:var(--text); border-bottom:1px solid rgba(156,191,45,.55)}
.art-body a:hover{border-bottom-color:var(--accent)}
.art-body table{width:100%; border-collapse:collapse; margin:24px 0 28px; font-size:15px}
.art-body th,.art-body td{text-align:left; padding:14px 16px; border-bottom:1px solid var(--line);
  vertical-align:top; color:#D7DBE0}
.art-body th{font:600 13px/1.3 var(--b); letter-spacing:.02em; color:var(--text);
  background:var(--block)}
.art-body td:first-child{color:var(--text)}

/* Оглавление статьи (article-eeat: статья длиннее 1200 слов). Ссылка — блок
   высотой от 44 px: строкой в 21 px пальцем на телефоне не попасть (08.10.2026). */
.art-toc{margin:8px 0 32px; padding:20px 24px; background:var(--block); border:1px solid var(--line);
  border-radius:14px; color:var(--text)}
.art-body .art-toc p{margin:0 0 6px; font-size:15px; color:var(--text)}
.art-toc ol{margin:0; padding-left:22px; color:var(--muted)}
.art-body .art-toc a{display:flex; align-items:center; min-height:44px; border-bottom:0;
  font-size:clamp(15px,3.8vw,17px); line-height:1.35; color:var(--text)}
.art-body .art-toc a:hover{color:var(--accent-on-dark)}

/* Схемы и кадры в теле статьи. Растровый кадр обязателен: инлайновый SVG
   изображением не считается — в шаринге и SEO-разборе статья без <img>
   выглядит как материал без единой картинки. */
.fig{margin:28px 0 32px}
.fig svg,.fig img{width:100%; height:auto; display:block; border-radius:14px;
  border:1px solid var(--line)}
.fig figcaption{margin-top:12px; font:400 14px/1.5 var(--b); color:var(--muted)}
/* Кадр объекта на светлой секции: подпись берёт цвет секции (06.10.2026, Плёс на хабе типов объектов). */
.paper .fig figcaption{color:var(--paper-muted)}

.art-next{border-top:1px solid var(--line); padding:56px 0 72px}
.art-cta{background:var(--block); border:1px solid var(--line); border-radius:18px; padding:28px}
.art-cta h2{font-size:clamp(24px,5.2vw,30px); color:var(--text)}
.art-cta p{margin:14px 0 0; color:var(--muted); font-size:clamp(15px,3.7vw,17px); line-height:1.55}
.art-links{margin:24px 0 0; color:var(--muted); font-size:15px; line-height:1.7}
.art-links a{color:var(--text); border-bottom:1px solid rgba(156,191,45,.5)}
.art-links a:hover{border-bottom-color:var(--accent)}

.card-cover{width:100%; height:auto; display:block; border-radius:10px; margin:-4px 0 16px}
.card-date{margin-top:14px !important; font:400 13px/1 var(--b); color:var(--fg-soft)}
@media (min-width:700px){
  .art-tldr{padding:48px 0}
  .art-body{padding-bottom:64px}
}

/* Таблица «ошибка → последствие» на телефоне.
   Две колонки живого текста в 390 px не помещаются: таблица распирает страницу
   шире экрана, и вместе с ней уезжает весь текст статьи (это ловил
   mobile_gutter_lint 24.08.2026). Горизонтальный скролл внутри статьи — плохое
   решение: читатель его не находит. Поэтому на узких экранах строка становится
   карточкой: сверху ошибка, снизу последствие. */
@media (max-width:699px){
  .art-body table,.art-body tbody,.art-body tr,.art-body td{display:block; width:100%}
  /* Именно display:none, а не clip: спрятанная клипом строка сохраняет
     геометрию и вылезает за поле — гейт видит её как нарушение. Подписи
     колонок не теряются: они продублированы в самих карточках. */
  .art-body thead{display:none}
  .art-body tr{border:1px solid var(--line); border-radius:12px; padding:16px; margin-bottom:12px;
    background:var(--block)}
  .art-body td{border:0; padding:0}
  .art-body td:first-child{font-weight:600; color:var(--text); margin-bottom:8px}
  .art-body td:last-child{color:#C3C9D0; font-size:15px; line-height:1.5}
  .art-body td:last-child::before{content:'→ '; color:var(--accent-on-dark)}
}

/* Вторая кнопка на светлой секции. .btn-2 нарисована для графита: у неё
   полупрозрачная тёмная заливка и светлый текст. На бумажном фоне заливка
   почти исчезает, и светлый текст даёт 4.08 при норме 4.5 (page_ui_lint).
   Цвет объявляется вместе с фоном — правило CONTRAST_STANDARD. */
.paper .btn-2{background:transparent; color:var(--paper-text); border-color:#AEB4BD}
.paper .btn-2:hover{border-color:var(--paper-text)}


/* ---------- плавающая кнопка заявки ----------
   Норма gold-standard §C. Своя пара цветов объявляется здесь: кнопка живёт
   поверх любой секции, наследовать тон родителя ей нельзя. */
.cta-float{position:fixed; right:16px; bottom:16px; z-index:60;
           display:inline-flex; align-items:center; min-height:52px; padding:0 24px;
           border-radius:999px; background:var(--accent); color:var(--accent-text);
           font:700 16px/1 var(--h); text-decoration:none; letter-spacing:-.01em;
           box-shadow:0 10px 28px rgba(0,0,0,.38);
           opacity:0; visibility:hidden; transform:translateY(12px);
           transition:opacity .22s ease, transform .22s ease, visibility .22s;}
.cta-float.on{opacity:1; visibility:visible; transform:none}
.cta-float:hover{filter:brightness(1.06)}
/* Поле у плавающей кнопки — 20 px, как у всей мобильной вёрстки: при 16 px
   приёмка ловит её как нарушение бокового поля, но только когда успевает
   застать кнопку показанной (/baza/pirog/, 22.09.2026). */
@media (max-width:520px){ .cta-float{left:20px; right:20px; justify-content:center} }
@media (prefers-reduced-motion:reduce){ .cta-float{transition:none} }

/* ---------- плитки объектов (/proekty/) ----------
   03.09.2026. Заказчик: «карточки как будто в ворде, не красиво» — и прислал
   образец: сетка плиток, на кадре тип объекта и номер, под кадром название
   и площадь одной строкой, три строки паспорта с иконками, внизу ссылка на
   объект. Образец был оранжевый, цвета берём свои из палитры. Это отменяет
   его требование от 28.08 чередовать фото слева и справа.

   Сетка — на широком экране, как у него. На телефоне те же плитки едут лентой
   со snap: восемь плиток столбиком — это экран прокрутки вместо обзора.
   Прокрутка нативная, стрелок нет — свайп работает без скрипта.
   Цвета объявлены вместе с фоном: секция светлая, значит токены paper-*
   и --accent-on-paper для акцента (CONTRAST_STANDARD). */
.pr-rail{list-style:none; margin:0; padding:4px 0 18px; display:grid;
         grid-auto-flow:column; grid-auto-columns:86%; gap:16px;
         overflow-x:auto; overscroll-behavior-x:contain;
         scroll-snap-type:x mandatory; scrollbar-width:thin;
         scrollbar-color:var(--paper-line) transparent}
.pr-rail::-webkit-scrollbar{height:6px}
.pr-rail::-webkit-scrollbar-thumb{background:var(--paper-line); border-radius:3px}
.pr-rail::-webkit-scrollbar-track{background:transparent}

@media (min-width:760px){
  .pr-rail{grid-auto-flow:row; grid-template-columns:repeat(2,1fr); gap:20px;
           overflow-x:visible; scroll-snap-type:none; padding-bottom:0}
}
@media (min-width:1080px){
  .pr-rail{grid-template-columns:repeat(3,1fr)}
  /* Число колонок — по числу плиток, класс руками не ставим. В три колонки
     ровно ложится всё, кроме остатка в одну плитку: 4, 7, 10 и 13 объектов
     оставили бы её внизу одну — ровно то, на что заказчик жаловался 02.09
     и 03.09. Для них две колонки. */
  .pr-rail:has(> :nth-child(4):last-child),
  .pr-rail:has(> :nth-child(7):last-child),
  .pr-rail:has(> :nth-child(10):last-child),
  .pr-rail:has(> :nth-child(13):last-child){grid-template-columns:repeat(2,1fr)}
}

.pr{display:flex; flex-direction:column; background:#fff; border:1px solid var(--paper-line);
    border-radius:16px; overflow:hidden; min-width:0; scroll-snap-align:start;
    scroll-margin-top:calc(var(--hd) + 20px); transition:border-color .2s ease}
@media (hover:hover){ .pr:hover{border-color:var(--accent)} }
.pr-shot{position:relative; display:block; min-width:0; background:var(--paper-line)}
.pr-shot .shot{display:block; outline-offset:-3px}
.pr-shot .shot-hidden{display:none}
.pr-shot picture{display:block}
.pr-shot img{display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover;
             transition:transform .45s ease}
@media (hover:hover){ .pr-shot .shot:hover img{transform:scale(1.04)} }

/* Тип объекта и номер лежат на кадре. Фотография — не фон с известным цветом,
   поэтому у обоих свой фон, объявленный вместе с цветом надписи: иначе на
   светлом кадре подпись пропадает. Вес селектора не для красоты: правило
   `.paper p` весит больше одноклассового и перекрашивало обе надписи в серый
   (контраст-линт 03.09.2026). Привязка была к `.paper`, но карточка сама
   белая и встречается и вне тёмной секции — на странице объекта площадь
   вышла белым по белому (21.09.2026). Поэтому вес держит `.pr`, а не секция:
   карточка отвечает за свои цвета сама. */
.pr .pr-kind{position:absolute; left:12px; top:12px; margin:0; padding:6px 11px; border-radius:999px;
         background:#fff; color:var(--accent-on-paper); border:1px solid var(--accent-on-paper);
         font:600 13px/1.2 var(--b); letter-spacing:.03em; text-transform:uppercase}
.pr .pr-no{position:absolute; right:12px; top:12px; margin:0; padding:4px 9px; border-radius:8px;
       background:rgba(15,17,20,.72); color:#fff; font:500 13px/1.2 var(--m); letter-spacing:.06em}

.pr-txt{display:flex; flex-direction:column; flex:1; padding:18px 20px 0; min-width:0}
/* Название и площадь — одной строкой, площадь прижата вправо и не переносится. */
.pr-head{display:flex; align-items:baseline; justify-content:space-between; gap:14px}
.pr-head h3{margin:0; font-size:17.5px; line-height:1.3; color:var(--paper-text); min-width:0}
.pr .pr-area{margin:0; flex:0 0 auto; white-space:nowrap;
         font:700 17.5px/1.3 var(--h); color:var(--accent-on-paper); letter-spacing:-.01em}

.pr-spec{margin:14px 0 0; padding:14px 0 0; border-top:1px solid var(--paper-line);
         display:grid; gap:10px}
.pr-spec > div{display:grid; grid-template-columns:minmax(0,auto) minmax(0,1fr);
               align-items:start; gap:12px; min-width:0}
.pr-spec dt{display:flex; align-items:center; gap:8px; margin:0;
            font:400 13.5px/1.45 var(--b); color:var(--paper-muted)}
.pr-spec dd{margin:0; text-align:right; font:400 13.5px/1.45 var(--b); color:var(--paper-text);
            overflow-wrap:anywhere}
.pr-ico{width:17px; height:17px; flex:0 0 auto; color:var(--accent-on-paper)}

.pr-more{display:flex; align-items:center; justify-content:space-between; gap:12px;
         margin-top:auto; padding:14px 0; min-height:44px;
         border-top:1px solid var(--paper-line);
         font:500 15px/1 var(--b); color:var(--accent-on-paper)}
.pr-more .pr-arrow{transition:transform .2s ease}
.pr-more:hover .pr-arrow{transform:translateX(3px)}

/* Девятая плитка сетки объектов — «Реализуем ваш проект» с образца заказчика,
   04.09.2026 перенесена с отдельной строки под сеткой на место пустого угла
   последней строки (8 объектов в три колонки). Строится по той же схеме, что
   и карточка объекта — арт-зона 4/3 сверху, текст и ссылка снизу — чтобы не
   выглядеть пустым текстом на всю высоту строки рядом с фото-карточками. */
.pr-cta-art{aspect-ratio:4/3; display:flex; align-items:center; justify-content:center;
            background:linear-gradient(135deg,#20242A,#12141A)}
.pr-cta-ico{width:34px; height:34px; color:var(--accent-on-dark)}
.pr-cta-tile .pr-txt{padding-bottom:0}
.paper .pr-cta-d{margin:10px 0 0; font:400 14.5px/1.55 var(--b); color:var(--paper-muted)}
/* Полноширинная акцентная полоса вместо обычной ссылки .pr-more: эта плитка —
   действие, а не карточка «посмотреть», поэтому кнопка залита и без бордера,
   выходит за padding .pr-txt (-20px) и стоит вровень с закруглением карточки
   (обрезается overflow:hidden родителя, свой radius не нужен). */
.pr-cta-more{margin:14px -20px 0; padding:14px 20px; min-height:48px;
             background:var(--accent); color:var(--accent-text); border-top:none;
             font-weight:600}
.pr-cta-more:hover{background:#ACD139}

@media (prefers-reduced-motion:reduce){
  .pr,.pr-more .pr-arrow{transition:none}
}

/* Строка нормативов под техническими блоками. Секция тонкая: это сноска,
   а не раздел, поэтому вертикальные отступы меньше обычных 64px — но не
   меньше нормы ритма (28px на телефоне, 36 на десктопе), иначе секция
   слипается с соседями (page_ui_lint.js, поймано гейтом 04.09.2026 —
   26px было ниже нормы на обеих ширинах, дефект жил на всех шести
   страницах /montazh/*, где стоит компонент). Секция тёмная — цвет текста
   и ссылки объявлены здесь же (CONTRAST_STANDARD). */
.normy{padding:28px 0; background:var(--ink)}
.normy p{margin:0; max-width:92ch; color:var(--muted); font:400 14.5px/1.6 var(--b)}
.normy a{color:var(--accent-on-dark); border-bottom:1px solid rgba(156,191,45,.35); white-space:nowrap}
.normy a:hover{border-bottom-color:var(--accent-on-dark)}

@media (min-width:941px){ .normy{padding:36px 0} }

/* ---------- просмотрщик кадров ----------
   Разметка создаётся lightbox.js. Тёмная подложка одинакова в обеих темах,
   поэтому все цвета внутри заданы явно и ничего не наследуют. */
html.lb-on{overflow:hidden}
/* Липкая шапка и плавающая кнопка живут на z-index 60 и просвечивали сквозь
   подложку: пока кадр открыт, страницы под ним для читателя нет. */
html.lb-on .hd,html.lb-on .cta-float{opacity:0; pointer-events:none}
.lb{position:fixed; inset:0; z-index:200; display:none; background:rgba(9,10,12,.97);
    color:#fff; align-items:center; justify-content:center;
    padding:64px 16px 24px; overscroll-behavior:contain}
.lb.on{display:flex}
.lb-bar{position:absolute; top:0; left:0; right:0; height:56px; display:flex; align-items:center;
        justify-content:space-between; gap:12px; padding:0 12px 0 20px}
.lb-num{font:500 14px/1 var(--m,var(--b)); color:#C9CED6; letter-spacing:.04em}
.lb-x,.lb-nav{display:inline-flex; align-items:center; justify-content:center;
              width:44px; height:44px; padding:0; border:0; border-radius:999px;
              background:rgba(255,255,255,.10); color:#fff; cursor:pointer;
              transition:background .2s ease}
.lb-x:hover,.lb-nav:hover{background:rgba(255,255,255,.20)}
.lb-x:focus-visible,.lb-nav:focus-visible{outline:2px solid #fff; outline-offset:2px}
.lb-x svg,.lb-nav svg{width:22px; height:22px}
.lb-nav{position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px}
.lb-prev{left:12px}
.lb-next{right:12px}
.lb-fig{margin:0; max-width:min(1500px,100%); max-height:100%; display:flex; flex-direction:column;
        align-items:center; gap:14px}
.lb-fig img{display:block; max-width:100%; max-height:calc(100vh - 190px); width:auto; height:auto;
            border-radius:12px; object-fit:contain}
.lb-cap{font:400 14.5px/1.45 var(--b); color:#C9CED6; text-align:center; max-width:70ch}
@media (max-width:700px){
  .lb{padding:56px 8px 16px}
  .lb-nav{width:44px; height:44px}
  .lb-prev{left:4px}
  .lb-next{right:4px}
  .lb-fig img{max-height:calc(100vh - 170px)}
}
@media (prefers-reduced-motion:reduce){
  .pr-shot img,.lb-x,.lb-nav{transition:none}
  .pr-shot .shot:hover img{transform:none}
}


/* ---------- разрез кровли рендером с выносками ----------
   16.09.2026. Рендер даёт объём и материалы, подписи живут в разметке: номер
   на кадре и номер в списке — одна цифра. Маркер позиционируется в процентах
   от кадра, поэтому не разъезжается ни на 390, ни на 1440. */
.shema{display:grid; gap:20px}
.shema figure{
  position:relative; margin:0; background:var(--block);
  border:1px solid var(--line); border-radius:16px; padding:10px;
}
.shema figure img{width:100%; height:auto; display:block; border-radius:10px}
/* Кнопка — прозрачная тач-зона 44×44 (минимум мобильного стандарта), видимый
   кружок сидит внутри неё: палец попадает по норме, кадр не загромождён. */
.shema .pin{
  position:absolute; transform:translate(-50%,-50%);
  width:44px; height:44px; padding:0; border:0; background:none;
  display:flex; align-items:center; justify-content:center;
}
.shema .pin i{
  min-width:24px; height:24px; padding:0 6px;
  display:flex; align-items:center; justify-content:center;
  border-radius:12px; font-style:normal;
  background:var(--accent); color:var(--accent-text);
  font:700 13px/1 var(--m);
  box-shadow:0 0 0 3px rgba(15,17,20,.75);
  transition:transform .16s ease, box-shadow .16s ease;
}
.shema-list{list-style:none; margin:0; padding:0; display:grid; gap:10px; align-self:start}
.shema-list li{display:grid; grid-template-columns:24px 1fr; gap:10px; align-items:start}
.shema-list b{
  min-width:24px; height:24px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent); color:var(--accent-text);
  font:700 13px/1 var(--m);
}
.shema-list span{color:var(--muted); font-size:15px; line-height:1.55}
@media (min-width:941px){
  .shema{grid-template-columns:1.15fr .85fr; gap:28px; align-items:start}
  .shema .pin i{min-width:28px; height:28px; border-radius:14px; font-size:14px}
}

/* ---------- дерево классификации (лист заказчика 14.09.2026) ----------
   Его рисунок: понятие сверху, бренды ветками, внутри бренда линейка и её
   исполнения, внизу общий ряд толщин — на листе они обведены кружками.
   Раскладка меняется по ширине: на широком экране ветвление сверху вниз,
   на телефоне — отступами с левой направляющей. Горизонтального скролла нет
   ни там, ни там. */
.derevo{--dl:#39414B; display:grid; gap:0}
.derevo .node{margin:0}
.derevo-root{margin:0; display:flex; justify-content:center}
.derevo-root span{
  display:inline-flex; align-items:center; min-height:44px; padding:0 20px;
  border-radius:12px; background:var(--accent); color:var(--accent-text);
  font:700 17px/1.2 var(--h); text-align:center;
}
.derevo-brands{display:grid; gap:14px; position:relative; padding-left:20px; margin-top:14px}
.derevo-brands::before{content:''; position:absolute; left:7px; top:-14px; bottom:14px; width:2px; background:var(--dl)}
.derevo-brand{position:relative; min-width:0}
/* Длинное имя узла («VARIMAT 300 / 500 / 700») не должно растягивать колонку
   грида: 16.09.2026 страница оборудования из-за этого уехала на 488 px вправо. */
.node-brand,.node-line{max-width:100%; overflow-wrap:anywhere}
.derevo-lines,.derevo-marks{max-width:100%; min-width:0}
.derevo-brand::before{content:''; position:absolute; left:-13px; top:21px; width:13px; height:2px; background:var(--dl)}
.node-brand{
  display:inline-flex; align-items:center; min-height:42px; padding:0 16px;
  border-radius:11px; background:var(--block); border:1.5px solid var(--accent);
  color:var(--text); font:700 16px/1.2 var(--h);
}
.node-brand a{color:var(--accent-on-dark)}
.node-brand a:hover{text-decoration:underline}
.derevo-lines{list-style:none; margin:10px 0 0; padding:0 0 0 20px; position:relative; display:grid; gap:8px}
.derevo-lines::before{content:''; position:absolute; left:7px; top:-10px; bottom:18px; width:2px; background:var(--dl)}
.derevo-lines > li{position:relative}
.derevo-lines > li::before{content:''; position:absolute; left:-13px; top:18px; width:13px; height:2px; background:var(--dl)}
.node-line{
  /* Высота не фиксируется: длинное имя вроде «Дюбель тарельчатый кровельный»
     переносится на две строки, и при жёсткой высоте текст выходил за рамку. */
  display:inline-flex; align-items:center; min-height:36px; padding:7px 13px;
  border-radius:9px; background:var(--block); border:1px solid var(--line);
  color:var(--text); font:600 15px/1.25 var(--m);
}
.derevo-marks{list-style:none; margin:8px 0 0; padding:0 0 0 20px; display:flex; flex-wrap:wrap; gap:6px; position:relative}
.derevo-marks::before{content:''; position:absolute; left:7px; top:-8px; height:20px; width:2px; background:var(--dl)}
.derevo-marks li{
  padding:5px 11px; border-radius:8px;
  background:#20252B; color:var(--muted); font:500 14px/1.2 var(--m);
}
.derevo-th-kick{margin:18px 0 10px; color:var(--muted); font-size:14px; text-align:center}
.derevo-th{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:10px; justify-content:center}
.derevo-th li{
  min-width:84px; padding:9px 16px; border-radius:999px; text-align:center;
  border:1.5px solid var(--accent); color:var(--accent-on-dark);
  font:600 15px/1.2 var(--m); background:transparent;
}
.paper .derevo-th li{color:var(--accent-on-paper); border-color:var(--accent-on-paper)}
.paper .node-brand,.paper .node-line{background:#fff; color:var(--paper-text)}
.paper .node-brand a{color:var(--accent-on-paper)}   /* лайм-на-белом даёт 2.5:1 — берём тёмный тон роли */
.paper .node-brand{border-color:var(--accent-on-paper)}
.paper .derevo-lines::before,.paper .derevo-brands::before,.paper .derevo-brand::before,
.paper .derevo-marks::before,.paper .derevo-root::after{background:#C3C9D0}
.paper .derevo-marks li{background:var(--paper-line); color:var(--paper-muted)}
.paper .derevo-th-kick{color:var(--paper-muted)}

/* Широкий экран — ветвление сверху вниз, как он и рисует на листе. */
@media (min-width:941px){
  .derevo-brands{
    grid-template-columns:repeat(4,1fr); gap:20px; padding-left:0; margin-top:0;
    padding-top:34px; align-items:start;
  }
  /* перемычка между центрами крайних колонок: 1/8 ширины с каждого края */
  .derevo-brands::before{content:''; left:12.5%; right:12.5%; top:16px; bottom:auto; width:auto; height:2px}
  .derevo-brand{display:grid; justify-items:center; text-align:center}
  .derevo-brand::before{left:50%; top:-18px; width:2px; height:18px; transform:translateX(-1px)}
  .derevo-root{position:relative; padding-bottom:16px}
  .derevo-root::after{content:''; position:absolute; left:50%; bottom:0; width:2px; height:16px; background:var(--dl); transform:translateX(-1px)}
  /* Внутри бренда — та же ось с усиками, что и на телефоне: столбик по центру
     читался цепочкой «линейка → линейка», а у заказчика это ветки одного
     бренда. Ось прижата к левому краю колонки, сам бренд остаётся по центру. */
  .derevo-brand{justify-items:center}
  .derevo-lines{justify-self:stretch; justify-items:start; text-align:left; gap:14px;
                padding-left:20px; padding-top:20px; margin-top:0}
  .derevo-lines::before{left:7px; top:0; bottom:20px; height:auto; width:2px; transform:none}
  .derevo-lines > li{display:grid; justify-items:start}
  .derevo-lines > li::before{display:block; left:-13px; top:18px; width:13px; height:2px}
  .derevo-marks{justify-content:flex-start; padding-left:20px; padding-top:0; margin-top:8px}
  .derevo-marks::before{left:7px; top:-8px; height:20px; transform:none}
}

/* ---------- карточка элемента материала ---------- */
.card-el picture{display:block; margin:-2px -2px 14px}
.card-el img{width:100%; height:auto; display:block; border-radius:12px}

/* ---------- парная подсветка: маркер на кадре ↔ строка списка ----------
   16.09.2026. Наведение, фокус или тап по одному элементу пары подсвечивает
   второй. Mobile-first: на телефоне hover не существует, поэтому состояние
   даёт тап, а не :hover — стили висят на классе .is-on, который ставит скрипт.
   Без скрипта блок просто остаётся статичным и читаемым. */
.vh{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
    clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0}

.shema .pin{cursor:pointer; -webkit-appearance:none; appearance:none; font-family:var(--m)}
.shema .pin:focus-visible{outline:none}
.shema .pin:focus-visible i{outline:2px solid var(--accent); outline-offset:3px}
/* Активный маркер крупнее и с кольцом — его видно на любом фоне кадра. */
.shema .pin.is-on i{transform:scale(1.22);
                     box-shadow:0 0 0 3px var(--ink), 0 0 0 6px rgba(156,191,45,.45)}
/* Пока одна пара подсвечена, остальные приглушаются: глазу видно, о чём речь. */
.shema.has-on .pin:not(.is-on){opacity:.45}
.shema.has-on .shema-list li:not(.is-on){opacity:.5}
/* Без отрицательного поля по бокам: подсветка вылезала за список на 8 px,
   и приёмка ловила это как наезд пункта на блок (07.10.2026). */
.shema-list li{cursor:pointer; border-radius:10px; padding:4px 8px; margin:-4px 0;
                transition:background .16s ease, opacity .16s ease}
.shema-list li.is-on{background:rgba(156,191,45,.10)}
.shema-list li.is-on span{color:var(--text)}
.shema-list li.is-on b{box-shadow:0 0 0 3px rgba(156,191,45,.28)}
.paper .shema-list li.is-on{background:rgba(92,115,20,.10)}
.paper .shema-list li.is-on span{color:var(--paper-text)}
@media (prefers-reduced-motion:reduce){
  .shema .pin i,.shema-list li{transition:none}
  .shema .pin.is-on i{transform:none}
}

/* ---------- формула имени позиции ----------
   Ступени слева, собранное имя справа: наведение или тап по ступени
   подсвечивает её кусок в строке. Mobile-first: на телефоне ступени идут
   столбиком, строка имени — под ними и переносится по словам. */
.formula{display:grid; gap:20px}
.formula-steps{list-style:none; margin:0; padding:0; display:grid; gap:10px; counter-reset:f}
.formula-steps > li{
  position:relative; display:grid; grid-template-columns:28px 1fr; gap:4px 12px;
  padding:14px 16px; border-radius:14px; cursor:pointer;
  background:var(--block); border:1px solid var(--line);
  transition:border-color .16s ease, background .16s ease, opacity .16s ease;
}
.formula-steps > li:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.formula-num{
  grid-row:1 / span 2; align-self:start;
  width:28px; height:28px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:#20252B; color:var(--muted); font:700 13px/1 var(--m);
  transition:background .16s ease, color .16s ease;
}
.formula-kick{font:600 13px/1 var(--m); letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.formula-v{grid-column:2; font:700 17px/1.25 var(--h); color:var(--text)}
.formula-d{grid-column:2; color:var(--muted); font-size:14.5px; line-height:1.5}
.formula-steps > li.is-on{border-color:var(--accent); background:#1C2129}
.formula-steps > li.is-on .formula-num{background:var(--accent); color:var(--accent-text)}
.formula.has-on .formula-steps > li:not(.is-on){opacity:.55}

.formula-out{
  align-self:start; padding:18px; border-radius:16px;
  background:var(--block); border:1px solid var(--line);
}
.formula-out-kick,.formula-note{margin:0; color:var(--muted); font-size:13.5px; line-height:1.5}
.formula-note{margin-top:12px}
.formula-line{
  margin:10px 0 0; font:700 18px/1.6 var(--m); color:var(--muted);
  overflow-wrap:break-word;
}
.formula-line span{
  padding:2px 6px; border-radius:7px; white-space:nowrap;   /* кусок имени не рвётся посередине */
  transition:background .16s ease, color .16s ease;
}
.formula-line span.is-on{background:var(--accent); color:var(--accent-text)}
.paper .formula-steps > li,.paper .formula-out{background:#fff; border-color:var(--paper-line)}
.paper .formula-v{color:var(--paper-text)}
.paper .formula-kick,.paper .formula-d,.paper .formula-out-kick,.paper .formula-note,.paper .formula-line{color:var(--paper-muted)}
.paper .formula-steps > li.is-on{border-color:var(--accent-on-paper); background:#F7F9F2}
@media (min-width:941px){
  .formula{grid-template-columns:1.1fr .9fr; gap:28px; align-items:start}
  .formula-line{font-size:20px}
}
@media (prefers-reduced-motion:reduce){
  .formula-steps > li,.formula-num,.formula-line span{transition:none}
}

/* ---------- типы армирования ---------- */
.armir{display:grid; gap:14px}
.armir-card{
  padding:18px; border-radius:16px; background:var(--block); border:1px solid var(--line);
}
.armir-z{margin:0 0 8px; font:600 13px/1 var(--m); letter-spacing:.08em; text-transform:uppercase; color:var(--accent-on-dark)}
.armir-card h3{margin:0 0 8px; font:700 19px/1.25 var(--h)}
.armir-d{margin:0; color:var(--muted); font-size:15px; line-height:1.55}
.armir-m{list-style:none; margin:14px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px}
.armir-m li{padding:5px 10px; border-radius:8px; background:#20252B; color:var(--muted); font:500 13.5px/1.2 var(--m)}
.paper .armir-card{background:#fff; border-color:var(--paper-line)}
.paper .armir-z{color:var(--accent-on-paper)}
.paper .armir-d{color:var(--paper-muted)}
.paper .armir-m li{background:var(--paper-line); color:var(--paper-muted)}
@media (min-width:700px){ .armir{grid-template-columns:repeat(2,1fr); gap:16px} }
@media (min-width:1081px){ .armir{grid-template-columns:repeat(4,1fr)} }

/* Число колонок дерева — по числу веток, чтобы две ветки не растягивались
   на четыре колонки, а перемычка шла ровно между крайними. */
@media (min-width:941px){
  .derevo-2 .derevo-brands{grid-template-columns:repeat(2,1fr)}
  .derevo-2 .derevo-brands::before{left:25%; right:25%}
  .derevo-3 .derevo-brands{grid-template-columns:repeat(3,1fr)}
  .derevo-3 .derevo-brands::before{left:16.6%; right:16.6%}
}

/* ---------- лента-карусель (отзывы и любые карточки в строку) ----------
   17.09.2026, перенос приёма с СК ЛЮДИ. Устройство там выверено живыми
   замечаниями заказчика: мягкий ход, доводка до карточки, кольцо из копий,
   протяжка мышью. Здесь — та же механика в палитре МЕМБРО: тёмная секция,
   карточка на --block, фокусная светлее и с лаймовым кольцом у медальона. */
.trk-box{position:relative; --trk-pad:max(var(--pad),(100% - var(--max)) / 2 + var(--pad))}
.trk{
  display:flex; gap:16px; overflow-x:auto;
  scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch;
  scroll-padding-left:var(--trk-pad);
  padding:6px var(--trk-pad) 18px;
  scrollbar-width:none; cursor:grab;
}
.trk::-webkit-scrollbar{display:none}
.trk>*{scroll-snap-align:start}
@media (hover:none){ .trk{scroll-snap-type:x mandatory} }
.trk:focus-visible{outline:2px solid var(--accent); outline-offset:-2px; border-radius:18px}
.trk.is-drag{cursor:grabbing; user-select:none}
.trk.is-drag a,.trk.is-drag img,.trk.is-drag picture{pointer-events:none}

/* Мягкая кромка: карточка въезжает в кадр из размытия, текст в середине
   остаётся резким. Цвет берётся от фона секции. */
.trk-box{--trk-edge:var(--ink)}
.paper .trk-box{--trk-edge:var(--paper)}
.trk-box::before,.trk-box::after{
  content:""; position:absolute; top:0; bottom:var(--trk-foot-h,56px);
  width:clamp(20px,5vw,72px); pointer-events:none; z-index:2;
}
.trk-box::before{left:0;  background:linear-gradient(90deg,var(--trk-edge) 6%,transparent 100%)}
.trk-box::after {right:0; background:linear-gradient(270deg,var(--trk-edge) 6%,transparent 100%)}

/* Центрируемая лента: карточка в фокусе крупнее соседних. Масштаб не меняет
   место карточки в потоке, поэтому шаг ленты и точки не разъезжаются. */
.trk--center>*{
  scroll-snap-align:center; transform:scale(.95); transform-origin:center;
  transition:transform .5s cubic-bezier(.22,.61,.36,1), background-color .5s ease, box-shadow .5s ease;
}
.trk--center>.is-mid{transform:none}

.trk-foot{display:flex; align-items:center; justify-content:center; gap:14px; margin-top:2px}
.trk-arr{
  width:46px; height:46px; flex:none; border:0; border-radius:50%; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent); color:var(--accent-text);
  transition:transform .18s ease, opacity .18s ease;
}
.trk-arr svg{width:20px; height:20px}
.trk-arr:hover{transform:translateY(-2px)}
.trk-arr[disabled]{background:var(--block); color:var(--muted); cursor:default; transform:none}
.trk-arr:focus-visible{outline:2px solid var(--accent); outline-offset:3px}
.trk-dots{display:flex; align-items:center; gap:5px}
.trk-dot{
  width:8px; height:8px; padding:0; border:0; border-radius:50%; cursor:pointer;
  background:var(--line); transition:background .2s ease, transform .2s ease;
}
.trk-dot.is-on{background:var(--accent); transform:scale(1.35)}
.trk-dot:focus-visible{outline:2px solid var(--accent); outline-offset:3px}
.trk-cnt{display:none}
@media (max-width:640px){
  .trk-dots{display:none}
  .trk-cnt{display:inline-block; color:var(--muted); font:500 14px/1 var(--m)}
  .trk-cnt b{color:var(--text)}
}

/* ---------- карточка отзыва ---------- */
.rev{
  flex:0 0 clamp(280px,78vw,430px);
  display:flex; flex-direction:column; gap:12px;
  padding:22px; border-radius:18px;
  background:var(--block); border:1px solid var(--line);
}
.trk--center .rev.is-mid{background:#1C2129; border-color:#333B45}
.rev-top{display:flex; align-items:center; gap:12px}
.rev-av{
  width:48px; height:48px; flex:none; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font:700 16px/1 var(--h); color:var(--text);
  box-shadow:0 0 0 0 var(--accent); transition:box-shadow .5s ease;
}
/* Свой тон на автора — чтобы медальоны не сливались в один ряд одинаковых
   кружков. Тона проверены: светлый текст на каждом даёт не меньше 4,5:1. */
.rev-av.av-1{background:#3E4A5C}
.rev-av.av-2{background:#4A4038}
.rev-av.av-3{background:#3A4A42}
.rev-av.av-4{background:#4A3A46}
.trk--center .is-mid .rev-av{box-shadow:0 0 0 2px var(--ink),0 0 0 4px var(--accent)}
.rev-who{display:flex; flex-direction:column; gap:2px; min-width:0}
.rev-who b{font:700 16px/1.2 var(--h); color:var(--text)}
.rev-who span{color:var(--muted); font-size:13.5px}
.rev-stars{display:flex; gap:2px; color:var(--accent-on-dark)}
.rev-stars svg{width:16px; height:16px}
.rev p{margin:0; color:var(--muted); font-size:15.5px; line-height:1.6}
.trk--center .rev.is-mid p{color:var(--text)}
.paper .rev{background:#fff; border-color:var(--paper-line)}
.paper .rev-who b{color:var(--paper-text)}
.paper .rev p{color:var(--paper-muted)}
.paper .rev-stars{color:var(--accent-on-paper)}
@media (prefers-reduced-motion:reduce){
  .trk--center>*,.rev-av,.trk-arr,.trk-dot{transition:none}
  .trk--center>*{transform:none}
}

/* На телефоне лента живёт ВНУТРИ бокового поля, а не во всю ширину экрана:
   поле даёт margin, а не padding. Так карточку обрезает сама лента, стоящая
   на поле, — приёмка видит честную прокрутку блока, а не текст, уехавший под
   край экрана. Так же сделано на СК ЛЮДИ, откуда перенесён приём (17.09.2026). */
@media (max-width:700px){
  .trk{margin-inline:var(--pad); padding-inline:0; scroll-padding-left:0; border-radius:14px}
  .trk-box::before,.trk-box::after{width:14px}
}
