/* TECH SERVICE · concept-g · поток tpl: шаблонные страницы каталога (category / device / service).
   Подключается после styles.css. Переиспользует токены и блоки главной, добавляет блоки страниц каталога. */

/* ---------- мега-каталог и бургер: пункты — ссылки на страницы ---------- */
.mega__devs a { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 500; }
.mega__devs a span { color: var(--muted); font-size: 14px; font-weight: 400; }
.mega__devs a.is-on, .mega__devs a:hover { background: var(--paper); }
.mega__svc h3 a:hover, .mega__svc li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mtree__svc li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.tpl-mtree__all { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: 16px; font-weight: 600; }

/* ---------- хлебные крошки ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font: 500 14px/1.3 var(--f-t); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .6; }
.crumbs a { padding: 6px 0; border-bottom: 1px solid var(--p-line); }
.crumbs a:hover { border-color: currentColor; }
.crumbs [aria-current] { font-weight: 600; }

/* ---------- первый экран: слово позади реального фото ---------- */
.tpl-hero { --mark-max: .34; }
.tpl-hero .hero__mark { left: var(--pad); right: var(--pad); }
/* крошки — в колонке текста над H1: H1 не может их перекрыть */
.tpl-hero .crumbs { margin-bottom: 18px; }
/* фото человека с техникой: стиральная машина одной высоты на соседних страницах (--wf — доля машины в высоте фото) */
.tpl-man { position: absolute; bottom: 0; left: 56%; transform: translateX(-50%); height: min(calc(var(--wh, 40%) / var(--wf, .45)), 92%); width: auto; max-width: none; z-index: 2; pointer-events: none; }
.tpl-hero .hero__l { width: min(40vw, 760px); }
/* H1 максимум 2 строки: кегль подгоняет fitH1() в pages-tpl.js */
.tpl-hero h1 { font-size: clamp(44px, 3.9vw, 70px); max-width: none; }
.tpl-hero .hero__r { gap: 16px; }
.tpl-hero--dev .hero__r { width: clamp(290px, 22vw, 350px); }
.tpl-hero--dev .tpl-man { left: 59%; }
/* плашка цен (вид техники) */
.tpl-plate { margin-top: auto; width: 100%; background: #fff; color: var(--ink); padding: 22px 22px 14px; text-align: left; box-shadow: 0 30px 60px -28px rgba(0,0,0,.45); }
.tpl-plate__h { font: 800 28px/1 var(--f-d); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 10px; }
.tpl-plate li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0 9px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.25; }
.tpl-plate li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #B9B6B1; }
.tpl-plate li a:hover { text-decoration-color: currentColor; }
.tpl-plate b { font: 800 24px/1 var(--f-d); color: var(--num); white-space: nowrap; }
.tpl-plate b em { font: 600 13px/1 var(--f-t); font-style: normal; color: var(--muted); margin-right: 4px; text-transform: uppercase; }
.tpl-plate .lnk { margin-top: 4px; }
/* цифры услуги: цена, срок, гарантия */
.tpl-facts { margin-top: auto; display: grid; gap: 14px; justify-items: end; }
.tpl-facts p { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tpl-facts b { font: 800 clamp(40px, 3.6vw, 62px)/.86 var(--f-d); text-transform: uppercase; white-space: nowrap; }
.tpl-facts b em { font-style: normal; font-size: .42em; margin-right: 6px; vertical-align: .55em; }
.tpl-facts span { font-size: 14px; line-height: 1.3; }

/* ---------- виды техники группы ---------- */
.tpl-types__top, .tpl-bento__top, .tpl-parts__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 30%); gap: 40px; align-items: end; margin-bottom: clamp(32px, 3.4vw, 48px); }
.tpl-types__top .txt, .tpl-bento__top .txt, .tpl-parts__top .txt { justify-self: end; margin: 0; }
.tpl-devgrid { grid-template-columns: repeat(5, 1fr); }
.tpl-devgrid .dev { min-height: 330px; }
.tpl-devgrid .dev img { height: 160px; }
.tpl-devgrid .dev--cta h3 { max-width: 7em; }

