/* ============================================================
   v2 (2026-10-30) — редизайн по docs/REDESIGN-SPEC-2026-10-30.md.
   Только переопределения styles.css и новые ig-/an-компоненты.
   Токены, цвета, радиусы и тени — из styles.css, новых нет.
   ============================================================ */

:root {
  --an-fast: 150ms;
  --an-base: 260ms;
  --an-slow: 420ms;
  --an-ease: cubic-bezier(.2, .7, .2, 1);
  --media: #F2F0EC;
}

/* ---------- секции: нумерация, чередование, двухколоночная шапка ---------- */

[id] { scroll-margin-top: 140px; }
.section--surface { background: var(--surface); }
.section__no { display: block; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.section__head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 52ch); justify-content: space-between; align-items: end; gap: 20px 48px; }
.section__head--split .lead { margin: 0 0 4px; }
.section__head .note { margin-top: 12px; max-width: 62ch; }

/* ---------- фото-правило (спека 2.2): contain+multiply для studio/light, cover для scene ---------- */

.pcard__media[data-kind="studio"] img, .pcard__media[data-kind="light"] img,
.ctile__media[data-kind="studio"] img, .ctile__media[data-kind="light"] img,
.tile[data-kind="studio"] img, .tile[data-kind="light"] img,
.product__main[data-kind="studio"] img, .product__main[data-kind="light"] img,
.product__thumb[data-kind="studio"] img, .product__thumb[data-kind="light"] img,
.acard__media[data-kind="studio"] img, .acard__media[data-kind="light"] img,
.cgrid__media[data-kind="studio"] img, .cgrid__media[data-kind="light"] img,
.article__cover[data-kind="studio"] img, .article__cover[data-kind="light"] img,
.gstrip__media[data-kind="studio"] img, .gstrip__media[data-kind="light"] img,
.vpick__smedia[data-kind="studio"] img, .vpick__smedia[data-kind="light"] img,
.cgrid__thumb[data-kind="studio"] img, .cgrid__thumb[data-kind="light"] img {
  object-fit: contain;
  padding: 7%;
  mix-blend-mode: multiply;
  background: var(--media);
}
.product__main[data-kind] img, .product__thumb[data-kind] img, .acard__media[data-kind], .cgrid__media[data-kind], .article__cover[data-kind] { background: var(--media); }
.article__cover[data-kind] img { aspect-ratio: 4 / 3; object-fit: cover; }

