/* Раздел «Утеплители» (/uteplitel), docs/uteplitel.md.
   Без Bootstrap: всё под .utep, свои классы utep-*. Bootstrap 3 подключён глобально —
   сбрасываем его рамки у button, жирные label, отступы p/h и line-height 1.846. */

@font-face { font-family: 'Unbounded'; src: url('/fonts/all_fonts/unbounded/unbounded-cyrillic.woff2') format('woff2'); font-weight: 500 600; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; src: url('/fonts/all_fonts/unbounded/unbounded-latin.woff2') format('woff2'); font-weight: 500 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.utep {
  --snow: #f3f6f9; --paper: #fff; --ink: #1c2731; --muted: #5a6876; --line: #dbe2e9;
  --slate: #3b5473; --wool: #d99a1e; --wool-2: #b97d0c; --wool-soft: #fbefd2;
  --frost: #a9cbe4; --frost-2: #e4eff8; --heat: #e0602f; --earth: #8a6f55; --stone: #b8c0c8;
  --ok: #2b7a4b; --ok-bg: #e3f2e8; --wait: #8a5a00; --wait-bg: #fff1cc; --xps: #ef9a6c; --xps-2: #d77a4a; --xps-soft: #fde6d8;
  --f-display: 'Unbounded', 'Rubik', system-ui, sans-serif;
  --f-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font: 400 16px/1.6 var(--f-body); color: var(--ink);
  display: grid; gap: 72px; padding-block: 8px 64px;
}
.utep *, .utep *::before, .utep *::after { box-sizing: border-box; }
/* элементы сеток не растягиваются по содержимому: иначе обёртка с широкой таблицей внутри распирает страницу на телефоне */
.utep > *, .utep-sec > *, .utep-head > * { min-width: 0; }
.utep [hidden] { display: none !important; }
.utep [id] { scroll-margin-top: 90px; } /* закреплённая шапка сайта не закрывает начало секции */
.utep p { margin: 0; }
.utep h1, .utep h2, .utep h3 { margin: 0; padding: 0; text-wrap: balance; color: var(--ink); text-transform: none; }
.utep h1, .utep h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; overflow-wrap: break-word; } /* длинное слово не распирает телефон */
.utep h1 { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.08; }
.utep h2 { font-size: clamp(22px, 2.7vw, 31px); line-height: 1.15; }
.utep h3 { font-size: 18px; font-weight: 600; line-height: 1.3; font-family: var(--f-body); }
.utep label { font-weight: 400; margin: 0; }
.utep a { color: var(--slate); }
.utep button { font-family: var(--f-body); }
.utep .num { font-variant-numeric: tabular-nums; }
.utep .muted { color: var(--muted); }
.utep-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.utep-head { display: grid; gap: 12px; max-width: 70ch; }
.utep-lead { font-size: 17px; color: var(--muted); max-width: 62ch; }
.utep-sec { display: grid; gap: 24px; }