/* ---------- частые поломки: 4×2 карточки с фото на цветном плакате ---------- */
.tpl-brk { padding: 26px var(--pad) clamp(72px, 7vw, 104px); }
.tpl-brk__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 28%); gap: 40px; align-items: end; margin-bottom: 40px; position: relative; z-index: 2; }
.tpl-brk__top .h-poster { max-width: 13em; }
.tpl-brk__p { font-size: 15px; line-height: 1.5; justify-self: end; max-width: 40ch; }
.tpl-brk__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; position: relative; z-index: 2; }
.tpl-brk__c a { display: flex; flex-direction: column; height: 100%; }
.tpl-brk__ph { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: rgba(0,0,0,.15); }
.tpl-brk__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.tpl-brk__c a:hover img { transform: scale(1.05); }
.tpl-brk__n { position: absolute; left: 12px; top: 12px; padding: 6px 9px 5px; background: #fff; color: #151515; font: 600 13px/1 var(--f-t); letter-spacing: .04em; }
.tpl-brk__c h3 { margin-top: 16px; font: 800 clamp(28px, 2.2vw, 34px)/.95 var(--f-d); text-transform: uppercase; letter-spacing: .01em; }
.tpl-brk__why { margin-top: 6px; font-size: 15px; line-height: 1.4; }
.tpl-brk__m { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 12px; }
.tpl-brk__m { border-top: 1px solid var(--p-line); margin-top: 14px; }
.tpl-brk__m b { font: 800 28px/1 var(--f-d); white-space: nowrap; }
.tpl-brk__m b em { font: 600 13px/1 var(--f-t); font-style: normal; text-transform: uppercase; margin-right: 4px; letter-spacing: .04em; }
.tpl-brk__m span { font-size: 14px; }
.tpl-brk__m .i { margin-left: auto; width: 22px; height: 22px; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.tpl-brk__c a:hover .i { transform: translate(2px, -2px); }
.tpl-brk__c a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- бренды ---------- */
.tpl-brands { padding-top: clamp(48px, 5vw, 80px); padding-bottom: clamp(56px, 5.4vw, 88px); }
.tpl-brands__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: end; margin-bottom: 36px; }
.tpl-brands__n { display: flex; align-items: flex-end; gap: 12px; }
.tpl-brands__n b { font: 800 clamp(120px, 11vw, 200px)/.76 var(--f-d); color: var(--num); letter-spacing: -.01em; white-space: nowrap; }
.tpl-brands__n span { font: 800 clamp(30px, 2.6vw, 44px)/1 var(--f-d); text-transform: uppercase; background: var(--unit-bg); color: var(--unit-ink); padding: var(--unit-pad); }
.tpl-brands__l { padding-bottom: 6px; }
.tpl-brands__l .txt { margin-top: 14px; }
.tpl-brands__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-brands__list a { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 4px 22px 0; border: 1px solid var(--line); font: 800 26px/1 var(--f-d); text-transform: uppercase; letter-spacing: .02em; transition: background-color .2s, color .2s, border-color .2s; }
.tpl-brands__list a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.tpl-brands__more a { background: var(--acc-fill); color: var(--acc-on); border-color: var(--acc-fill); }
[data-skin="lime"] .tpl-brands__more a { border-color: #111310; }

/* ---------- что входит: бенто ---------- */
.tpl-bento__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
/* итог — широкая цветная полоса под пятью шагами */
.tpl-bento__grid > .tpl-bento__sum { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(260px, auto); grid-template-areas: "cap inc btn" "price inc btn" "note inc btn"; column-gap: clamp(32px, 4vw, 72px); align-items: center; min-height: 0; }
.tpl-bento__sum > .cap { grid-area: cap; } .tpl-bento__sum .tpl-bento__price { grid-area: price; } .tpl-bento__sum .tpl-bento__note { grid-area: note; }
.tpl-bento__sum .tpl-bento__inc { grid-area: inc; grid-template-columns: 1fr 1fr; margin: 0; padding: 0 0 0 clamp(24px, 3vw, 48px); border-top: 0; border-left: 1px solid rgba(255,255,255,.35); align-self: stretch; align-content: center; }
.tpl-bento__grid > .tpl-bento__sum .btn { grid-area: btn; margin: 0; }
.tpl-bento__c { display: flex; flex-direction: column; justify-content: flex-start; gap: 40px; min-height: 340px; padding: 22px 22px 24px; background: var(--paper); min-width: 0; }
/* номер шага — графика: огромная узкая цифра цвета темы */
.tpl-bento__big { font: 800 clamp(96px, 7.6vw, 150px)/.78 var(--f-d); color: var(--num); letter-spacing: -.02em; }
.tpl-bento__t { padding: 0; }
.tpl-bento__n { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #DAD7D2; font: 600 13px/1 var(--f-t); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tpl-bento__n span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px 5px; background: #fff; color: var(--ink); text-transform: uppercase; }
.tpl-bento__n .i { width: 15px; height: 15px; }
.tpl-bento__t h3 { margin-top: 14px; min-height: 1.9em; font: 800 clamp(28px, 2.2vw, 36px)/.95 var(--f-d); text-transform: uppercase; letter-spacing: .01em; }
.tpl-bento__t p:not(.tpl-bento__n) { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 44ch; }
.tpl-bento__sum { background: var(--acc-fill); color: var(--acc-on); padding: 28px 26px; }
[data-skin="lime"] .tpl-bento__sum { background: #111310; color: #fff; }
.tpl-bento__price { margin-top: 18px; font: 800 clamp(64px, 5.6vw, 100px)/.82 var(--f-d); white-space: nowrap; }
.tpl-bento__price em { display: block; font: 600 13px/1 var(--f-t); font-style: normal; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
[data-skin="lime"] .tpl-bento__price { color: #C6F432; }
.tpl-bento__note { margin-top: 12px; font-size: 15px; }
.tpl-bento__inc { margin: 22px 0 26px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.35); display: grid; gap: 10px; }
.tpl-bento__inc li { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; }
.tpl-bento__inc .i { width: 18px; height: 18px; }
.tpl-bento__sum .btn { margin-top: auto; width: 100%; padding: 0 14px; font-size: 19px; }
[data-skin="lime"] .tpl-bento__sum .btn { background: #C6F432; color: #111310; }
[data-skin="grey"] .tpl-bento__sum .btn--solid, [data-skin="orange"] .tpl-bento__sum .btn--solid { background: #fff; color: #151515; }

/* ---------- признаки поломки ---------- */
.tpl-signs { padding: 26px var(--pad) clamp(72px, 7vw, 104px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(40px, 5vw, 96px); }
.tpl-signs .shead { grid-column: 1 / -1; }
.tpl-signs__l, .tpl-signs__r { position: relative; z-index: 2; }
.tpl-signs .h-poster { font-size: clamp(64px, 6.4vw, 116px); }
.tpl-signs__fact { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--p-ink); max-width: 560px; }
.tpl-signs__big { display: flex; align-items: flex-start; gap: 10px; font: 800 clamp(120px, 11vw, 200px)/.8 var(--f-d); letter-spacing: -.02em; white-space: nowrap; }
.tpl-signs__big em { font-style: normal; font-size: .3em; line-height: 1; margin-top: .1em; text-transform: uppercase; }
.tpl-signs__fact p:not(.tpl-signs__big) { margin-top: 18px; font-size: 15px; line-height: 1.5; max-width: 48ch; }
.tpl-signs__list { counter-reset: g; border-top: 1px solid var(--p-ink); }
.tpl-signs__list li { counter-increment: g; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 20px 0 18px; border-bottom: 1px solid var(--p-line); }
.tpl-signs__list li::before { content: "[" counter(g, decimal-leading-zero) "]"; grid-row: 1 / 3; font: 600 14px/1.9 var(--f-t); letter-spacing: .04em; }
.tpl-signs__t { font: 800 clamp(30px, 2.5vw, 40px)/.95 var(--f-d); text-transform: uppercase; }
.tpl-signs__list p:not(.tpl-signs__t) { margin-top: 8px; font-size: 15px; line-height: 1.5; max-width: 56ch; }
.tpl-signs__note { margin-top: 24px; font-size: 15px; font-weight: 600; max-width: 52ch; }
.tpl-signs__r .btn { margin-top: 22px; }
.tpl-signs .vlines { display: none; }

/* ---------- оригинал или аналог: светлое сравнение ---------- */
.tpl-parts__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: center; }
.tpl-part { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag tag" "h p" "dl dl"; column-gap: 28px; align-items: end; background: var(--paper); padding: 26px 30px 30px; }
.tpl-part__tag { grid-area: tag; justify-self: start; margin-bottom: 8px; padding: 7px 12px 6px; border: 1.5px solid var(--ink); font: 800 18px/1 var(--f-d); text-transform: uppercase; letter-spacing: .05em; }
.tpl-part--o .tpl-part__tag { background: var(--acc-fill); color: var(--acc-on); border-color: var(--acc-fill); }
[data-skin="lime"] .tpl-part--o .tpl-part__tag { border-color: #111310; }
.tpl-part h3 { grid-area: h; margin-top: 18px; font: 800 clamp(40px, 3.4vw, 56px)/.9 var(--f-d); text-transform: uppercase; }
.tpl-part__p { grid-area: p; margin-top: 10px; font: 800 44px/1 var(--f-d); color: var(--num); white-space: nowrap; }
.tpl-part__p em { display: block; font: 600 13px/1 var(--f-t); font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.tpl-part dl { grid-area: dl; margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.tpl-part dl div { padding: 9px 0; border-top: 1px solid #DAD7D2; }
.tpl-part dt { font: 600 13px/1.3 var(--f-t); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tpl-part dd { margin-top: 2px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.tpl-parts__vs { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--ink); font: 800 24px/1 var(--f-d); text-transform: uppercase; padding-top: 3px; }

/* ---------- кейсы без фото: карточки с фактами на плакате ---------- */
.tpl-tcases { padding: 26px var(--pad) clamp(72px, 7vw, 104px); }
.tpl-tcases__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 30%); gap: 40px; align-items: end; margin-bottom: 40px; position: relative; z-index: 2; }
.tpl-tcases__r { display: grid; gap: 22px; justify-items: end; }
.tpl-tcases__p { font-size: 15px; line-height: 1.5; max-width: 42ch; text-align: right; }
.tpl-tcases__rail { grid-auto-columns: calc((100% - 3 * 16px) / 3.3); position: relative; z-index: 2; }
.tpl-tcase { display: flex; flex-direction: column; padding: 22px 24px 26px; border: 1px solid var(--p-line); }
.tpl-tcase__top { display: flex; justify-content: space-between; gap: 12px; font: 600 13px/1.3 var(--f-t); letter-spacing: .04em; text-transform: uppercase; }
.tpl-tcase h3 { margin-top: 16px; min-height: 1.9em; font: 800 clamp(30px, 2.4vw, 40px)/.95 var(--f-d); text-transform: uppercase; }
.tpl-tcase__n { display: flex; gap: 28px; margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }
.tpl-tcase__n b { display: block; font: 800 clamp(34px, 2.8vw, 44px)/.9 var(--f-d); text-transform: uppercase; white-space: nowrap; }
.tpl-tcase__n span { font: 600 13px/1.6 var(--f-t); text-transform: uppercase; letter-spacing: .05em; }
.tpl-tcase dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 14px; font-size: 15px; line-height: 1.45; }
.tpl-tcase dt { font: 600 13px/1.6 var(--f-t); text-transform: uppercase; letter-spacing: .05em; }
.tpl-tcase .btn { margin-top: auto; align-self: flex-start; }
.tpl-tcase dl + .btn { margin-top: 24px; }
.tpl-tcases .tpl-all { margin-top: 28px; position: relative; z-index: 2; }

/* ---------- команда: метка приёмки/руководства ---------- */
.tpl-tag { position: absolute; right: 0; top: 0; padding: 8px 10px 7px; background: var(--acc-fill); color: var(--acc-on); font: 600 13px/1 var(--f-t); text-transform: uppercase; letter-spacing: .05em; }
[data-skin="lime"] .tpl-tag { background: #111310; color: #C6F432; }
.tpl-all { margin-top: 18px; align-self: flex-start; }

/* ---------- также чиним ---------- */
.tpl-also { padding: 26px var(--pad) clamp(72px, 7vw, 104px); }
.tpl-also__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 30%); gap: 40px; align-items: end; margin-bottom: 40px; position: relative; z-index: 2; }
.tpl-also__p { font-size: 15px; line-height: 1.5; justify-self: end; max-width: 42ch; }
.tpl-also__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(20px, 2vw, 36px); position: relative; z-index: 2; }
.tpl-also__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding-bottom: 6px; border-bottom: 2px solid var(--p-ink); font: 800 24px/1 var(--f-d); text-transform: uppercase; letter-spacing: .02em; }
.tpl-also__h:hover .i { transform: translate(2px, -2px); }
.tpl-also__h .i { transition: transform .3s; }
.tpl-also__col ul li a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--p-line); font-size: 15px; line-height: 1.25; }
.tpl-also__col ul li a:hover span:not(.tpl-also__ic) { text-decoration: underline; text-underline-offset: 3px; }
.tpl-also__col b { font: 800 19px/1 var(--f-d); white-space: nowrap; }
.tpl-also__ic { width: 34px; height: 34px; display: grid; place-items: center; background: #fff; }
.tpl-also__ic img { width: 30px; height: 30px; object-fit: contain; }
.tpl-also__ic i { font: 800 18px/1 var(--f-d); font-style: normal; color: #151515; }
/* группа: карточки остальных групп */
.tpl-also__grid--groups { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tpl-also__g { display: flex; flex-direction: column; border-top: 2px solid var(--p-ink); padding-top: 18px; }
.tpl-also__gh { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: end; }
.tpl-also__pics { grid-column: 1 / -1; display: flex; gap: 8px; margin-bottom: 16px; }
.tpl-also__pics img { width: 76px; height: 76px; object-fit: contain; background: #fff; padding: 6px; }
.tpl-also__gh b { font: 800 clamp(32px, 2.6vw, 42px)/.92 var(--f-d); text-transform: uppercase; }
.tpl-also__gh small { grid-column: 1; font-size: 14px; }
.tpl-also__gh .i { grid-row: 2 / 4; grid-column: 2; align-self: center; width: 26px; height: 26px; transition: transform .3s; }
.tpl-also__gh:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tpl-also__gh:hover .i { transform: translate(3px, -3px); }
.tpl-also__g ul { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-also__g ul a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--p-line); font-size: 14px; }
.tpl-also__g ul a:hover { border-color: var(--p-ink); }
/* услуга: другие услуги + другие виды техники */
.tpl-also__grid--svc { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 clamp(32px, 4vw, 72px); }
.tpl-also__svc { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 48px); }
.tpl-also__col .tpl-also__svc a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--p-line); font-size: 15px; }
.tpl-also__svc em { font-style: normal; font-size: 13px; white-space: nowrap; opacity: .9; }
.tpl-also__svc b { font: 800 19px/1 var(--f-d); white-space: nowrap; min-width: 92px; text-align: right; }
.tpl-also__svc a:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* широкие и средние экраны */
@media (max-width: 1440px) and (min-width: 1280px) {
  .tpl-also__grid:not(.tpl-also__grid--groups):not(.tpl-also__grid--svc) .tpl-also__col b { display: none; }
  .tpl-also__col ul li a { grid-template-columns: 34px minmax(0, 1fr); }
  .tpl-also__grid--svc .tpl-also__col ul:not(.tpl-also__svc) li a { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .tpl-also__col .tpl-also__svc li a { grid-template-columns: minmax(0, 1fr) auto auto; }
  .tpl-also__grid--svc .tpl-also__col b { display: block; }
}
@media (min-width: 1280px) and (max-width: 1360px) { .tpl-devgrid { grid-template-columns: repeat(5, 1fr); } .tpl-devgrid .dev { padding: 18px 16px 16px; } }

/* ======================================================================
   МОБИЛКА И ПЛАНШЕТ (до 1279px) — плакатная подача как на главной
   ====================================================================== */
@media (max-width: 1279px) {
  /* первый экран: крошки → слово → фото → H1 наезжает на фото → лид → рейтинг → кнопка */
  .tpl-hero { grid-template-rows: auto minmax(0, 1fr) auto auto auto auto; grid-template-areas: "cr cr" "stage stage" "h h" "lead lead" "crew rate" "cta cta"; padding-top: 10px; }
  .tpl-hero .crumbs { grid-area: cr; margin: 0; position: relative; z-index: 3; }
  .tpl-hero .crumbs ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 14px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
  .tpl-hero .crumbs ol::-webkit-scrollbar { display: none; }
  .tpl-hero .crumbs a { padding: 8px 0; }
  .tpl-man { position: static; grid-area: stage; justify-self: center; align-self: end; transform: none; left: auto; z-index: 2; height: calc(100% - var(--mwf, 40vw) * .38); max-height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: 50% 100%; animation: rise-m 1.2s cubic-bezier(.16,1,.3,1) both;
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 99%); mask-image: linear-gradient(to bottom, #000 82%, transparent 99%); }
  .tpl-hero .hero__l { width: auto; }
  .tpl-hero h1 { font-size: clamp(42px, 12.4vw, 80px); max-width: none; }
  .tpl-plate, .tpl-hero .big, .tpl-hero .crew__s { display: none; }
  .tpl-hero .rate { grid-area: rate; }
  .tpl-hero--dev .rate, .tpl-hero--svc .rate { grid-area: crew; justify-content: start; justify-self: start; text-align: left; }
  /* услуга: вместо лида — цена, срок, гарантия в одну строку */
  .tpl-hero--svc .hero__lead { display: none; }
  .tpl-facts { grid-area: lead; margin-top: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; justify-items: start; padding-top: 12px; border-top: 1px solid var(--p-line); }
  .tpl-facts p { align-items: flex-start; }
  .tpl-facts b { font-size: clamp(30px, 8.6vw, 48px); }
  .tpl-facts b em { display: none; }
  .tpl-facts span { font-size: 14px; }

  .tpl-types__top, .tpl-bento__top, .tpl-parts__top, .tpl-brk__top, .tpl-also__top { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 22px; }
  .tpl-types__top .txt, .tpl-bento__top .txt, .tpl-parts__top .txt, .tpl-brk__p, .tpl-also__p { justify-self: start; }
  .tpl-devgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tpl-devgrid .dev { min-height: 0; }
  .tpl-devgrid .dev img { height: 132px; }

  /* поломки — слайдер по одной карточке */
  .tpl-brk { padding: 24px var(--pad) 48px; }
  .tpl-brk__grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(84%, 360px); gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .tpl-brk__grid::-webkit-scrollbar { display: none; }
  .tpl-brk__c { scroll-snap-align: start; }
  .tpl-brk__ph { aspect-ratio: 1; }
  .tpl-brk__c h3 { font-size: 36px; }
  .tpl-brk__m b { font-size: 34px; }

  /* бренды: три строки чипов с прокруткой */
  .tpl-brands { padding: 40px var(--pad) 48px; }
  .tpl-brands__in { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 22px; }
  .tpl-brands__n b { font-size: clamp(96px, 27vw, 170px); white-space: nowrap; }
  /* бренды на мобилке: ровная сетка 3 колонки, одинаковые ячейки, 12 брендов + «ещё» на всю ширину — без дыр */
  .tpl-brands__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tpl-brands__list li:nth-child(n+13):not(.tpl-brands__more) { display: none; }
  .tpl-brands__list a { display: flex; justify-content: center; width: 100%; min-height: 50px; padding: 4px 4px 0; font-size: clamp(17px, 5.4vw, 22px); white-space: nowrap; border: 0; background: var(--paper); }
  .tpl-brands__more { grid-column: 1 / -1; }
  .tpl-brands__list .tpl-brands__more a { background: var(--acc-fill); color: var(--acc-on); }
  [data-skin="lime"] .tpl-brands__list .tpl-brands__more a { background: #111310; color: #C6F432; }
  .tpl-brk__n, .tpl-tag, .tpl-bento__n, .tpl-brk__m b em, .tpl-part dt, .tpl-part__p em, .tpl-bento__price em { font-size: 14px; }

  /* бенто — слайдер, итоговая карточка последней */
  .tpl-bento__grid { display: grid; grid-template-areas: none; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 360px); gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .tpl-bento__grid::-webkit-scrollbar { display: none; }
  .tpl-bento__grid > * { grid-area: auto !important; scroll-snap-align: start; }
  .tpl-bento__c { min-height: 0; gap: 18px; padding: 20px; }
  .tpl-bento__big { font-size: 112px; }
  .tpl-bento__t h3 { font-size: 32px; }
  .tpl-bento__grid > .tpl-bento__sum { grid-column: auto; display: flex; flex-direction: column; padding: 22px 20px; }
  .tpl-bento__sum .tpl-bento__inc { grid-template-columns: minmax(0, 1fr); margin: 22px 0 26px; padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.35); }
  .tpl-bento__grid > .tpl-bento__sum .btn { margin-top: auto; }
  .tpl-bento__price { font-size: clamp(72px, 20vw, 96px); }

  /* признаки: заголовок → фото → список */
  .tpl-signs { display: flex; flex-direction: column; padding: 24px var(--pad) 48px; }
  .tpl-signs .vlines { display: none; }
  .tpl-signs .h-poster { font-size: clamp(56px, 16vw, 96px); }
  .tpl-signs .h-poster br { display: none; }
  .tpl-signs__fact { margin-top: 22px; }
  .tpl-signs__big { font-size: clamp(96px, 30vw, 150px); }
  .tpl-signs__r { margin-top: 26px; }
  .tpl-signs__list li { grid-template-columns: 48px minmax(0, 1fr); padding: 16px 0 14px; }
  .tpl-signs__t { font-size: 30px; }
  .tpl-signs__r .btn { width: 100%; }

  /* оригинал / аналог — две карточки слайдером */
  .tpl-parts__grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding: 0 var(--pad); align-items: stretch; }
  .tpl-parts__grid::-webkit-scrollbar { display: none; }
  .tpl-parts__vs { display: none; }
  .tpl-part { scroll-snap-align: start; grid-template-columns: minmax(0, 1fr); grid-template-areas: "tag" "h" "p" "dl"; padding: 18px 18px 20px; }
  .tpl-part dl { grid-template-columns: minmax(0, 1fr); }
  .tpl-part h3 { font-size: 30px; }
  .tpl-part__p { font-size: 40px; }

  /* также чиним */
  .tpl-tcases { padding: 24px var(--pad) 48px; }
  .tpl-tcases__top { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 22px; }
  .tpl-tcases__r { justify-items: start; }
  .tpl-tcases__p { text-align: left; }
  .tpl-tcases__r .pager { display: none; }
  .tpl-tcases__rail { grid-auto-columns: min(86%, 380px); gap: 12px; }
  .tpl-tcase { padding: 18px; }
  .tpl-tcase__top, .tpl-tcase__n span, .tpl-tcase dt { font-size: 14px; }
  .tpl-tcase dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tpl-tcase dd { margin-bottom: 8px; }
  .tpl-tcase .btn { width: 100%; }
  .tpl-also { padding: 24px var(--pad) 48px; }
  .tpl-also__grid, .tpl-also__grid--svc, .tpl-also__grid--groups { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .tpl-also__col ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); }
  .tpl-also__col ul::-webkit-scrollbar { display: none; }
  .tpl-also__col ul li a { grid-template-columns: 34px auto; min-height: 52px; padding: 6px 14px 6px 8px; border: 1px solid var(--p-line); white-space: nowrap; }
  .tpl-also__col b { display: none; }
  .tpl-also__svc { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
  .tpl-also__col .tpl-also__svc a { grid-template-columns: minmax(0, 1fr) auto; white-space: normal !important; border: 0 !important; border-bottom: 1px solid var(--p-line) !important; padding: 8px 0 !important; }
  .tpl-also__svc em { display: none; }
  .tpl-also__col .tpl-also__svc b { display: block; font-size: 22px; }
  .tpl-also__h { font-size: 26px; }
  .tpl-also__pics img { width: 64px; height: 64px; }
  .tpl-also__g ul a { min-height: 44px; }
  .tpl-all { width: 100%; justify-content: space-between; }
}
@media (min-width: 700px) and (max-width: 1279px) {
  .tpl-brands__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tpl-brands__list li:nth-child(n+13):not(.tpl-brands__more) { display: list-item; }
  .tpl-brands__list li:nth-child(n+21):not(.tpl-brands__more) { display: none; }
  .tpl-brk__grid, .tpl-bento__grid { grid-auto-columns: calc((100% - 14px) / 2.2); }
  .tpl-tcases__rail { grid-auto-columns: calc((100% - 12px) / 2.15); }
  .tpl-parts__grid { grid-auto-columns: calc((100% - 12px) / 2); }
  .tpl-also__grid--groups { grid-template-columns: 1fr 1fr; }
  .tpl-facts { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 40px; }
}
@media (max-width: 1279px) and (max-height: 720px) { .tpl-hero .crumbs { display: none; } }

/* доля высоты стиральной машины в вырезе (измерено _build/tpl-wf.py) — машина одной высоты на всех трёх страницах и во всех темах */
.tpl-hero--cat .tpl-man { --wf: .489; left: 63%; }
@media (min-width: 1280px) { .tpl-hero h1 .soft { display: block; } }   /* «в Алматы» — второй строкой, без висящего предлога */
.tpl-hero--dev .tpl-man { --wf: .505; }
.tpl-hero--svc .tpl-man { --wf: .505; left: 59%; }   /* то же фото, что у вида техники — машина того же размера */
[data-skin="lime"] .tpl-hero--cat .tpl-man { --wf: .461; }
[data-skin="lime"] .tpl-hero--dev .tpl-man { --wf: .495; }
[data-skin="grey"] .tpl-hero--cat .tpl-man { --wf: .482; }
[data-skin="grey"] .tpl-hero--dev .tpl-man { --wf: .472; }
[data-skin="lime"] .tpl-hero--svc .tpl-man { --wf: .495; }
[data-skin="grey"] .tpl-hero--svc .tpl-man { --wf: .472; }
@media (min-width: 1280px) { .tpl-parts .mdots { display: none; } }

/* кейс с одним фото (без пары «до/после»): ползунка нет */
.ba.is-single { cursor: default; }
.ba.is-single .ba__line, .ba.is-single .ba__tag--b, .ba.is-single input { display: none; }
.ba.is-single .ba__tag--a { left: 14px; right: auto; }