/* карточка без фото — фактовая медиа-зона */
.pcard__media { text-decoration: none; }
.pcard__facts { display: flex; flex-direction: column; aspect-ratio: 4 / 3; padding: 16px; background: var(--media); color: var(--ink); }
.pcard__facts .ig { flex: none; width: 32px; height: 32px; }
.pcard__facts-list { margin-top: auto; display: grid; gap: 8px; }
.pcard__fact b { display: block; font-size: clamp(18px, 2vw, 28px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; overflow-wrap: anywhere; }
.pcard__fact span { display: block; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.05em; color: var(--muted); margin-top: 2px; }
.pcard__facts-empty { margin-top: auto; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.ctile__media .pcard__facts { padding: 14px; }

/* размеры служебного текста (6.5) */
.pcard__type { font-size: 11.5px; }
.pcard__badge { font-size: 11px; }
.ctile__meta { font-size: 12.5px; }

/* ховер карточек — только внутренняя линия */
.pcard, .ctile, .tile, .cgrid__item, .gstrip__item, .vpick__stile { transition: box-shadow var(--an-fast) ease-out, transform var(--an-fast) ease-out; }
.pcard:hover, .ctile:hover, .tile:hover, .cgrid__item:hover, .gstrip__item:hover, .vpick__stile:hover { box-shadow: inset 0 0 0 1px var(--line-strong); transform: translateY(-2px); }
.gstrip__item img, .vpick__smedia img, .cgrid__thumb img { transition: transform var(--an-fast) ease-out; }
.gstrip__item:hover img, .vpick__stile:hover .vpick__smedia img, .cgrid__thumb:hover img { transform: scale(1.03); }

/* плитки hero: подпись белой полосой под фото, не оверлей */
.tile { display: flex; flex-direction: column; }
.tile__label { position: static; padding: 12px 14px; background: var(--surface); color: var(--ink); font-size: 14px; border-top: 1px solid var(--line); }
.tile__sub { color: var(--muted); font-size: 12.5px; }
.tile__label::after { color: var(--red-text); }

/* ---------- бейджи свойств (4.7) ---------- */

.ig-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ig-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: 1px solid var(--line-strong); font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.04em; white-space: nowrap; }
.ig-badge .ig { width: 14px; height: 14px; flex: none; }
.pcard__media .ig-badges { position: absolute; right: 10px; bottom: 10px; justify-content: flex-end; gap: 4px; max-width: 60%; }
.pcard__media .ig-badge { height: 22px; border: 0; background: rgba(24, 24, 24, 0.82); color: #fff; }
.ig { display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; flex: none; }

/* ---------- коротко о главном (3, 4.9) ---------- */

.brief-facts { display: flex; flex-wrap: wrap; border: 1px solid var(--line); background: var(--surface); margin-top: 24px; }
.brief-facts > div { flex: 1 1 160px; min-width: 0; padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.brief-facts > div:last-child { border-right: 0; }
.ig-num { display: block; font-weight: 800; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ig-num--text { font-size: 17px; letter-spacing: -0.01em; line-height: 1.25; padding-top: 6px; }
.brief-facts small { display: block; margin-top: 4px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.05em; color: var(--muted); }
.brief-facts .ig-scale { margin-top: 6px; height: 36px; }
.brief-facts .ig-scale__track { top: 16px; }
.brief-facts .ig-scale__mark { top: 10px; }
.brief-facts .ig-scale__min, .brief-facts .ig-scale__max { top: 24px; }

/* ---------- sticky-якоря (7.2) ---------- */

.subnav { position: sticky; top: 78px; z-index: 20; display: block; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color var(--an-fast) ease-out; }
.subnav.is-stuck { border-bottom-color: var(--line); }
.subnav__in { display: flex; gap: 0; height: 48px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; height: 48px; padding: 0 14px; margin-left: -14px; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; scroll-snap-align: start; color: var(--muted); }
.subnav a + a { margin-left: 4px; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--red); }
.subnav__in { position: relative; }
.subnav__ind { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transform: translateX(0); transition: transform var(--an-fast) var(--an-ease), width var(--an-fast) var(--an-ease); pointer-events: none; }
.subnav.has-ind a[aria-current="true"] { border-bottom-color: transparent; }

/* ---------- шаги (4.6) ---------- */

.ig-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; counter-reset: igstep; }
.ig-steps li { position: relative; padding-top: 42px; min-width: 0; }
.ig-steps__no { position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; transition: background-color var(--an-fast) ease-out, border-color var(--an-fast) ease-out, color var(--an-fast) ease-out; }
.ig-steps li:not(:last-child)::before { content: ''; position: absolute; top: 14px; left: 36px; right: -22px; height: 1px; background: var(--line-strong); }
.ig-steps li:not(:last-child)::after { content: ''; position: absolute; top: 10.5px; right: -22px; width: 0; height: 0; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; border-left: 6px solid var(--line-strong); }
.ig-steps h3, .ig-steps b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 6px; }
.ig-steps p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.ig-steps li.is-done .ig-steps__no { background: var(--ink); border-color: var(--ink); color: #fff; }
.ig-steps li.is-current .ig-steps__no { border: 2px solid var(--red); color: var(--red-text); }
.ig-steps .skip { position: absolute; }
.ig-steps--vertical { grid-template-columns: 1fr; gap: 22px 0; }
.ig-steps--vertical li { padding: 0 0 0 44px; min-height: 28px; }
.ig-steps--vertical li:not(:last-child)::before { top: 36px; bottom: -22px; left: 14px; right: auto; width: 1px; height: auto; }
.ig-steps--vertical li:not(:last-child)::after { top: auto; bottom: -20px; left: 11px; right: auto; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 6px solid var(--line-strong); border-bottom: 0; }
.ig-steps--compact:not(.ig-steps--vertical) li { padding-top: 38px; }
.ig-steps--compact h3, .ig-steps--compact b { font-size: 15px; }
.ig-steps--compact p { font-size: 13px; }
.ig-steps + .note { margin-top: 18px; }

/* «Как выбрать» из markdown-ol — те же шаги */
.prose--steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: pstep; }
.prose--steps ol > li { position: relative; padding-left: 44px; min-height: 28px; }
.prose--steps ol > li::before { counter-increment: pstep; content: counter(pstep, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; }
.prose--steps ol > li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 34px; bottom: -20px; width: 1px; background: var(--line-strong); }
.prose--steps ol > li > strong:first-child { display: block; font-size: 17px; letter-spacing: -0.015em; margin-bottom: 4px; }

/* ---------- главная ---------- */

.hero__grid--v2 { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
.hero__grid--v2 .hero__head { max-width: 680px; }
.hero__who { margin-top: 26px; }
.hero__who-label { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hero__routes .route { padding: 14px 16px 16px; gap: 4px; min-height: 44px; }
.hero__routes .route h3 { font-size: 15px; }
.hero__routes .route p { font-size: 13px; }
.hero__routes .route__no, .hero__routes .route__do { display: none; }

/* 01 Каталог: сетка 12 карточек-ссылок */
.cgrid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cgrid__item { background: var(--surface); padding: 20px 20px 22px; display: flex; flex-direction: column; min-width: 0; }
.cgrid__item .ig { width: 24px; height: 24px; color: var(--ink); margin-bottom: 14px; }
.cgrid__item h3 { font-size: 17px; letter-spacing: -0.02em; line-height: 1.2; }
.cgrid__item h3 a { text-decoration: none; }
.cgrid__item h3 a:hover { color: var(--red-text); }
.cgrid__meta { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); margin-top: 6px; }
.cgrid__links { margin-top: 12px; display: grid; gap: 5px; }
.cgrid__links a { font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.35; }
.cgrid__links a:hover { color: var(--red-text); text-decoration: underline; }
.cgrid__all { margin-top: auto; padding-top: 12px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--red-text); text-decoration: none; }
.cgrid__all:hover { text-decoration: underline; }
.tasks { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tasks h3 { font-size: 14px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }

/* 02 Как заказать */
.how .montage { margin-top: 28px; }

/* 04 Материалы */
.split--mat { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.split--mat .material__figure { margin: 0; }
.split--mat .materials { margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--mat .material { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; align-items: start; }
.split--mat .material h3 { font-size: 17px; }
.split--mat .material__use { grid-column: auto; }
.split--mat .material:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* ритм главной: 9 блоков — шаг секции короче общего */
.section--v2 { padding: clamp(40px, 4.5vw, 64px) 0; }
.section--v2 .fork__card { padding: clamp(22px, 2.4vw, 32px); gap: 12px; }
.section--v2 .section__head { margin-bottom: clamp(24px, 2.8vw, 36px); }

/* 05 Объекты */
.cases__count { margin-top: 16px; }

/* 06 Нестандарт */
.brief .chips .chip { min-height: 44px; }

/* ---------- сетка подкатегории: разделители групп ---------- */

.pgrid__divider { grid-column: 1 / -1; background: var(--paper); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 18px; }
.pgrid__divider small { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pgrid__divider b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.pgrid__divider span { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.pgrid + .cta-row { margin-top: 24px; }

/* ---------- карточка товара ---------- */

.ig-passport { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 16px 0 0; }
.ig-passport > div { background: var(--surface); padding: 12px 14px; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: center; min-width: 0; }
.ig-passport .ig { grid-row: 1 / 3; width: 24px; height: 24px; color: var(--ink); }
.ig-passport dt { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ig-passport dd { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.2; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.product__summary .ig-badges { margin-top: 14px; }
.product__block { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 30px; }
.product__block:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.product__desc .prose > p:first-child { font-size: 17px; }
.brief-list { display: grid; gap: 8px; margin-top: 16px; max-width: 68ch; }
.brief-list li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.5; }
.brief-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--ink); }
.ig-group { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 18px; }
.ig-group > * { flex: 1 1 260px; min-width: 0; }

/* шкалы (4.1, 4.2, 4.8) */
.ig-scale { position: relative; height: 44px; margin-top: 22px; }
.ig-scale__track { position: absolute; left: 0; right: 0; top: 22px; height: 4px; background: var(--line); }
.ig-scale__track::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--ig-pos, 0%); background: var(--ink); transition: width var(--an-slow) var(--an-ease), left var(--an-slow) var(--an-ease); }
.ig-scale--range .ig-scale__track::before { left: var(--ig-from, 0%); width: calc(var(--ig-to, 0%) - var(--ig-from, 0%)); }
.ig-scale__mark { position: absolute; top: 16px; left: var(--ig-pos, 0%); width: 2px; height: 16px; margin-left: -1px; background: var(--red); }
.ig-scale__mark--to { left: var(--ig-to, 0%); }
.ig-scale--range .ig-scale__mark { left: var(--ig-from, 0%); }
.ig-scale__val { position: absolute; top: -6px; left: clamp(40px, var(--ig-pos, 0%), calc(100% - 40px)); transform: translateX(-50%); font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--red-text); white-space: nowrap; }
.ig-scale--range .ig-scale__val { left: clamp(60px, calc((var(--ig-from, 0%) + var(--ig-to, 0%)) / 2), calc(100% - 60px)); }
.ig-scale__min, .ig-scale__max, .ig-scale__tick { position: absolute; top: 30px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.ig-scale__max { right: 0; }
.ig-scale__tick { transform: translateX(-50%); }
.ig-scale + .note { margin-top: 4px; }
.js .ig-scale:not(.is-in) .ig-scale__track::before { width: 0; }
.js .ig-scale--range:not(.is-in) .ig-scale__track::before { left: var(--ig-from, 0%); width: 0; }

/* размерная схема (4.3) */
.ig-size { max-width: 320px; }
.ig-size svg { display: block; width: 100%; height: auto; }
.ig-size .note { margin-top: 2px; }

/* таблица модификаций: фильтр и группы */
.table-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.table-filter label { flex: 1 1 220px; display: block; }
.table-filter input { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); background: var(--surface); padding: 10px 14px; font-size: 15px; border-radius: 0; }
.table-filter input:focus { outline: none; border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.table-filter output { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.table-filter + .table-scroll .spec-table { margin-top: 10px; }
.spec-table__group th { background: var(--media); font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 14px; }
.spec-table__group th b { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); text-transform: none; margin-right: 8px; }
.spec-table tbody[hidden] { display: none; }
.spec-table__empty { padding: 14px; font-size: 14px; color: var(--muted); }

/* ---------- статья: содержание и нумерация ---------- */

.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 14px; line-height: 1.4; text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--red-text); }
.toc a[aria-current="true"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.toc__n { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); flex: none; }
.toc--m { border: 1px solid var(--line); background: var(--surface); margin: 22px 0 0; }
.toc--m summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-weight: 800; font-size: 15px; }
.toc--m summary::-webkit-details-marker { display: none; }
.toc--m summary::after { content: '+'; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 20px; color: var(--red-text); }
.toc--m[open] summary::after { content: '–'; }
.toc--m ol { padding: 0 16px 14px; }
.prose--article { counter-reset: ah2; }
.prose--article h2[id] { position: relative; border-top: 1px solid var(--line); padding-top: 18px; }
.prose--article h2[id]::before { counter-increment: ah2; content: counter(ah2, decimal-leading-zero); position: absolute; right: 0; top: 4px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- типографика и ритм (6) ---------- */

.prose { max-width: 68ch; }
.prose p + p, .prose ul + p, .prose p + ul, .prose ol + p, .prose p + ol { margin-top: 16px; }
.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose h3:first-child, .prose h2:first-child { margin-top: 0; }
.prose ul { list-style: none; padding-left: 0; gap: 8px; }
.prose ul > li { position: relative; padding-left: 18px; }
.prose ul > li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--ink); }
.prose--article ul { list-style: none; padding-left: 0; }
.prose__lede { font-size: 17px; }
.brief-facts + .pgrid, .brief-facts + .ctiles, .brief-facts + .cv-prod { margin-top: 32px; }