.utep-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.4; padding: 3px 9px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.utep-chip.ok { background: var(--ok-bg); color: var(--ok); }
.utep-chip.wait { background: var(--wait-bg); color: var(--wait); }
.utep-chip.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.utep-btn { display: inline-block; font: 500 15px/1 var(--f-body); border: 0; border-radius: 10px; padding: 14px 20px; background: var(--wool); color: #241800; cursor: pointer; text-decoration: none; text-align: center; }
.utep-btn:hover, .utep-btn:focus { background: var(--wool-2); color: #241800; text-decoration: none; }
.utep-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.utep-btn.ghost:hover { border-color: var(--slate); background: var(--paper); }
.utep-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ── шапка с домом ── */
.utep-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.utep-hero-text { display: grid; gap: 20px; }
.utep-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.utep-fact b { display: block; font-family: var(--f-display); font-size: 26px; font-weight: 500; line-height: 1.1; }
.utep-fact span { font-size: 13px; color: var(--muted); }
.utep-house { position: relative; max-width: 100%; }
.utep-house svg { display: block; width: 100%; height: auto; }
.utep-hs { position: absolute; transform: translate(-50%, -50%); font: 500 13px/1 var(--f-body); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px 8px 8px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; box-shadow: 0 4px 14px rgb(15 30 45 / .12); transition: transform .15s, border-color .15s; }
.utep-hs::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 0 4px rgb(224 96 47 / .25); }
.utep-hs.x::before { background: var(--xps-2); box-shadow: 0 0 0 4px rgb(239 154 108 / .35); }
.utep-hs:hover, .utep-hs[aria-current="true"] { border-color: var(--heat); transform: translate(-50%, -50%) scale(1.04); }
.utep-hs:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.utep-svg-fall { fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .utep .rise { animation: utepRise 3.2s ease-in-out infinite; }
  .utep .rise.d2 { animation-delay: .6s; } .utep .rise.d3 { animation-delay: 1.2s; }
  .utep .drift { animation: utepDrift 3.6s ease-in-out infinite; }
  .utep-svg-fall { animation: utepFall linear infinite; }
  @keyframes utepRise { 0%, 100% { transform: translateY(0); opacity: .95; } 50% { transform: translateY(-7px); opacity: .55; } }
  @keyframes utepDrift { 0%, 100% { transform: translateX(0); opacity: .9; } 50% { transform: translateX(6px); opacity: .5; } }
  @keyframes utepFall { from { transform: translate(0, -50px); } to { transform: translate(var(--dx), 420px); } }
}

/* ── подбор: часть дома → конструкция ── */
.utep-zones { display: flex; flex-wrap: wrap; gap: 8px; }
.utep-zone { font: 500 15px/1.2 var(--f-body); padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.utep-zone[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--snow); }
.utep-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.utep-tab { font: 500 14px/1.2 var(--f-body); padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.utep-tab:hover { border-color: var(--slate); }
.utep-tab[aria-selected="true"] { background: var(--slate); border-color: var(--slate); color: #fff; }
.utep-tab i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.utep-tab i.wool { background: var(--wool); } .utep-tab i.xps { background: var(--xps); }
.utep-tab:focus-visible, .utep-zone:focus-visible { outline: 2px solid var(--heat); outline-offset: 2px; }
.utep-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.utep-panel-l { padding: 28px; display: grid; gap: 28px; align-content: start; border-right: 1px solid var(--line); }
.utep-panel-r { padding: 28px; display: grid; gap: 20px; align-content: start; background: linear-gradient(180deg, var(--frost-2), var(--paper) 60%); }
.utep-task { display: grid; gap: 18px; align-content: start; min-width: 0; }
.utep-soon-box { display: grid; gap: 12px; padding: 20px; border-radius: 12px; background: var(--snow); border: 1px dashed var(--line); }

/* Пирог: слои в реальном масштабе (мм → px, renderPie в uteplitel-core.js), подписи справа с выносками.
   Самое тонкое — плёнки (3 px), кровля и штукатурка — 4–5 px; грунт и холодный чердак уходят дальше — полоса
   с растворением. Утеплитель, бетон, кирпич, песок, грунт и дерево — фото-фактурами (решение 2026-10-06). */
.utep-pie2 { display: grid; gap: 6px; }
.utep-pie2:empty { display: none; }
.utep-pie2 .side { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.utep-pie2 .pb { position: relative; --sw: clamp(84px, 34%, 132px); }
.utep-pie2 .ps { position: absolute; left: 0; top: 0; width: var(--sw); display: flex; flex-direction: column; }
.utep-pie2 .ly { position: relative; flex: none; border-inline: 1px solid rgb(28 39 49 / .28); }
.utep-pie2 .ly.first { border-top: 1px solid rgb(28 39 49 / .28); border-radius: 5px 5px 0 0; }
.utep-pie2 .ly.last { border-bottom: 1px solid rgb(28 39 49 / .28); border-radius: 0 0 5px 5px; }
.utep-pie2 .ly + .ly { box-shadow: inset 0 1px 0 rgb(28 39 49 / .2); }
.utep-pie2 .ly.ins + .ly.ins { box-shadow: none; }
.utep-pie2 .ly.ins + .ly.ins::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; border-top: 2px dashed rgb(28 39 49 / .7); }
.utep-pie2 .ly.brk.first { border-top: 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 80%); mask-image: linear-gradient(to bottom, transparent, #000 80%); }
.utep-pie2 .ly.brk.last { border-bottom: 0; -webkit-mask-image: linear-gradient(to top, transparent, #000 80%); mask-image: linear-gradient(to top, transparent, #000 80%); }
.utep-pie2 .pl { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.utep-pie2 .plb { position: absolute; top: 0; right: 0; left: calc(var(--sw) + 26px); }
.utep-pie2 .lb { position: absolute; left: 0; right: 0; font-size: 13px; line-height: 16px; }
.utep-pie2 .lb b { font-weight: 500; }
.utep-pie2 .lb small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.k-wool { background: repeating-linear-gradient(118deg, var(--wool) 0 5px, var(--wool-2) 5px 6px, var(--wool) 6px 11px); }
.k-wool.alt { background: repeating-linear-gradient(62deg, var(--wool) 0 5px, var(--wool-2) 5px 6px, var(--wool) 6px 11px); }
.k-wool.top { background: repeating-linear-gradient(118deg, var(--wool-2) 0 4px, var(--wool) 4px 5px); }
.k-xps { background: repeating-linear-gradient(118deg, var(--xps) 0 9px, var(--xps-2) 9px 10px, var(--xps) 10px 19px); }
.k-xps.alt { background: repeating-linear-gradient(62deg, var(--xps) 0 9px, var(--xps-2) 9px 10px, var(--xps) 10px 19px); }
.k-membrane { background: #8db9dc; }
.k-vapor { background: #4d6684; }
.k-pvc { background: #2f3a44; }
.k-dimple { background: repeating-linear-gradient(90deg, #3d434a 0 4px, #707982 4px 6px); }
.k-deck { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0H10L13 10H22L25 0H30' fill='%23aab4bd' stroke='%236f7a84' stroke-width='.8' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 30px 100% repeat-x, var(--paper); }
.k-wood { background: repeating-linear-gradient(90deg, #b88a5a 0 14px, #a67a4c 14px 15px); }
.k-board { background: #c9b28f; }
.k-cover { background: #2c3a46; }
.k-air { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='11'%3E%3Cpath d='M0 5.5 Q5.5 1 11 5.5 T22 5.5' fill='none' stroke='%238fa3b5' stroke-width='1.4'/%3E%3C/svg%3E") 0 50% / 22px 11px repeat, var(--paper); }
.k-concrete { background: radial-gradient(circle at 30% 40%, rgb(0 0 0 / .12) 1px, transparent 1.5px) 0 0 / 9px 9px, var(--stone); }
.k-brick { background: repeating-linear-gradient(0deg, #b4583c 0 9px, #d8c7b6 9px 10px); }
.k-aero { background: radial-gradient(circle, rgb(255 255 255 / .35) 1px, transparent 1.5px) 0 0 / 7px 7px, #c9c4ba; }
.k-plaster { background: #e7e1d6; }
.k-plaster2 { background: #d4ccbd; }
.k-screed { background: #a9b0b6; }
.k-metal { background: repeating-linear-gradient(90deg, #8e99a3 0 8px, #6f7a84 8px 10px); }
.k-ground { background: var(--earth); }
.k-sand { background: radial-gradient(circle, rgb(120 90 40 / .35) 1px, transparent 1.4px) 0 0 / 6px 6px, #e3cf9f; }
/* фото-фактуры в пироге (public/img/utep/tex — Викисклад, CC0 / общественное достояние; вата и XPS — свои) */
.utep-pie2 .k-wool { background: url('/img/utep/ekover.jpg') 0 0 / 150px auto, var(--wool); }
.utep-pie2 .k-wool.alt { background-position: 75px 40px; }
.utep-pie2 .k-wool.top { background: url('/img/utep/ekover.jpg') 30px 10px / 110px auto, var(--wool-2); filter: saturate(1.15) brightness(.92); }
/* у фото пенополистирола тёмный правый нижний угол — берём крупнее и соседний слой сдвигаем вбок, не вниз */
.utep-pie2 .k-xps { background: url('/img/utep/penopleks.jpg') 0 0 / 220px auto, var(--xps); }
.utep-pie2 .k-xps.alt { background-position: -70px -6px; }
.utep-pie2 .k-concrete { background: url('/img/utep/tex/beton.jpg') 0 0 / 200px auto, var(--stone); }
.utep-pie2 .k-brick { background: url('/img/utep/tex/kirpich.jpg') 0 0 / 200px auto, #b4583c; }
.utep-pie2 .k-sand { background: url('/img/utep/tex/pesok.jpg') 0 0 / 200px auto, #e3cf9f; }
.utep-pie2 .k-ground { background: url('/img/utep/tex/grunt.jpg') 0 0 / 200px auto, var(--earth); }
.utep-pie2 .k-wood { background: url('/img/utep/tex/fanera.jpg') 0 0 / 220px auto, #b88a5a; }

/* расчёт */
.utep-calc { display: grid; gap: 14px; }
.utep-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.utep-field { display: grid; gap: 5px; min-width: 0; }
.utep-field.wide { grid-column: 1 / -1; }
.utep-field > label { font-size: 13px; color: var(--muted); }
.utep-field input, .utep-field select { font: 400 15px/1.3 var(--f-body); height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; min-width: 0; box-shadow: none; }
.utep-field input:focus, .utep-field select:focus { outline: 2px solid var(--slate); outline-offset: 0; border-color: var(--slate); }
.utep-norm { font-size: 13px; color: var(--muted); background: var(--snow); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.utep-norm b { color: var(--ink); font-weight: 500; }
.utep-norm .warn { color: var(--heat); }
.utep-layers { display: flex; height: 18px; border-radius: 5px; overflow: hidden; margin-top: 8px; }
.utep-layers i { display: block; }
.utep-layers i + i { border-left: 1.5px dashed rgb(28 39 49 / .55); }
.utep-result { display: grid; gap: 12px; background: var(--slate); color: #fff; border-radius: 14px; padding: 18px; }
.utep-result-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.utep-result-big { font-family: var(--f-display); font-size: 28px; font-weight: 500; line-height: 1.05; }
.utep-result-sum { font-size: 20px; font-weight: 600; }
.utep-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-top: 8px; border-top: 1px solid rgb(255 255 255 / .18); font-size: 14px; line-height: 1.35; }
.utep-line input { width: 18px; height: 18px; margin: 0; accent-color: var(--wool); }
.utep-line small { opacity: .8; display: block; font-size: 12px; }
.utep-line .utep-chip { font-size: 11px; }
.utep-result-note { font-size: 12px; opacity: .8; line-height: 1.45; }

/* ── ответ на главный вопрос: нормы Перми ── */
.utep-ans { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.utep-ans-text { display: grid; gap: 14px; }
.utep-ans-big { font-size: 19px; line-height: 1.55; color: var(--ink); }
.utep-ans-big b { font-weight: 600; }
.utep-src { font-size: 12.5px; color: var(--muted); line-height: 1.5; border-left: 3px solid var(--line); padding-left: 12px; }
.utep-ntbl { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.utep-ntbl table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 560px; margin: 0; }
.utep-ntbl caption { text-align: left; padding: 12px 14px 0; font-size: 13px; color: var(--muted); caption-side: top; }
.utep-ntbl th, .utep-ntbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.utep-ntbl th { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; background: var(--snow); }
.utep-ntbl tr:last-child td { border-bottom: 0; }
.utep-ntbl .r { text-align: right; }
.utep-ntbl td.mm { width: 30%; }
.utep-mm { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.utep-mm b { font-weight: 600; text-align: right; }
.utep-mm i { display: block; height: 10px; border-radius: 3px; }
.utep-mm.wool i { background: var(--wool); } .utep-mm.xps i { background: var(--xps); }
.utep-mm.na { color: var(--muted); font-size: 13px; display: block; }

/* ── вход в каталог по материалу ── */
.utep-mats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .62fr); gap: 14px; }
.utep-mat2 { display: grid; gap: 14px; align-content: start; border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--paper); }
.utep-mat2 .sw { height: 54px; border-radius: 10px; }
.utep-mat2 .sw.wool { background: url('/img/utep/ekover.jpg') center / cover, var(--wool); }
.utep-mat2 .sw.xps { background: url('/img/utep/penopleks.jpg') center / cover, var(--xps); }
/* кадр с Викисклада «DuPontTyvekHouseUnderConstruction.jpg», CC0, обрезан без логотипов */
.utep-mat2 .sw.film { background: url('/img/utep/plenki/membrana.jpg') center / cover, var(--frost-2); }
.utep-mat2 h3 { font-family: var(--f-display); font-weight: 500; font-size: 20px; }
.utep-mat2 .props { font-size: 14px; color: var(--muted); }
.utep-mat2.film { background: linear-gradient(180deg, var(--snow), var(--paper)); border-style: dashed; }
.utep-brandrow { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.utep-brandrow .bn { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.utep-brandrow .bn a { font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); }
.utep-brandrow .bn a:hover { color: var(--slate); text-decoration: underline; }
.utep-brandrow .bn small { font-size: 13px; color: var(--muted); }
.utep-brandrow .gl { display: flex; flex-wrap: wrap; gap: 6px; }
.utep-brandrow .gl a { font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--snow); }
.utep-brandrow .gl a:hover { border-color: var(--slate); }
.utep-brandrow.soon { color: var(--muted); font-size: 14px; }

/* ── вата или пенополистирол ── */
.utep-vs { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.utep-vs table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14.5px; margin: 0; }
.utep-vs th, .utep-vs td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.utep-vs thead th { font-family: var(--f-display); font-weight: 500; font-size: 15px; }
.utep-vs thead th.w { background: var(--wool-soft); } .utep-vs thead th.x { background: var(--xps-soft); }
.utep-vs tbody th { font-weight: 500; color: var(--muted); width: 22%; }
.utep-vs tr:last-child th, .utep-vs tr:last-child td { border-bottom: 0; }
.utep-combo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.utep-combo article { display: grid; gap: 10px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); min-width: 0; }
.utep-combo p { font-size: 14.5px; color: var(--muted); }
.utep-mini { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
.utep-mini text { font-family: var(--f-body); }

/* ── таблицы ── */
.utep-tbl { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.utep-tbl table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 760px; margin: 0; }
.utep-tbl th, .utep-tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.utep-tbl th { font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; background: var(--snow); }
.utep-tbl .r { text-align: right; }
.utep-tbl tr.grp td { font-family: var(--f-display); font-weight: 500; font-size: 14px; background: var(--wool-soft); border-bottom: 0; }
.utep-tbl.x tr.grp td { background: var(--xps-soft); }
.utep-tbl.x .utep-dens i { background: var(--xps-2); }
.utep-tbl tbody tr:last-child td { border-bottom: 0; }
.utep-tbl a { text-decoration: none; font-weight: 500; color: var(--ink); }
.utep-tbl a:hover { color: var(--slate); text-decoration: underline; }
.utep-dens { display: inline-block; width: 52px; height: 6px; border-radius: 3px; background: var(--line); vertical-align: middle; margin-left: 6px; overflow: hidden; }
.utep-dens i { display: block; height: 100%; background: var(--wool); }
.utep-brand-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.utep-brand-tabs button { font: 500 14px/1 var(--f-body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.utep-brand-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--snow); }
.utep-brand-tabs button:disabled { opacity: .5; cursor: default; }

.utep-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.utep-faq { display: grid; gap: 10px; max-width: 860px; }
.utep-faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.utep-faq summary { display: flex; cursor: pointer; list-style: none; padding: 16px 0; font-weight: 500; justify-content: space-between; gap: 12px; }
.utep-faq summary::-webkit-details-marker { display: none; }
.utep-faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.utep-faq details[open] summary::after { content: "–"; }
.utep-faq details p { padding-bottom: 18px; color: var(--muted); max-width: 68ch; }
.utep-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; background: var(--ink); color: var(--snow); border-radius: 20px; padding: 32px; }
.utep-cta h2 { color: var(--snow); }
.utep-cta p { color: rgb(243 246 249 / .75); margin-top: 8px; max-width: 56ch; }
.utep-cta .phone { font-family: var(--f-display); font-size: clamp(18px, 5.4vw, 24px); font-weight: 500; white-space: nowrap; color: var(--snow); text-decoration: none; }
.utep-cta-r { display: grid; gap: 12px; justify-items: start; }
.utep-cta .brands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.utep-cta .brands span { font-size: 12px; border: 1px solid rgb(243 246 249 / .25); border-radius: 999px; padding: 4px 10px; color: rgb(243 246 249 / .8); }

/* ── каталог ── */
.utep-gtabs, .utep-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.utep-gtabs a { font: 500 14px/1.2 var(--f-body); padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; }
.utep-gtabs a:hover { border-color: var(--slate); text-decoration: none; }
.utep-gtabs a[aria-current="page"] { background: var(--slate); border-color: var(--slate); color: #fff; }
.utep-gtabs a span { font-weight: 400; opacity: .7; margin-left: 4px; }
.utep-filters { justify-content: space-between; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.utep-seg { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.utep-seg > span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.utep-seg button { font: 500 13px/1.2 var(--f-body); padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.utep-seg button[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: #fff; }
.utep-toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.utep-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--slate); }
.utep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.utep-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-rows: auto 1fr; overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.utep-card:hover, .utep-card:focus { border-color: var(--slate); transform: translateY(-2px); text-decoration: none; color: var(--ink); }
.utep-card:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.utep-card-img { background: linear-gradient(180deg, var(--frost-2), var(--paper)); display: grid; place-items: center; padding: 33px 10px 18px; min-height: 160px; }
.utep-card-img svg { height: 150px; width: auto; max-width: 100%; }
/* тело карточки — колонка, строка цены прижата к низу: в ряду карточек цены стоят на одной линии,
   даже если описание или набор толщин у соседей разной высоты */
.utep-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.utep-card-body > .utep-price-row { margin-top: auto; }
.utep-card-use { font-size: 14px; color: var(--muted); line-height: 1.45; }
.utep-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.utep-specs span { font-size: 12px; line-height: 1.4; padding: 3px 8px; border-radius: 6px; background: var(--snow); border: 1px solid var(--line); }
.utep-specs span.fire { background: #fdeee9; border-color: #f2c7b9; color: #8f2f16; }
.utep-thk { display: flex; flex-wrap: wrap; gap: 5px; }
.utep-thk span { font-size: 12px; line-height: 1.4; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.utep-thk span.av { border-color: var(--ok); color: var(--ok); font-weight: 500; }
.utep-price-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.utep-price-row b { font-size: 19px; font-weight: 600; }
.utep-price-row small { color: var(--muted); font-size: 12px; }
.utep-empty { padding: 28px; text-align: center; background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); grid-column: 1 / -1; }
.utep-seo { max-width: 760px; display: grid; gap: 12px; color: var(--muted); }
.utep-helper { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 14px; background: var(--wool-soft); }
.utep-helper.x { background: var(--xps-soft); }
.utep-helper .pair { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.utep-helper .pair div { display: grid; }
.utep-helper .pair b { font-family: var(--f-display); font-weight: 500; font-size: 22px; }
.utep-helper .pair small { font-size: 13px; color: var(--muted); }

/* фото упаковки + плашка (views/uteplitel-mixins.pug) */
.utep-photo { display: grid; justify-items: center; align-content: center; gap: 14px; width: 100%; }
.utep-photo picture { display: block; max-width: 100%; }
.utep-gallery, .utep-gal-main, .utep-gal-slide { min-width: 0; max-width: 100%; }
.utep-photo img { display: block; max-width: 100%; height: auto; }
.utep-photo img.mul { mix-blend-mode: multiply; } /* стопка плит Пеноплэкс на белом фоне — фон уходит в градиент */
.utep-plate { display: grid; justify-items: center; gap: 2px; background: var(--slate); color: #fff; border-radius: 8px; padding: 8px 18px; text-align: center; line-height: 1.25; }
.utep-plate.x { background: #9a4a22; }
.utep-plate b { font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.utep-plate span { font-size: 13px; }
.utep-card-img .utep-photo img { max-height: 112px; width: auto; }
.utep-card-img .utep-photo { gap: 8px; }
.utep-card-img .utep-plate { padding: 4px 12px; }
.utep-card-img .utep-plate b { font-size: 13px; }
.utep-card-img .utep-plate span { font-size: 11px; }
.utep-more .utep-card-img .utep-photo img { max-height: 90px; }
.utep-gal-slide { width: 100%; height: 100%; display: grid; place-items: center; }
.utep-gal-slide .utep-photo img.mul { width: min(100%, 315px); }

.utep-more-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.utep-more-head a { font-weight: 500; text-decoration: none; }
.utep-line a { color: inherit; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .4); }

.utep-gal-scheme svg { width: 100%; height: 100%; }
.utep-plate-dim > div { display: grid; gap: 2px; min-width: 0; }
.utep-linkbtn { justify-self: start; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--slate); font: 500 14px/1.3 var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.utep-linkbtn[aria-pressed="true"] { color: var(--heat); }
.utep-with { display: grid; gap: 8px; padding: 16px 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.utep-with h3 { font-size: 15px; }
.utep-with-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.utep-with-row > div { display: grid; }
.utep-with-row span { font-size: 12px; }
.utep-with-btn { padding: 9px 12px; font-size: 13px; }
@media (max-width: 600px) { .utep-with-row { grid-template-columns: minmax(0, 1fr) auto; } .utep-with-btn { grid-column: 1 / -1; } }

.utep-desc-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.utep-ptbl td { overflow-wrap: anywhere; }
/* ── страница серии ── */
.utep-prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.utep-gallery { display: grid; gap: 12px; position: sticky; top: 90px; }
.utep-gal-main { background: linear-gradient(180deg, var(--frost-2), var(--paper)); border: 1px solid var(--line); border-radius: 18px; display: grid; place-items: center; padding: 24px; aspect-ratio: 5 / 4; max-width: 100%; }
.utep-gal-main svg { width: 100%; height: 100%; }
.utep-plate-dim { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.utep-plate-dim svg { width: 120px; height: auto; flex: none; }
.utep-buy { display: grid; gap: 18px; }
.utep-opt { display: grid; gap: 8px; }
.utep-opt > span { font-size: 13px; color: var(--muted); }
.utep-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.utep-opts button { font: 500 14px/1.2 var(--f-body); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; display: grid; gap: 3px; text-align: left; }
.utep-opts button small { font-size: 11px; font-weight: 400; color: var(--muted); }
.utep-opts button .d { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-left: 6px; vertical-align: middle; }
.utep-opts button[aria-pressed="true"] { border-color: var(--slate); box-shadow: inset 0 0 0 1px var(--slate); background: var(--frost-2); }
.utep-pricebox { display: grid; gap: 14px; padding: 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.utep-pb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.utep-pb-price { font-family: var(--f-display); font-size: 34px; font-weight: 500; line-height: 1; }
.utep-pb-price small { font-family: var(--f-body); font-size: 15px; color: var(--muted); font-weight: 400; }
.utep-pb-unit { font-size: 14px; color: var(--muted); margin-top: 6px; }
.utep-qty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.utep-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.utep-stepper button { width: 42px; height: 46px; border: 0; background: var(--snow); color: var(--ink); font-size: 20px; cursor: pointer; padding: 0; }
.utep-stepper input { width: 64px; height: 46px; border: 0; text-align: center; font: 500 16px var(--f-body); background: var(--paper); color: var(--ink); padding: 0; box-shadow: none; }
.utep-qty-sum { font-size: 14px; color: var(--muted); }
.utep-calc2 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.utep-calc2-in { padding: 24px; display: grid; gap: 14px; align-content: start; border-right: 1px solid var(--line); }
.utep-calc2 .utep-result { border-radius: 0; padding: 24px; align-content: start; }
.utep-uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.utep-use { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.utep-use b { font-family: var(--f-display); font-size: 22px; font-weight: 500; }
.utep-use a { font-size: 13px; text-decoration: none; font-weight: 500; }
.utep-desc { display: grid; gap: 12px; }
.utep-desc p { max-width: 64ch; }
.utep-ptbl { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.utep-ptbl table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0; }
.utep-ptbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.utep-ptbl tr:last-child td { border-bottom: 0; }
.utep-ptbl td:first-child { color: var(--muted); width: 55%; }
.utep-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.utep-more .utep-card-img svg { height: 104px; }
.utep-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--snow); padding: 12px 18px; border-radius: 12px; font: 400 14px/1.4 var(--f-body); box-shadow: 0 10px 30px rgb(0 0 0 / .25); z-index: 1050; max-width: calc(100% - 32px); }
.utep-toast a { color: var(--wool); margin-left: 8px; }

@media (max-width: 991px) {
  .utep-hero, .utep-panel, .utep-ans, .utep-prod, .utep-calc2 { grid-template-columns: minmax(0, 1fr); }
  .utep-panel-l, .utep-calc2-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .utep-grid, .utep-more, .utep-mats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utep-mat2.film { grid-column: 1 / -1; }
  .utep-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utep-combo { grid-template-columns: minmax(0, 1fr); }
  .utep-gallery { position: static; }
  .utep-hero { gap: 24px; }
}
@media (max-width: 600px) {
  .utep { gap: 56px; }
  .utep-desc-wrap { grid-template-columns: minmax(0, 1fr); }
  .utep-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .utep-fact b { font-size: 20px; }
  .utep-fields, .utep-two, .utep-grid, .utep-more, .utep-uses, .utep-mats { grid-template-columns: minmax(0, 1fr); }
  .utep-panel-l, .utep-panel-r, .utep-calc2-in, .utep-calc2 .utep-result { padding: 20px; }
  .utep-cta { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .utep-hs { font-size: 12px; padding: 6px 10px 6px 6px; }
  .utep-tabs, .utep-zones { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .utep-tab, .utep-zone { flex: none; }
  .utep-gal-main { aspect-ratio: 4 / 3; padding: 12px; }
  .utep-pb-price { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .utep * { transition: none !important; animation: none !important; } }