/* ---------- подбор: обёртка ---------- */

.cv-pb .brief-facts { margin-top: 26px; }
.cv-prod__more { margin-top: 20px; }
.pcard__body .btn--sm { align-self: flex-start; margin-top: auto; }

/* ---------- расчёт ---------- */

.calc__steps { margin-top: 26px; }
.calc__product { margin-top: 10px; font-weight: 700; color: var(--ink); }

/* ---------- анимация (5) ---------- */

.js [data-reveal] .an-stagger > * { opacity: 0; transform: translateY(12px); }
.js.an-ready [data-reveal] .an-stagger > * { transition: opacity var(--an-base) ease-out, transform var(--an-base) ease-out; }
.js [data-reveal].is-in .an-stagger > * { opacity: 1; transform: none; }
.an-stagger > :nth-child(2) { transition-delay: 40ms; }
.an-stagger > :nth-child(3) { transition-delay: 80ms; }
.an-stagger > :nth-child(4) { transition-delay: 120ms; }
.an-stagger > :nth-child(5) { transition-delay: 160ms; }
.an-stagger > :nth-child(6) { transition-delay: 200ms; }
.an-stagger > :nth-child(7) { transition-delay: 240ms; }
.an-stagger > :nth-child(8) { transition-delay: 280ms; }
.an-stagger > :nth-child(n+9) { transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] .an-stagger > * { opacity: 1; transform: none; transition: none; }
  .js .ig-scale:not(.is-in) .ig-scale__track::before { width: var(--ig-pos, 0%); }
  .js .ig-scale--range:not(.is-in) .ig-scale__track::before { width: calc(var(--ig-to, 0%) - var(--ig-from, 0%)); }
  .pcard:hover .pcard__media img, .ctile:hover .ctile__media img, .tile:hover img { transform: none; }
  .pcard:hover, .ctile:hover, .tile:hover, .cgrid__item:hover, .gstrip__item:hover, .vpick__stile:hover { transform: none; }
  .an-in > * { animation: none; }
  .vpick__level2 { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ============================================================
   v3 (2026-11-03) — визуальный подбор, фотоленты, свёртки,
   карточки-факты, переходы. Токены те же, новых цветов нет.
   ============================================================ */

/* ---------- переходы между страницами ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; animation-timing-function: ease-out; }

/* ---------- появление без data-reveal (hero, вставленные панели) ---------- */
@keyframes anIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.js .an-in > * { animation: anIn var(--an-base) ease-out both; }
.an-in > :nth-child(2) { animation-delay: 40ms; }
.an-in > :nth-child(3) { animation-delay: 80ms; }
.an-in > :nth-child(4) { animation-delay: 120ms; }
.an-in > :nth-child(5) { animation-delay: 160ms; }
.an-in > :nth-child(6) { animation-delay: 200ms; }
.an-in > :nth-child(7) { animation-delay: 240ms; }
.an-in > :nth-child(8) { animation-delay: 280ms; }

/* ---------- поиск: список с миниатюрами ---------- */
.search__opt { align-items: center; justify-content: flex-start; gap: 12px; min-height: 52px; padding: 8px 14px; }
.search__thumb { flex: none; width: 48px; height: 36px; object-fit: cover; background: var(--media); border: 1px solid var(--line); }
.search__thumb--none { display: block; }
.search__opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search__opt-label { font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search__opt-kind { white-space: normal; text-transform: none; font-size: 12px; letter-spacing: 0.04em; line-height: 1.3; }

/* ---------- hero: ссылка на подбор по фото ---------- */
.hero__alt { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hero__alt a { font-weight: 800; font-size: 15px; color: var(--red-text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.hero__alt a:hover { text-decoration: underline; }
.hero__alt-note { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- vpick: сетка разделов + панель второго уровня на месте ---------- */
/* макет: на десктопе сетка 4×3 справа от текста (вся в первом экране), до 1080px — под текстом */
.hero--vpick .hero__grid--v2 { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; }
.hero--vpick .hero__head { max-width: 680px; }
.vpick { margin-top: 0; }
.vpick .hero__who-label { margin-bottom: 12px; }
.vpick__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.vpick__tile { cursor: pointer; }
.vpick__tile .tile__label { font-size: 14.5px; padding: 11px 12px 12px; }
.vpick__tile .tile__label::after { transition: transform var(--an-fast) var(--an-ease); }
.vpick__tile[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.vpick__tile[aria-expanded="true"] .tile__label::after { transform: rotate(90deg); }
.vpick__tile .tile__sub { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11.5px; letter-spacing: 0.03em; }
.vpick__level2 { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; background: var(--paper); transition: grid-template-rows var(--an-base) var(--an-ease); }
.vpick__level2.is-open { grid-template-rows: 1fr; }
.vpick__l2in { min-height: 0; overflow: hidden; padding: 0 16px; }
.vpick__level2.is-open .vpick__l2in { padding: 16px 16px 18px; }
.vpick__l2head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.vpick__l2title { font-weight: 800; font-size: 17px; letter-spacing: -0.015em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.vpick__l2meta { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.vpick__close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: border-color var(--an-fast) ease-out; }
.vpick__close:hover { border-color: var(--ink); }
/* плитки подразделов всегда вертикальные (фото сверху, подпись снизу): в узкой панели
   горизонтальный вариант с 96-px фото ломался — текст наезжал на картинку */
.vpick__sub { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.vpick__stile { display: grid; grid-template-columns: 1fr; align-content: start; gap: 0; background: var(--surface); text-decoration: none; }
.vpick__stile .vpick__stext { padding: 8px 10px 10px; }
.vpick__smedia { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--media); color: var(--muted); }
.vpick__smedia img { width: 100%; height: 100%; object-fit: cover; }
.vpick__stext { display: grid; gap: 3px; padding: 8px 0; min-width: 0; }
.vpick__stitle { font-weight: 700; font-size: 14px; line-height: 1.25; letter-spacing: -0.01em; }
.vpick__stile:hover .vpick__stitle { color: var(--red-text); }
.vpick__smeta { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); }
.vpick__l2foot { margin-top: 14px; }

/* ---------- gstrip: фотолента (5 в ряд, на мобильном — скролл со snap) ---------- */
.gstrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.gstrip__item { display: flex; flex-direction: column; min-width: 0; background: var(--surface); text-decoration: none; margin: 0; }
.gstrip__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--media); }
.gstrip__media img { width: 100%; height: 100%; object-fit: cover; }
.gstrip__cap { display: block; padding: 10px 12px 12px; font-size: 13.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.gstrip__item:hover .gstrip__cap { color: var(--red-text); }
.gstrip__child { display: block; margin-top: 4px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.gstrip--static .gstrip__cap { -webkit-line-clamp: none; }
.gstrip--static figcaption { padding: 10px 12px 12px; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.gstrip + .note { margin-top: 10px; }

/* ---------- свёртки: текст в DOM целиком, кнопка-плашка вместо градиента ---------- */
.js [data-clamp="lines"].is-clamped { max-height: 9.8em; overflow: hidden; }
.js [data-clamp="rows"].is-clamped tbody tr:nth-child(n+9) { display: none; }
.js [data-clamp="p"].is-clamped > :nth-child(n+3) { display: none; }
.more { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 68ch; min-height: 44px; margin-top: 10px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 800; font-size: 14px; cursor: pointer; transition: border-color var(--an-fast) ease-out; }
.more:hover { border-color: var(--ink); }
.more .ig { width: 18px; height: 18px; transition: transform var(--an-fast) var(--an-ease); }
.more[aria-expanded="true"] .ig { transform: rotate(180deg); }
.lead + .more, .prose.lead + .more { max-width: 62ch; }

/* ---------- карточки-факты «Где применяется» ---------- */
.prose.ig-cards { max-width: none; }
.prose.ig-cards ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; padding: 0; }
.prose.ig-cards ul > li { position: relative; background: var(--surface); padding: 16px 16px 18px 50px; font-size: 14.5px; line-height: 1.5; color: var(--muted); min-width: 0; }
.prose.ig-cards ul > li::before { content: ''; position: absolute; left: 20px; top: 22px; width: 9px; height: 9px; background: none; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.prose.ig-cards ul > li > strong:first-child { display: block; color: var(--ink); font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 4px; }
.choose__steps { margin-top: clamp(28px, 3vw, 40px); }
.choose__steps h3 { margin-bottom: 16px; }

/* ---------- /catalog/: миниатюры подразделов под обложкой ---------- */
.cgrid__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.cgrid__thumb { display: flex; flex-direction: column; min-width: 0; background: var(--surface); text-decoration: none; }
.cgrid__thumb span:first-child { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--media); }
.cgrid__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cgrid__thumb-t { display: block; padding: 6px 8px 8px; font-size: 12.5px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cgrid__thumb:hover .cgrid__thumb-t { color: var(--red-text); }

/* ---------- /vybor/: три уровня ---------- */
.vy { margin-top: 28px; }
.vy__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; min-height: 44px; }
.vy__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 800; font-size: 14px; cursor: pointer; }
.vy__back:hover { border-color: var(--ink); }
.vy__path { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted); }
.vy__path li + li::before { content: '›'; margin-right: 8px; }
.vy__path a { text-decoration: none; color: var(--ink); }
.vy__path a:hover { color: var(--red-text); }
.vy__path [aria-current] { color: var(--ink); font-weight: 500; }
.vy__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.vy__tiles .tile__label { font-size: 15px; }
.vy__g { margin-top: clamp(28px, 3.4vw, 46px); }
.vy__g h2 { font-size: clamp(22px, 2.4vw, 30px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.vy__g h2 small { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.vy__g .vy__tiles { margin-top: 14px; }
.vy__all { margin-top: 14px; }
.vy__l3 .pgrid { margin-top: 14px; }
.vy__state { padding: 16px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); background: var(--surface); margin-top: 14px; }
.js .vy[data-ready] .vy__g { margin-top: 0; }
.js .vy[data-ready] .vy__g h2 { display: none; }
.js .vy[data-ready] .vy__g .vy__tiles { margin-top: 0; }
.vy__tile--facts .pcard__facts { aspect-ratio: 4 / 3; }

/* ---------- подзаголовок статьи «Коротко» ---------- */
.article__brief { margin-top: 20px; border: 1px solid var(--line); background: var(--surface); padding: 16px 18px 18px; max-width: 68ch; }
.article__brief .hero__who-label { margin-bottom: 8px; }
.article__brief .brief-list { margin-top: 0; }

/* ---------- page.html / cases / materials: тот же ритм ---------- */
.page__sections .section__no { margin-bottom: 10px; }
.materials__gal { margin-top: 0; }

/* плитка: заголовок и подпись столбиком, стрелка справа */
.tile__t { display: block; min-width: 0; }
.tile__t .tile__sub { display: block; }

/* ============================================================
   Адаптив
   ============================================================ */

@media (min-width: 1081px) {
  .toc--m { display: none; }
}
@media (max-width: 1080px) {
  .hero__grid--v2 { grid-template-columns: 1fr; }
  .vpick { margin-top: 32px; }
  .vpick__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vy__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cgrid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split--mat { grid-template-columns: 1fr; }
  .split--mat .material__figure { display: none; }
  .article__aside .toc { display: none; }
  .ig-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig-steps:not(.ig-steps--vertical) li:nth-child(2)::before, .ig-steps:not(.ig-steps--vertical) li:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
  .section__head--split { grid-template-columns: 1fr; align-items: start; }
  .section__head--split .lead { margin-top: 14px; }
  .cgrid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__routes .route p { display: none; }
  .hero__routes .route { min-height: 52px; justify-content: center; }
}
@media (max-width: 760px) {
  .subnav { top: 64px; }
  .ig-steps { grid-template-columns: 1fr; gap: 18px 0; }
  .ig-steps li { padding: 0 0 0 44px; min-height: 28px; }
  .ig-steps li:not(:last-child)::before { top: 36px; bottom: -18px; left: 14px; right: auto; width: 1px; height: auto; display: block; }
  .ig-steps li:not(:last-child)::after { top: auto; bottom: -16px; left: 11px; right: auto; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 6px solid var(--line-strong); border-bottom: 0; display: block; }
  .cgrid__item { padding: 14px 14px 16px; }
  .cgrid__item .ig { margin-bottom: 8px; }
  .cgrid__item h3 { font-size: 15px; }
  .cgrid__links a { font-size: 13.5px; }
  .brief-facts > div { flex-basis: 50%; padding: 12px 14px; }
  .vpick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vpick__tile .tile__label { font-size: 14px; padding: 10px 12px; }
  .vpick__tile .tile__sub { display: block; font-size: 11.5px; }
  .vpick__sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vpick__l2in { padding: 12px 12px 14px; }
  .vy__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gstrip:not(.gstrip--static) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gstrip:not(.gstrip--static)::-webkit-scrollbar { display: none; }
  .gstrip:not(.gstrip--static) .gstrip__item { flex: 0 0 64%; scroll-snap-align: start; }
  .gstrip--static { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gstrip--static .gstrip__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ig-cards ul { grid-template-columns: 1fr; }
  .cgrid__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search__opt { min-height: 56px; }
  .pcard__fact b { font-size: 18px; }
  .hero__who { margin-top: 20px; }
}
@media (max-width: 560px) {
  .cgrid--home { grid-template-columns: 1fr; }
  .cgrid__item { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 64px; padding: 10px 14px; }
  .cgrid__item .ig { margin: 0; grid-row: 1 / 3; }
  .cgrid__item h3 { font-size: 15px; }
  .cgrid__meta { margin-top: 2px; font-size: 11.5px; }
  .cgrid__links, .cgrid__all { display: none; }
  .split--mat .materials { grid-template-columns: 1fr; }
  .split--mat .material { padding: 14px 16px; }
  .how .montage, .section--v2 .custom__figure { display: none; }
  .ig-passport { grid-template-columns: 1fr; }
  .pcard__media .ig-badges { display: none; }
}


/* ---------- цена везде заметна (04.11) ---------- */
.price-em { font-weight: 800; color: var(--ink); font-family: 'Manrope', sans-serif; letter-spacing: -0.01em; white-space: nowrap; }
.tile__sub .price-em, .vpick__smeta .price-em, .ctile__meta .price-em, .cgrid__meta .price-em { font-size: 1.1em; }
.pcard__price { font-size: 17px; }
.pcard__price:not(:empty)::before { content: ""; }

/* ---------- мобильный hero (04.11): одна колонка, фото-плитки во всю ширину ---------- */
@media (max-width: 900px) {
  .hero--vpick .hero__grid--v2, .hero__grid--v2 { grid-template-columns: 1fr; gap: 18px; }
  .hero__grid--v2 .hero__head { max-width: none; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .hero__lead { font-size: 16px; }
  .hero__who { margin-top: 14px; }
  .hero__routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; }
  .hero__routes .route { padding: 10px 10px 12px; }
  .hero__routes .route h3 { font-size: 13.5px; line-height: 1.2; }
  .hero__routes .route p { display: none; }
  .vpick { margin-top: 8px; }
  .vpick__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vpick__tile .tile__label { font-size: 13px; padding: 8px 8px 10px; line-height: 1.2; }
  .vpick__tile .tile__t { display: block; overflow-wrap: anywhere; }
  .vpick__tile .tile__sub { display: block; font-size: 10.5px; margin-top: 3px; }
  .vpick__tile .tile__label::after { display: none; }
}
@media (max-width: 480px) {
  .vpick__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vpick__tile .tile__label { font-size: 12px; padding: 7px 6px 9px; }
  .vpick__tile .tile__sub { font-size: 10px; }
  .hero__routes { grid-template-columns: 1fr; }
  .hero__routes .route { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
  .hero__routes .route p { display: block; font-size: 12px; color: var(--muted); margin: 0; }
}


/* ---------- наши сайты по направлениям ---------- */
.brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(24px, 3vw, 40px); }
.brand { display: flex; flex-direction: column; background: var(--surface); text-decoration: none; min-width: 0; transition: box-shadow var(--an-fast) ease-out, transform var(--an-fast) ease-out; }
.brand:hover { box-shadow: inset 0 0 0 1px var(--line-strong); transform: translateY(-2px); }
.brand__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #F2F0EC; border-bottom: 1px solid var(--line); }
.brand__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--an-fast) ease-out; }
.brand:hover .brand__media img { transform: scale(1.03); }
.brand__body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.brand__title { font-weight: 800; font-size: 16.5px; letter-spacing: -0.015em; }
.brand__note { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.brand__domain { margin-top: 6px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11.5px; letter-spacing: 0.05em; color: var(--red-text); }
@media (max-width: 1080px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .brands { grid-template-columns: 1fr; } .brand { flex-direction: row; } .brand__media { width: 120px; flex: none; aspect-ratio: 1; border-bottom: 0; border-right: 1px solid var(--line); } }

/* ---------- короткая форма по ходу страницы ---------- */
.miniform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 40px); align-items: center; border: 1px solid var(--line); background: var(--surface); padding: clamp(18px, 2.6vw, 30px); margin: clamp(24px, 3vw, 40px) 0; }
.miniform__text h3 { font-size: clamp(19px, 1.8vw, 24px); margin: 6px 0 8px; }
.miniform__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.miniform .consent { margin-top: 10px; font-size: 13px; }
.miniform .formstate { margin-top: 10px; }
@media (max-width: 760px) { .miniform { grid-template-columns: 1fr; } .miniform__row { grid-template-columns: 1fr; } .miniform__row .btn { width: 100%; } }
