/* page-level layouts. Tokens and primitives: base.css */
.logo img { height: 34px; width: auto; }

/* ---------- hero (home) ---------- */
.hero { background: var(--night); color: var(--paper); position: relative; overflow: hidden; }
.hero::before { /* faint drawing grid, only behind the unit */
  content: ""; position: absolute; inset: 0 0 0 45%;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(60% 60% at 60% 45%, #000 30%, transparent 75%); opacity: .55; pointer-events: none;
}
.hero-grid { display: grid; gap: 8px; padding-top: clamp(28px, 6vw, 72px); position: relative; }
.hero-txt { align-self: center; padding-bottom: 8px; }
.hero h1 { font-size: clamp(2.15rem, 4.2vw, 3.7rem); line-height: 1.05; max-width: none; text-wrap: balance; }
.hero .lead { max-width: 31em; }
.hero .label { color: var(--night-muted); }
.hero .lead { color: #c9ccd1; margin-bottom: 26px; }
.hero-link { margin-top: 18px; font-size: 15px; }
.hero-link a { color: var(--paper); }
.hero-unit { position: relative; aspect-ratio: 1 / 1; max-height: 74vh; min-height: 300px; margin: 0 -8px; }
.hero-unit .hero-poster, .hero-unit canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-unit .hero-poster img { width: 100%; height: 100%; object-fit: contain; }
.hero-unit canvas { opacity: 0; transition: opacity .6s var(--ease); }
.hero-unit.live canvas { opacity: 1; }
.hero-unit.live .hero-poster { opacity: 0; transition: opacity .6s .2s; }
.hero-dims { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero-dims line, .hero-dims path { stroke: var(--heat); stroke-width: 1.2; }
.hero-dims text { fill: var(--heat); font: 500 13px var(--f-mono); }
.hero-dims .ext { stroke: rgba(255, 138, 30, .45); stroke-dasharray: 3 3; }
.hero-tag { position: absolute; left: 8px; bottom: 8px; display: grid; gap: 2px; font-size: 12px; color: var(--night-muted); }
.hero-tag span:first-child { color: var(--paper); font-weight: 500; }
.hero-dimbtn { position: absolute; right: 8px; bottom: 8px; }
.hero-strip { list-style: none; margin: 0; padding: 22px 0 30px; display: grid; gap: 14px 24px; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--night-line); font-size: 14px; }
.hero-strip b { display: block; font-weight: 500; color: var(--paper); }
.hero-strip span { color: var(--night-muted); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; min-height: min(78vh, 760px); }
  .hero-strip { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- analog finder ---------- */
.swap { display: grid; gap: 14px; align-content: start; }
.swap-in { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.swap-in .inp { font-size: 18px; min-height: 56px; }
.swap-in .btn { min-height: 56px; }
.swap-hint { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.swap-hint .chip { cursor: pointer; }
.swap-out:empty { display: none; }
.swap-res { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px; background: var(--sheet); border: 1px solid var(--line-strong); border-radius: var(--r-lg); }
.swap-res + .swap-res { margin-top: 10px; }
.swap-res img { width: 120px; height: 90px; object-fit: contain; }
.swap-res h3 { margin: 4px 0 6px; }


.swap-none { padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
@media (max-width: 520px) { .swap-res { grid-template-columns: 64px 1fr; gap: 12px; padding: 14px; } .swap-res img { width: 64px; height: 86px; } }

/* ---------- lineup (series at one scale) ---------- */
.lineup { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gut); align-items: end; }
@media (min-width: 900px) { .lineup { grid-template-columns: repeat(5, 1fr); } }
.lineup-it { display: grid; gap: 14px; text-decoration: none; padding: 18px 12px 18px; border-radius: var(--r-lg); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.lineup-it:hover { border-color: var(--line); background: var(--sheet); color: inherit; }
.lineup-svg { display: grid; place-items: end center; min-height: 0; }
.lineup-svg svg { width: auto; height: auto; max-width: 100%; } /* natural size = one scale for all series */
.lineup-txt { display: grid; gap: 4px; }
.lineup-txt b { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.front-svg .body { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.2; }
.front-svg .port-c { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1; }
.front-svg .port-c.hot { stroke: var(--heat-ink); }
.front-svg .port-c.cold { stroke: var(--cold); }
.front-svg .axis { stroke: var(--muted); stroke-width: .6; stroke-dasharray: 4 2 1 2; }
.front-svg .dl { stroke: var(--ink-2); stroke-width: .8; }
.front-svg text { font: 500 11px var(--f-mono); fill: var(--ink-2); }
.front-svg .t-name { font: 500 12px var(--f-sans); fill: var(--ink); }
.freon-row { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: center; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); text-decoration: none; background: var(--sheet); }
.freon-row .muted { grid-column: 2; }
.freon-row > span:last-child { grid-row: 1 / 3; grid-column: 3; font-size: 22px; }
.freon-row:hover { border-color: var(--ink); color: inherit; }

/* ---------- explode (sticky 3D, scroll-linked, no scroll hijack) ---------- */
.explode { position: relative; background: var(--night); color: var(--paper); }
.explode-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); }
.explode-sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.explode-poster { position: absolute; inset: 10% 10% 10% 40%; display: grid; place-items: center; transition: opacity .5s; }
.explode-poster img { max-height: 80vh; object-fit: contain; }
.explode.live .explode-poster { opacity: 0; }
.explode-steps { position: relative; margin-top: calc(-100vh + var(--header-h)); margin-top: calc(-100svh + var(--header-h)); pointer-events: none; }
.ex-step { min-height: 92vh; display: grid; align-content: center; max-width: 30em; pointer-events: auto; padding: 40px 0; }
.ex-step:last-child { min-height: 100vh; }
.ex-step h2 { font-size: clamp(1.8rem, 3.6vw, 3.1rem); }
.ex-step .lead { color: #cfd2d6; }
.ex-step .label { color: var(--heat); }
.ex-step > * { background: color-mix(in srgb, var(--night) 72%, transparent); }
@media (max-width: 899px) {
  .explode-sticky { height: 62vh; height: 62svh; }
  .explode-steps { margin-top: -62vh; margin-top: -62svh; }
  .ex-step { min-height: 0; padding: 62vh 0 10vh; padding: 62svh 0 10svh; align-content: end; }
  .ex-step:first-child { padding-top: 58svh; }
  .explode-poster { inset: 6% 8%; }
}
.explode.static .explode-sticky { position: relative; height: 56vh; }
.explode.static .explode-steps { margin-top: 0; }
.explode.static .ex-step { min-height: 0; padding: 32px 0; }

/* ---------- bars (power by plates) ---------- */
.bars { display: grid; gap: 4px; }
.bar { display: grid; grid-template-columns: 82px 1fr 82px 88px; gap: 12px; align-items: center; padding: 8px 6px; border-radius: var(--r); text-decoration: none; font-size: 15px; }
.bar:hover { background: var(--paper); color: inherit; }
.bar-line { height: 10px; background: var(--paper-2); border-radius: 5px; overflow: hidden; }
.bar-line i { display: block; height: 100%; width: var(--v); background: linear-gradient(90deg, var(--heat) 0, var(--heat) 100%); border-radius: 5px; transform-origin: left; }
.bar-v { text-align: right; font-weight: 500; }
.bar-p { text-align: right; font-size: 13px; }
@media (max-width: 520px) { .bar { grid-template-columns: 70px 1fr 66px; } .bar-p { display: none; } }

/* ---------- audiences ---------- */
.aud-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: none; }
.aud-tabs::-webkit-scrollbar { display: none; }
.aud-tabs button { flex: none; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 15px; }
.aud-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.aud-panel[hidden] { display: none; }
.aud-panel { display: grid; gap: var(--gut); align-items: start; }
@media (min-width: 900px) { .aud-panel { grid-template-columns: 5fr 7fr; } }
.aud-txt p { color: var(--ink-2); }
.aud-img { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.aud-img img { width: 100%; height: auto; }
.aud-unit { position: absolute; right: 14px; bottom: 40px; width: 30%; max-width: 210px; background: var(--sheet); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 8px 8px 6px; display: grid; gap: 2px; box-shadow: 0 10px 30px rgba(15, 17, 19, .18); }
.aud-unit img { width: 100%; height: auto; }
.aud-unit b { font-size: 12px; font-weight: 500; text-align: center; }
.aud-img figcaption { position: absolute; left: 10px; bottom: 8px; background: color-mix(in srgb, var(--sheet) 80%, transparent); padding: 2px 8px; border-radius: 4px; }

/* ---------- freon block ---------- */
.r-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 24px; }
.r-it { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--night-line); border-radius: var(--r-lg); text-decoration: none; }
.r-it:hover { border-color: var(--heat); color: inherit; }
.r-it b { font-size: 20px; font-weight: 500; }
.r-it span { color: var(--night-muted); }
.r-img img { width: 100%; max-height: 520px; object-fit: contain; }
.trio h3 { margin-top: 8px; }

/* ---------- product page ---------- */
.pd { padding: 14px 0 clamp(40px, 6vw, 80px); }
.pd-grid { display: grid; gap: 22px; }
.pd-grid { grid-template-areas: "head" "media" "info"; }
.pd-head { grid-area: head; } .pd-media { grid-area: media; } .pd-info { grid-area: info; }
@media (min-width: 1000px) {
  .pd-grid { grid-template-columns: 7fr 5fr; grid-template-rows: auto 1fr; grid-template-areas: "media head" "media info"; column-gap: 48px; row-gap: 0; align-items: start; }
  .pd-media { position: sticky; top: calc(var(--header-h) + 16px); }
}
.pd-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); border-color: var(--line); }
.pd-view { position: absolute; inset: 0; display: none; }
.pd-view.on { display: block; }
.pd-view picture, .pd-view img { width: 100%; height: 100%; object-fit: contain; }
.pd-view[data-view="draw"] { background: #fff; }
.pd-view canvas { width: 100%; height: 100%; touch-action: pan-y; }
.u3d-load { position: absolute; inset: auto 0 12px; text-align: center; color: var(--muted); }
.pd-stage.u3d-ready .u3d-load { display: none; }
.pd-stamp { position: absolute; right: 10px; top: 10px; min-width: 170px; }
@media (max-width: 560px) { .pd-stamp { display: none; } }
.seg { display: flex; gap: 4px; margin-top: 6px; border-bottom: 1px solid var(--line); max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: transparent; padding: 10px 14px; min-height: 44px; cursor: pointer; font-size: 15px; white-space: nowrap; color: var(--ink-2); }
.seg button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.pd-cap { margin-top: 10px; }
.pd-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 10px; }
.pd-sub { font-family: var(--f-mono); font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.pd-buy { display: grid; gap: 14px; padding: 18px; margin-bottom: 22px; background: var(--sheet); border: 1px solid var(--line-strong); border-radius: var(--r-lg); }
.pd-price { display: grid; gap: 2px; }
.pd-price .price { font-size: 34px; letter-spacing: -.02em; }
.pd-buy .btns .btn { flex: 1 1 180px; }
.pd-call { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); text-decoration: none; }
.pd-call b { font-size: 19px; font-weight: 500; }
.pd-add { justify-self: start; padding: 6px 0; min-height: 36px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.pd-add.btn--ink { background: none; color: var(--ok); }
@media (max-width: 999px) {   /* after the base rules: price and "Получить счёт" on the first phone screen */
  .pd-grid { gap: 12px; }
  .pd-stage { aspect-ratio: 16 / 10; }
  .pd-cap { display: none; }
  .pd-head .label { margin-bottom: 6px; }
  .pd-head h1 { margin-bottom: 6px; }
  .pd-head .pd-sub { margin-bottom: 0; }
}
@media (max-width: 599px) {
  .pd-stage { aspect-ratio: 16 / 9; }
  .pd-head h1 { font-size: 30px; line-height: 1.08; }
  .pd-buy { padding: 14px; gap: 10px; }
  .pd-price .price { font-size: 30px; }
  body:has(.pd) .crumbs { padding-top: 10px; }
}
.note-box { padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--sheet); align-self: start; }
.note-box .btn { margin-top: 4px; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files a { display: grid; grid-template-columns: 58px 1fr; gap: 2px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; background: var(--sheet); }
.files a:hover { border-color: var(--ink); color: inherit; }
.files .mono { grid-row: 1 / 3; align-self: center; font-size: 12px; border: 1px solid var(--line-strong); text-align: center; padding: 6px 0; border-radius: 3px; }
.files small { color: var(--muted); }
.draw-link { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.nrow { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.nchip { flex: none; display: grid; gap: 0; min-width: 96px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; background: var(--sheet); }
.nchip b { font-size: 24px; font-weight: 500; line-height: 1; }
.nchip span { font-size: 12px; color: var(--muted); }
.nchip em { font-style: normal; font-size: 13px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.nchip.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.nchip.on span { color: var(--night-muted); }
.rating-tbl td b { font-size: 17px; }
@media (max-width: 640px) {
  .rating-tbl thead { display: none; }
  .rating-tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rating-tbl td { border: 0; padding: 0; }
  .rating-tbl td:first-child { grid-column: 1 / -1; font-weight: 500; }
  .rating-tbl td:nth-child(2)::before { content: "греющая "; color: var(--muted); }
  .rating-tbl td:nth-child(3)::before { content: "нагреваемая "; color: var(--muted); }
  .rating-tbl td:nth-child(2), .rating-tbl td:nth-child(3) { text-align: left; font-size: 14px; }
  .rating-tbl td:nth-child(4) { grid-row: 2 / 4; grid-column: 2; align-self: center; }
  .rating-tbl td:nth-child(5) { grid-column: 1 / -1; text-align: left; font-size: 13px; }
  .rating-tbl td:nth-child(5)::before { content: "потери, кПа "; }
}

/* ---------- series page ---------- */
.sh { padding: 14px 0 clamp(40px, 6vw, 72px); }
.sh-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .sh-grid { grid-template-columns: 5fr 6fr; gap: 48px; align-items: center; } }
.sh-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 22px 0; }
.sh-facts > div { background: var(--sheet); padding: 12px 14px; display: grid; gap: 2px; }
.sh-facts b { font-size: 19px; font-weight: 500; }
.sh-3d { border-radius: var(--r-lg); overflow: hidden; border-color: var(--line); background: var(--paper-2); }
.sh-stage { position: relative; aspect-ratio: 4 / 3; }
.sh-stage .sh-poster, .sh-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sh-stage .sh-poster img { width: 100%; height: 100%; object-fit: contain; }
.sh-stage canvas { display: none; touch-action: pan-y; }
.sh-stage.live canvas { display: block; }
.sh-stage.live .sh-poster, .sh-stage.live .sh-go { display: none; }
.sh-go { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); }
.sh-ctl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 14px 16px 16px; border-top: 1px solid var(--line); background: var(--sheet); }
.sh-ctl input[type=range] { width: 100%; accent-color: var(--heat); }
.sh-out { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; font-size: 15px; }
.sh-out b { font-size: 20px; font-weight: 500; }
.sh-out a { font-weight: 500; }
.sh-out small { font-size: 13px; }
.sh-info h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.05; }
.sh-front svg { max-width: 260px; height: auto; }
.cards-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }
.mcard .card-title { font-size: 18px; text-decoration: none; }
.mcard .card-foot .price { font-size: 18px; }
@media (max-width: 520px) { .mcard .card-foot { flex-direction: column; align-items: stretch; } }

/* ---------- catalog ---------- */
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-filter .chip { cursor: pointer; padding: 8px 14px; font-size: 13px; }
.cat-filter .chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cat-head { display: grid; grid-template-columns: 70px 1fr; gap: 6px 18px; align-items: center; margin-bottom: 14px; }
.cat-head > .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 760px) { .cat-head { grid-template-columns: 96px 1fr auto; } .cat-head > .btn { grid-column: auto; } }
.cat-head h2 { margin: 0; }
.cat-head h2 a { text-decoration: none; }
.cat-head p { margin: 2px 0 0; }
.cat-svg svg { width: 70px; height: auto; }
.cat-s[hidden] { display: none; }

/* ---------- tools ---------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 14px/44px var(--f-mono); text-align: center; border: 1px solid var(--line-strong); border-radius: 50%; width: 44px; height: 44px; }
.calc-form, .cta-form, form.sheet { padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); border-color: var(--line); }
.calc-side { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; }
.calc-side legend { padding: 0 6px; display: flex; gap: 8px; align-items: center; font-weight: 500; }
.calc-scheme { max-width: 360px; margin-top: 26px; }
.scheme .body { fill: var(--sheet); stroke: var(--ink); }
.scheme .flow { stroke-width: 2; fill: none; }
.scheme .flow.hot { stroke: var(--heat-ink); }
.scheme .flow.cold { stroke: var(--cold); }
.scheme .dashf { stroke-dasharray: 6 5; animation: flowdash 1.4s linear infinite; }
.scheme .cold-g .dashf { animation-direction: reverse; }
.scheme .port-c.hot { fill: var(--sheet); stroke: var(--heat-ink); stroke-width: 2; }
.scheme .port-c.cold { fill: var(--sheet); stroke: var(--cold); stroke-width: 2; }
.scheme text { font: 500 11px var(--f-mono); fill: var(--ink-2); }
@keyframes flowdash { to { stroke-dashoffset: -22; } }
.inv-tbl input { width: 64px; min-height: 38px; padding: 6px 8px; text-align: center; }
.inv-tbl .x { border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--muted); }
.inv-empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }

/* ---------- prose (articles, pages) ---------- */
.prose-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .prose-grid { grid-template-columns: 1fr minmax(0, 720px) 1fr; } .prose-head, .prose { grid-column: 2; } .prose-aside { grid-column: 3; } }
.prose-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.prose { font-size: 18px; line-height: 1.65; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose .tbl { font-size: 15px; margin: 1em 0; }
.prose img { border-radius: var(--r-lg); }
.prose a { color: var(--heat-ink); }
.art-card .card-title { font-size: 19px; }

/* ---------- CTA ---------- */
.cta h2 { max-width: 14em; }
.cta-contacts { display: grid; gap: 14px; margin-top: 26px; }
.cta-contacts a { text-decoration: none; display: grid; gap: 2px; }
.cta-contacts b { font-size: 24px; font-weight: 500; color: var(--paper); }
.cta-form { color: var(--ink); }
.sh-info h1 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.sec-head h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.models-tbl th { white-space: nowrap; }
.models-tbl { min-width: 560px; }

/* ---------- review 29.10: phone layouts, scale for the bars, static explode on phones ---------- */
@media (max-width: 599px) {
  .hero::before { display: none; }
  .hero-grid { padding-top: 24px; gap: 0; }
  .hero h1 { font-size: 34px; max-width: none; }
  .hero .lead { font-size: 16px; line-height: 1.45; margin-bottom: 18px; }
  .hero-link { margin-top: 14px; }
  .hero-unit { min-height: 0; height: 280px; aspect-ratio: auto; }
  .swap-hint { gap: 8px; }
  .swap-hint .chip { min-height: 44px; padding: 8px 12px; font-size: 14px; }
  .freon-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px; }
  .freon-row > .label { grid-column: 1; grid-row: 1; }
  .freon-row > b { grid-column: 1; grid-row: 2; }
  .freon-row > .muted { grid-column: 1; grid-row: 3; font-size: 15px; }
  .freon-row > span:last-child { grid-column: 2; grid-row: 1 / 4; }
  .lineup { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 184px; align-items: end; overflow-x: auto;
    gap: 8px; padding-bottom: 12px; margin: 0 calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); scroll-snap-type: x proximity; }
  .lineup-it { scroll-snap-align: start; padding: 12px 8px; border-color: var(--line); }
}
.lineup-note { margin: -8px 0 14px; }
.lineup-swipe { display: none; }
@media (max-width: 599px) { .lineup-swipe { display: inline; } }
.front-svg .body { stroke-width: 1.5; }
.front-svg .dl { stroke-width: 1; }
.front-svg .port-c { stroke-width: 1.15; }

.bar { border-bottom: 1px solid var(--line); border-radius: 0; min-height: 46px; }
.bar:focus-visible { background: var(--paper); }
.bar-line { height: 12px; border-radius: 0; }
.bar-line i { border-radius: 0; background: var(--heat); }
.bar-p { font-size: 15px; color: var(--ink-2); }
.bar--head { min-height: 0; padding-block: 0 6px; }
.bar-axis { position: relative; height: 16px; background: none; }
.bar-axis i { position: absolute; left: var(--x); transform: translateX(-50%); font: 400 11px/16px var(--f-mono); font-style: normal; color: var(--muted); }
.bar-axis i:first-child { transform: none; }
.bar-axis i:last-child { transform: translateX(-100%); }
.bars a.bar .bar-line { background: repeating-linear-gradient(90deg, var(--paper-2) 0 calc(var(--t) - 1px), var(--line) calc(var(--t) - 1px) var(--t)); }
@media (max-width: 520px) {
  .bar { grid-template-columns: 78px minmax(0, 1fr) 70px; row-gap: 2px; }
  .bar-p { display: block; grid-column: 2 / 4; text-align: right; font-size: 14px; }
  .bar--head .bar-p { display: none; }
}

.ex-tbl { margin-top: 18px; max-width: 30em; color: var(--paper); background: transparent; }
.ex-tbl th, .ex-tbl td { border-color: var(--night-line); }
.ex-tbl th { color: var(--night-muted); }
.ex-note { color: var(--night-muted); margin-top: 10px; }
.ex-step { min-height: 80vh; }
.ex-step:last-child { min-height: 92vh; }
.explode-tgl { display: none; }
.explode.static .explode-sticky { position: relative; top: 0; height: clamp(280px, 48svh, 520px); }
.explode.static .explode-steps { margin-top: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.explode.static .ex-step { min-height: 0; max-width: none; padding: 24px 0 48px; align-content: start; }
.explode.static .ex-step > * { background: none; }
.explode.static.live .explode-tgl { display: inline-flex; position: absolute; left: var(--gut); top: 12px; }
@media (max-width: 899px) {
  .explode.static .explode-steps { grid-template-columns: 1fr; gap: 0; }
  .explode.static .ex-step, .explode.static .ex-step:first-child { padding: 20px 0; }
  .explode.static .ex-step:last-child { min-height: 0; padding-bottom: 40px; }
  .explode.static .explode-poster { inset: 6% 8%; }
}
.swap-st { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 8px 0 12px; }
.swap-st dt { font: 400 12px/1.5 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.swap-st dd { margin: 0; }
.swap-st dd.ok { color: var(--ok); }
.swap-ex { margin: 0 0 8px; }

/* 30.10.2026: vector drawing of a model (drawing.py); strokes in screen px, text size set per drawing */
.mdraw { display: block; width: 100%; height: auto; }
.mdraw path, .mdraw rect, .mdraw circle { vector-effect: non-scaling-stroke; }
.mdraw .ol { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.mdraw .ol.fillw { fill: var(--sheet); }
.mdraw .ol2 { stroke: var(--ink); stroke-width: 1; }
.mdraw .th, .mdraw .thr { fill: none; stroke: var(--ink-2); stroke-width: .75; }
.mdraw .hid { stroke: var(--ink-2); stroke-width: .75; stroke-dasharray: 4 3; }
.mdraw .pl { stroke: var(--muted); stroke-width: .6; opacity: .7; }
.mdraw .cl { stroke: var(--muted); stroke-width: .6; stroke-dasharray: 12 3 2 3; }
.mdraw .ext, .mdraw .dl { stroke: var(--ink-2); stroke-width: .7; }
.mdraw .ah { fill: var(--ink-2); }
.mdraw text { font-family: var(--f-mono); font-weight: 400; fill: var(--ink); }
.mdraw .tv { fill: var(--muted); letter-spacing: .06em; }
.mdraw .tp { font-weight: 500; }
.mdraw .tp.hot { fill: var(--heat-ink); }
.mdraw .tp.cold { fill: var(--cold); }
.pd-view[data-view="draw"] { padding: 14px 12px 8px; }
.pd-view .mdraw { width: 100%; height: 100%; }
.pd-view[data-view="draw"].on ~ .pd-stamp { display: none; }
.draw-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(12px, 3vw, 28px); }
.draw-box .mdraw { max-height: 640px; margin: 0 auto; }
.ports-tbl { margin-top: 18px; }
.ports-tbl caption { text-align: left; padding-bottom: 8px; color: var(--muted); }
.ports-tbl th { width: 5.5em; white-space: nowrap; font-weight: 500; }
.pd-stage:has(.pd-view[data-view="draw"].on) { aspect-ratio: auto; }
.pd-view[data-view="draw"].on { position: relative; }
.pd-view[data-view="draw"] .mdraw { max-height: min(72vh, 620px); }

/* 30.10.2026: phone - analog table as cards (4 columns do not fit 390 px), model names never break */
.models-tbl td:first-child, .models-tbl td:first-child a { white-space: nowrap; }
@media (max-width: 640px) {
  .analog-tbl, .analog-tbl tbody { display: block; min-width: 0; }
  .analog-tbl thead { display: none; }
  .analog-tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .analog-tbl td { border: 0; padding: 0; }
  .analog-tbl td:nth-child(1) { grid-row: 1; grid-column: 1; color: var(--muted); align-self: baseline; }
  .analog-tbl td:nth-child(2) { grid-row: 1; grid-column: 2; text-align: right; align-self: baseline; }
  .analog-tbl td:nth-child(3), .analog-tbl td:nth-child(4) { grid-column: 1 / -1; }
  .analog-tbl td:nth-child(3)::before { content: "Совпадает: "; color: var(--muted); }
  .analog-tbl td:nth-child(4)::before { content: "Сверить: "; }
}

/* ---------- 30.10.2026: fixes from the second Astra review (review2/review.md) ---------- */
.nw { white-space: nowrap; }
.grid > * { min-width: 0; }
/* steps: number out of the flow, text takes the full width (was one word per line) */
.steps li { display: block; position: relative; min-height: 44px; padding-left: 58px; }
.steps li::before { position: absolute; top: 0; left: 0; }
.steps li > b, .steps li > strong { display: block; margin-bottom: 6px; }
/* model table: model column stays in view while scrolling; hint only where the table is wider than the screen */
.tbl-hint { display: none; margin: 0 0 8px; }
@media (max-width: 759px) {
  .tbl-hint { display: block; }
  .models-tbl th:first-child, .models-tbl td:first-child { position: sticky; left: 0; z-index: 1; background: var(--sheet); box-shadow: 1px 0 0 var(--line); padding-right: 10px; }
  .sec:not(.sec--sheet) .models-tbl th:first-child, .sec:not(.sec--sheet) .models-tbl td:first-child { background: var(--paper); }
  .rating-tbl td.num { padding: 0; }
}
.analog-tbl td:nth-child(2) b { white-space: nowrap; }
/* drawing tab: caption follows the active view */
.pd-cap--draw { display: none; }
.pd-media:has(.pd-view[data-view="draw"].on) .pd-cap--draw { display: block; }
.pd-media:has(.pd-view[data-view="draw"].on) .pd-cap--view { display: none; }
/* scene: caption in the flow, unit card below the room on a phone */
.aud-img figcaption { position: static; margin: 0; padding: 10px 12px; background: var(--sheet); }
@media (max-width: 599px) {
  .aud-unit { position: static; width: 132px; max-width: none; margin: 12px auto; box-shadow: none; }
}
/* swap result on a phone */
@media (max-width: 520px) {
  .swap-res { grid-template-columns: 56px minmax(0, 1fr); }
  .swap-res img { width: 56px; height: auto; }
  .swap-res > div { min-width: 0; }
  .swap-st { grid-template-columns: 1fr; gap: 2px; }
  .swap-st dd { margin: 0 0 8px; }
}
/* power axis on a phone: 0 / 50 / 125 */
@media (max-width: 599px) {
  .bar-axis i { font-size: 12px; }
  .bar-axis i:nth-child(2), .bar-axis i:nth-child(4), .bar-axis i:nth-child(5) { display: none; }
}
.spec dd { overflow-wrap: normal; }
/* model cards: values never split ("A" alone on a line) */
.mcard .card-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font: 400 14px/1.45 var(--f-sans); color: var(--ink-2); }
.mcard .card-meta > span { white-space: nowrap; }
/* catalog: same column axes in every series on a desktop */
@media (min-width: 760px) {
  .cat-s .models-tbl { table-layout: fixed; }
  .cat-s .models-tbl th:nth-child(1) { width: 28%; }
  .cat-s .models-tbl th:nth-child(2) { width: 10%; }
  .cat-s .models-tbl th:nth-child(3) { width: 14%; }
  .cat-s .models-tbl th:nth-child(4) { width: 16%; }
  .cat-s .models-tbl th:nth-child(5) { width: 18%; }
  .cat-s .models-tbl th:nth-child(6) { width: 14%; }
}
.cat-svg .dl, .cat-svg text { display: none; }
/* tap targets 44 px */
.btn--sm, .pd-add, .cat-filter .chip { min-height: 44px; }
.cat-filter .chip { display: inline-flex; align-items: center; }
.sh-out a { display: inline-flex; align-items: center; min-height: 44px; }
/* service pages: one gap before the first section */
.prose-head > :last-child { margin-bottom: 0; }
.prose > h2:first-child { margin-top: 0; }
.prose a { color: #a34500; }
.art-card .card-title { text-wrap: balance; line-height: 1.3; }
.art-card .small { font-size: 15px; line-height: 1.5; }
/* file input */
.filebox { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 48px; }
.filebox-inp { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.filebox:focus-within .filebox-btn { outline: 2px solid var(--heat); outline-offset: 2px; }
.filebox-name { overflow-wrap: anywhere; }
.nrow { position: relative; scroll-padding-inline: 8px; }
/* phone footer: whole row is the tap target */
@media (max-width: 599px) {
  .ftr ul { gap: 0; }
  .ftr ul a { display: flex; align-items: center; min-height: 44px; }
  .ftr-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* phone: price visible without scrolling - plates are in the model name, pack/mass are on the model page */
@media (max-width: 599px) {
  .cat-s .models-tbl { min-width: 0; }
  .cat-s .models-tbl th:nth-child(2), .cat-s .models-tbl td:nth-child(2),
  .cat-s .models-tbl th:nth-child(3), .cat-s .models-tbl td:nth-child(3) { display: none; }
  #models .models-tbl th:nth-child(2), #models .models-tbl td:nth-child(2),
  #models .models-tbl th:nth-child(3), #models .models-tbl td:nth-child(3),
  #models .models-tbl th:nth-child(4), #models .models-tbl td:nth-child(4) { display: none; }
  #models .models-tbl { min-width: 0; }
}
@media (max-width: 599px) {
  #models .models-tbl th:nth-child(6), #models .models-tbl td:nth-child(6) { display: none; }          /* heating */
  #models .models-tbl--r th:nth-child(5), #models .models-tbl--r td:nth-child(5) { display: none; }    /* R: DHW, condenser stays */
}

/* 30.10.2026: home is about all series - family in the hero, power ranges of the series */
.hero-fam-box { display: grid; align-content: end; gap: 10px; padding: 12px 0 8px; }
.hero-fam { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 22px); height: clamp(300px, 56vh, 540px); }
.fam-it { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 2px; text-decoration: none; color: var(--paper); text-align: center; min-width: 0; }
.fam-img { display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.fam-img picture { display: flex; height: var(--h); justify-content: center; }
.fam-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; transition: transform .4s var(--ease); }
.fam-it:hover img { transform: translateY(-6px); }
.fam-it b { margin-top: 10px; font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; }
.fam-it .mono { font-size: 12px; line-height: 1.4; color: var(--night-muted); }
.hero-fam-r { text-align: center; margin: 4px 0 0; }
.hero-fam-r a { color: var(--night-muted); }
.hero-fam-r a:hover { color: var(--heat); }
@media (max-width: 760px) { .hero-fam { height: 260px; } .fam-it .mono { font-size: 11px; } }
.bars--range .bar-line i { margin-left: var(--a); width: calc(var(--v) - var(--a)); }
.bars--range .bar-n { display: grid; gap: 1px; }
.bars--range .bar-n b { font-weight: 500; }
.bars--range .bar-n small { font-size: 12px; }
.bars--range .bar-line em { font-style: normal; }
.bars--range .bar-line:has(em) { background: none; height: auto; }
.bar-pm { display: none; }
.bars-note { margin: 12px 6px 0; }
@media (max-width: 520px) { .bars--range .bar-pm { display: block; } .bars--range .bar { grid-template-columns: 82px 1fr 78px; } }
@media (max-width: 760px) { .fam-it .mono { display: none; } .fam-it b { font-size: 17px; } }
.bars--range .bar { grid-template-columns: 82px 1fr 104px 88px; }
.bars--range .bar-v { white-space: nowrap; }
@media (max-width: 520px) { .bars--range .bar { grid-template-columns: 74px 1fr 96px; gap: 8px; } }
@media (max-width: 520px) { .bars--range .bar-p { display: none; } }
.price-note { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* 30.10.2026: scene = room photo and unit card side by side, nothing on top of the photo */
.aud-img { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); background: var(--sheet); }
.aud-img.has-unit { grid-template-columns: minmax(0, 1fr) minmax(150px, 30%); }
.aud-room { min-height: 0; }
.aud-room picture, .aud-room img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aud-img .aud-unit { position: static; width: auto; max-width: none; margin: 0; box-shadow: none; border: 0; border-left: 1px solid var(--line); border-radius: 0;
  background: var(--sheet); padding: 18px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-decoration: none; color: var(--ink); }
.aud-img .aud-unit img { width: 100%; max-width: 200px; height: auto; }
.aud-unit > span { display: grid; gap: 2px; text-align: center; }
.aud-unit b { font-size: 18px; font-weight: 500; }
.aud-unit small { font-size: 13px; }
.aud-unit em { font-style: normal; font-size: 14px; margin-top: 6px; }
.aud-unit:hover em { color: var(--heat-ink); }
.aud-img figcaption { grid-column: 1 / -1; position: static; margin: 0; padding: 10px 14px; background: var(--sheet); border-top: 1px solid var(--line); border-radius: 0; }
@media (max-width: 599px) {
  .aud-img.has-unit { grid-template-columns: minmax(0, 1fr); }
  .aud-img .aud-unit { flex-direction: row; justify-content: flex-start; border-left: 0; border-top: 1px solid var(--line); padding: 12px 14px; gap: 14px; }
  .aud-img .aud-unit img { width: 96px; }
  .aud-unit > span { text-align: left; }
}
.cat-img { display: flex; align-items: flex-end; justify-content: center; height: 150px; }
.cat-img picture { display: flex; height: var(--h); }
.cat-img img { height: 100%; width: auto; object-fit: contain; }
@media (max-width: 599px) { .cat-img { height: 110px; } .cat-img picture { height: calc(var(--h) * .72); } }
/* hero family: water and freon execution of every size, catalog link (Maxim 30.10: freon is popular, give it the first screen) */
.fam-it { grid-template-rows: minmax(0, 1fr) auto auto; color: var(--paper); }
.fam-img { text-decoration: none; }
.fam-it:hover img { transform: translateY(-6px); }
.fam-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.fam-links a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--night-line); border-radius: 999px;
  font-size: 13px; color: var(--paper); text-decoration: none; white-space: nowrap; }
.fam-links a:hover { border-color: var(--paper); }
.fam-links a.fr { border-color: color-mix(in srgb, var(--cold) 70%, transparent); color: #9cc0ff; }
.fam-links a.fr:hover { background: var(--cold); color: #fff; }
.hero-fam-r { margin-top: 14px; }
@media (max-width: 760px) {
  .fam-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .fam-links a { justify-content: center; min-height: 36px; padding: 0 4px; font-size: 12px; }
  .hero-fam { height: 230px; }
}
@media (max-width: 599px) {
  .aud-unit > span, .aud-unit b { text-align: left; justify-items: start; }
}
/* hero family: only the picture zone has a fixed height, names and links flow under it */
.hero-fam { height: auto; grid-template-rows: auto; }
.fam-it { grid-template-rows: auto auto auto; }
.fam-img { height: clamp(260px, 46vh, 460px); }
@media (max-width: 760px) { .hero-fam { height: auto; } .fam-img { height: 210px; } }

/* ---------- 30.10.2026: third Astra review (review3): hero water + freon, scenes, catalog heads ---------- */
.fam-it > b { display: grid; gap: 3px; margin: 4px 0 0; white-space: nowrap; }
.fam-it > b small { font: 400 12px/1.35 var(--f-sans); color: var(--night-muted); }
.hero-fam { gap: clamp(8px, 1.4vw, 20px); align-items: start; }
.fam-it { min-width: 0; align-content: start; gap: 6px; }
.fam-img { height: clamp(260px, 24vw, 360px); }
.fam-img picture { max-width: 100%; min-width: 0; }
.fam-it:hover img { transform: none; }
.fam-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; width: 100%; margin-top: 4px; }
.fam-links a { justify-content: center; min-width: 0; min-height: 44px; padding: 6px 4px; border-radius: 4px; font-size: 13px; line-height: 1.2; }
.fam-links a.fr { background: #16345a; border-color: #5d91e8; color: #c4d9ff; }
.fam-links a.fr:hover, .fam-links a.fr:focus-visible { background: #25549a; color: #fff; }
.hero-txt .hero-link { margin: 12px 0 0; }
@media (max-width: 760px) {
  .hero-fam-box { padding-top: 16px; padding-bottom: 20px; }
  .hero-fam { gap: 8px; }
  .fam-img { height: 166px; }
  .fam-it > b { font-size: clamp(14px, 4vw, 17px); }
  .fam-it > b small { font-size: 11px; }
  .fam-links { flex-direction: unset; }
  .fam-links a { font-size: 12px; min-height: 44px; }
}
@media (max-width: 599px) {
  .hero-txt .btns { display: grid; gap: 8px; }
  .hero-txt .btns > .btn { width: 100%; min-width: 0; white-space: normal; text-align: center; }
  .hero .lead { margin-bottom: 16px; }
}
/* scenes without a room photo: example series or a drawing, never an empty half */
.aud-img--tech .aud-room { display: grid; place-items: center; height: 300px; padding: 20px; background: #fff; }
.aud-img--tech .aud-room picture { display: flex; justify-content: center; width: 100%; height: 100%; min-height: 0; }
.aud-img--tech .aud-room img { width: 100%; height: 100%; object-fit: contain; }
.aud-img--tech .aud-room .mdraw { width: auto; max-width: 100%; height: 100%; max-height: 270px; }
.aud-img--tech figcaption a { display: inline-block; }
@media (min-width: 900px) { .aud-panel { min-height: 360px; } }
@media (max-width: 599px) { .aud-img--tech .aud-room { height: 260px; padding: 12px; } }
/* room + unit: the unit gets almost half, photo cropped to its left (pipes, tools) */
@media (min-width: 600px) {
  .aud-img.has-unit { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "room unit" "caption caption"; }
  .aud-img.has-unit .aud-room { grid-area: room; height: 320px; min-width: 0; }
  .aud-img.has-unit .aud-room picture, .aud-img.has-unit .aud-room img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
  .aud-img.has-unit .aud-unit { grid-area: unit; min-width: 0; padding: 14px 12px; gap: 10px; }
  .aud-img.has-unit .aud-unit img { flex: none; width: 100%; max-width: 280px; height: 190px; object-fit: contain; }
  .aud-img.has-unit figcaption { grid-area: caption; }
}
/* phone: unit first, short room strip, caption */
@media (max-width: 599px) {
  .aud-img.has-unit { grid-template-columns: minmax(0, 1fr); grid-template-areas: "unit" "room" "caption"; }
  .aud-img.has-unit .aud-unit { grid-area: unit; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px;
    padding: 14px 12px; min-width: 0; border: 0; border-bottom: 1px solid var(--line); }
  .aud-img.has-unit .aud-unit img { flex: 0 0 112px; width: 112px; height: 112px; object-fit: contain; }
  .aud-img.has-unit .aud-unit > span { min-width: 0; text-align: left; justify-items: start; }
  .aud-img.has-unit .aud-room { grid-area: room; height: 160px; }
  .aud-img.has-unit .aud-room picture, .aud-img.has-unit .aud-room img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
  .aud-img.has-unit figcaption { grid-area: caption; }
}
/* catalog heads: every series readable at one height (scale comparison lives in the hero) */
.cat-img { display: flex; align-items: center; justify-content: center; height: 132px; min-width: 0; }
.cat-img picture { display: flex; justify-content: center; height: 112px; max-width: 100%; min-width: 0; }
.cat-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.cat-img > :is(.series-elevation, .front3d) { width: 100%; height: 100%; }
.cat-head { grid-template-columns: 120px minmax(0, 1fr) auto; grid-template-areas: "img copy cta" "img use cta"; gap: 6px 24px; align-items: center; }
.cat-head > .cat-img { grid-area: img; }
.cat-head > .cat-copy { grid-area: copy; min-width: 0; align-self: end; }
.cat-head > .cat-use { grid-area: use; align-self: start; margin: 0; }
.cat-head > .btn { grid-area: cta; justify-self: end; }
.cat-head .cat-spec { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.cat-spec > span { white-space: nowrap; }
@media (max-width: 759px) {
  .cat-img { height: 100px; }
  .cat-img picture { height: 90px; }
  .cat-head { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "img copy" "use use" "cta cta"; gap: 12px 16px; }
  .cat-head > .cat-copy { align-self: center; }
  .cat-head .cat-spec { font-size: 13px; gap: 4px 10px; }
  .cat-head > .cat-use { font-size: 16px; line-height: 1.45; }
  .cat-head > .btn { justify-self: stretch; white-space: normal; text-align: center; }
}
@media (min-width: 600px) { .aud-img--tech .aud-room { height: 360px; } .aud-img--tech .aud-room .mdraw { max-height: 330px; } }
/* series line-up and flow scheme drawn by drawing.py (same style as the model drawing) */
.lineup-svg .sdraw { width: auto; max-width: 100%; height: auto; }
.mdraw .flow { fill: none; stroke-width: 2; }
.mdraw .flow.hot { stroke: var(--heat-ink); }
.mdraw .flow.cold { stroke: var(--cold); }
.mdraw .ah.hot { fill: var(--heat-ink); }
.mdraw .ah.cold { fill: var(--cold); }
.mdraw .dashf { stroke-dasharray: 6 5; animation: flowdash 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .mdraw .dashf { animation: none; } }
.calc-scheme { max-width: 420px; }
.calc-scheme { max-width: 520px; }
.scheme-legend { margin-top: 10px; max-width: 520px; }

/* 30.10.2026: quick picker on /raschet */
#podbor .pick { min-width: 0; padding: clamp(16px, 3vw, 26px); border-radius: var(--r-lg); border-color: var(--line); display: grid; gap: 16px; }
#podbor .pick-tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
#podbor .pick-tasks button { text-align: left; display: grid; grid-template-rows: 1fr auto; align-items: start; gap: 6px; padding: 12px; min-width: 0; min-height: 44px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
#podbor .pick-tasks button span { min-height: 3.1em; font-size: 13px; color: var(--muted); }
#podbor .pick-tasks button[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
#podbor .pick-tasks button[aria-checked="true"] span { color: #cfd2d6; }
#podbor .pick-in { display: grid; gap: 12px; }
#podbor .pick-in > *, #podbor .pick-res > div { min-width: 0; }
#podbor .pick-in .field { grid-template-rows: 1fr auto; }
#podbor .pick-in .inp { width: 100%; height: 50px; }
@media (min-width: 560px) { #podbor .pick-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#podbor .pick-in [hidden] { display: none; }
#podbor .pick-out { display: grid; gap: 12px; }
/* Keep explanatory text out of the equal-height model rows. */
#podbor .pick-results { display: grid; grid-auto-rows: 1fr; gap: 12px; min-width: 0; }
#podbor .pick-res { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); }
#podbor .pick-res img { width: 96px; height: auto; object-fit: contain; align-self: start; }
#podbor .pick-res h3 { margin: 4px 0; font-size: 1.15rem; }
#podbor .pick-res p:last-child { margin-bottom: 0; }
/* Full-width footer: prices and description wrapping cannot move either action. */
#podbor .pick-res .btns { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
#podbor .pick-res .btn { width: 100%; min-width: 0; min-height: 44px; white-space: normal; overflow-wrap: anywhere; text-align: center; }

/* 30.10.2026: prototype of account / payment / promo / admin (preview build only) */
.ok { color: var(--ok); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; }
.proto-note { padding: 10px 14px; border: 1px dashed var(--heat-ink); border-radius: var(--r); background: color-mix(in srgb, var(--heat) 8%, var(--sheet)); max-width: 60em; margin: 0 0 20px; }
.dlg .proto-note { margin: 0; }
.proto-inv { display: grid; gap: 16px; margin-top: 20px; }
.proto-inv[hidden] { display: none; }
.pay { padding: 16px; border-radius: var(--r-lg); border-color: var(--line); display: grid; gap: 10px; }
.pay p { margin: 0; }
.pay-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-total { margin-left: auto; }
.pay .btns, .lk-top .btns, .adm-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.qr { display: flex; justify-content: center; }
.qr svg { border: 1px solid var(--line); border-radius: var(--r); }
.lk-login { max-width: 460px; }
/* Account entry screens only; authenticated tables keep their normal layout. */
.lk-page:has(.lk-login) #main {
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}
.lk-page:has(.lk-login) #main > .sec {
  flex: 1; display: flex; align-items: center;
}
.lk-page:has(.lk-login) #main > .sec > .wrap {
  max-width: calc(460px + 2 * var(--gut)); min-width: 0;
}
.lk-page:has(.lk-login) .crumbs,
.lk-registration .crumbs { justify-content: center; }
.lk-page:has(.lk-login) .sec-head {
  text-align: center; justify-items: center;
}
.lk-page:has(.lk-login) .sec-head h1,
.lk-registration .prose-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.lk-page .lk-login {
  width: 100%; min-width: 0; margin-inline: auto;
  padding: clamp(20px, 3vw, 28px);
}
.lk-page .lk-login .field,
.lk-page .lk-login .inp { min-width: 0; }
/* This legacy URL contains information and links, not a separate sign-up form. */
.lk-registration #main > article.sec {
  display: flex; align-items: center;
  min-height: calc(100vh - var(--header-h) - 40px);
  min-height: calc(100svh - var(--header-h) - 40px);
}
.lk-registration .prose-grid {
  max-width: calc(600px + 2 * var(--gut)); grid-template-columns: minmax(0, 1fr);
}
.lk-registration .prose-head,
.lk-registration .prose { grid-column: 1; min-width: 0; }
.lk-registration .prose-head { text-align: center; }
.lk-registration .prose > :last-child { margin-bottom: 0; }
.lk-req, .adm-promo { max-width: 640px; margin-bottom: 24px; }
.lk-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lk-top p { margin: 0; }
/* Authenticated account only. Entry screens and manager tabs keep their layout. */
.lk-page:has(.lk-shell) .sec-head h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.lk-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: max(620px, calc(100vh - var(--header-h))); min-height: max(620px, calc(100dvh - var(--header-h))); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sheet); }
.lk-shell [hidden] { display: none; }
.lk-sidebar { min-width: 0; padding: 28px 16px 20px; border-right: 1px solid var(--night-line); border-radius: var(--r-lg) 0 0 var(--r-lg); background: var(--ink-2); color: var(--paper); display: flex; flex-direction: column; }
.lk-sidebar .muted { color: var(--night-muted); }
.lk-sidebar .heat { color: var(--heat); }
.lk-sidebar .lk-avatar { background: var(--night-2); border-color: var(--night-line); color: var(--paper); }
.lk-identity { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 8px 24px; }
.lk-avatar { flex: none; width: 88px; height: 88px; border: 1px solid var(--line); border-radius: 50%; background: var(--sheet); display: grid; place-items: center; overflow: hidden; color: var(--ink-2); font-size: 28px; font-weight: 500; }
.lk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lk-person { min-width: 0; max-width: 100%; }
.lk-name { margin: 0 0 4px; font-size: 19px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.lk-company { margin: 0 0 8px; line-height: 1.4; overflow-wrap: anywhere; }
.lk-person .linkbtn { color: var(--heat); min-height: 32px; }
.lk-photo-msg { padding: 0 8px; overflow-wrap: anywhere; }
.lk-menu { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lk-menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; min-height: 48px; border: 1px solid transparent; border-radius: var(--r); background: none; color: var(--paper); text-align: left; font-size: 16px; line-height: 1.3; cursor: pointer; }
.lk-menu-item svg { width: 21px; height: 21px; flex: none; }
.lk-menu-item:hover { background: var(--night-2); }
.lk-menu-item[aria-current="page"] { background: var(--night-2); color: var(--heat); border-color: var(--night-line); font-weight: 500; }
.lk-sidebar-foot { margin-top: auto; padding-top: 24px; }
.lk-exit { border-top: 1px solid var(--night-line); border-radius: 0; }
.lk-content { min-width: 0; padding: 28px clamp(20px, 3vw, 36px) 36px; }
.lk-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.lk-section-head h2 { margin: 0; font-size: 25px; }
.lk-section-head h2:focus { outline: none; }
.lk-intro { margin-bottom: 24px; font-size: 16px; }
.lk-form { max-width: 780px; gap: 18px; }
.lk-form .lk-form-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 20px; min-width: 0; }
.lk-form-row label, .lk-field-label { color: var(--muted); font-size: 15px; line-height: 1.35; }
.lk-form .inp { min-width: 0; }
.lk-form-actions { display: grid; justify-items: start; gap: 12px; margin: 6px 0 0 210px; }
.lk-form-actions p { margin: 0; }
.lk-profile-photo { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; min-width: 0; }
.lk-profile-photo p { margin: 6px 0 0; max-width: 240px; }
.lk-profile-photo .linkbtn { min-height: 36px; color: var(--heat-ink); }
.lk-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.lk-stat { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 12px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.lk-stat-icon { color: var(--heat-ink); }
.lk-stat-icon svg { width: 26px; height: 26px; }
.lk-stat b { font-size: clamp(20px, 2vw, 28px); font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; max-width: 100%; }
.lk-stat > span { margin-bottom: 12px; }
.lk-stat .lk-stat-link { margin-top: auto; align-self: stretch; border-top: 1px solid var(--line); padding: 10px 0; min-height: 48px; font-size: 13px; line-height: 1.35; text-align: left; overflow-wrap: anywhere; }
.lk-stat-link[aria-pressed="true"] { color: var(--heat-ink); font-weight: 500; }
.lk-stat-link:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.lk-orders { min-width: 0; }
.lk-orders h3 { margin-bottom: 20px; }
.lk-order-tools { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr); gap: 16px 20px; align-items: start; }
.lk-status-filter { min-width: 0; display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; padding: 0; border: 0; }
.lk-status-filter legend { margin-bottom: 6px; }
.lk-status-filter label { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 14px; cursor: pointer; }
.lk-status-filter input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--heat-ink); }
.lk-order-results { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0; }
.lk-order-results p { margin: 0; }
.lk-order-results button { min-height: 44px; }
.lk-order-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.lk-order-table th { padding: 12px 8px; background: var(--paper); color: var(--muted); font-size: 13px; font-weight: 400; text-align: left; }
.lk-order-table th:nth-child(1) { width: 17%; }
.lk-order-table th:nth-child(2) { width: 30%; }
.lk-order-table th:nth-child(3) { width: 16%; }
.lk-order-table th:nth-child(4) { width: 19%; }
.lk-order-table th:nth-child(5) { width: 18%; }
.lk-order-table td { padding: 18px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.lk-order-table time { display: block; margin-top: 6px; }
.lk-order-table p { margin: 8px 0 0; }
.lk-order-table .linkbtn { min-height: 44px; text-align: left; line-height: 1.35; }
.lk-order-items { margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.lk-order-items li + li { margin-top: 6px; }
.lk-order-row--cancel { background: var(--paper); color: var(--muted); }
.lk-order-row--cancel .lk-order-items { color: var(--muted); }
.lk-document { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.lk-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 13px; line-height: 1.3; }
.lk-status::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lk-status--ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--sheet)); }
.lk-status--progress { color: var(--cold); background: color-mix(in srgb, var(--cold) 10%, var(--sheet)); }
.lk-status--wait { color: var(--heat-ink); background: color-mix(in srgb, var(--heat) 15%, var(--sheet)); }
.lk-status--cancel { color: var(--muted); background: var(--paper-2); }
.lk-empty { padding: 32px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.lk-empty p { max-width: 38em; }
.lk-content .promo-cards { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.lk-content .promo-card { min-width: 0; overflow-wrap: anywhere; }
/* Home follows the third mockup: three cards, then recent orders and the journal. */
.lk-dashboard { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.lk-dash-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); display: flex; flex-direction: column; gap: 16px; overflow-wrap: anywhere; }
.lk-dash-card h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.lk-dash-card p { margin: 0; }
.lk-dash-card > .btn { margin-top: auto; align-self: flex-start; max-width: 100%; white-space: normal; text-align: center; }
.lk-dash-note { font-size: 15px; }
.lk-dash-icon { color: var(--heat-ink); }
.lk-dash-icon svg { width: 28px; height: 28px; }
.lk-due { grid-column: span 5; background: var(--ink-2); color: var(--paper); border-color: var(--ink-2); }
.lk-due h3 { font-size: 18px; font-weight: 400; }
.lk-due-total { display: block; margin-top: 10px; font-size: clamp(30px, 3vw, 42px); font-weight: 500; line-height: 1.1; }
.lk-due-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lk-due-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px; background: var(--night-2); border-radius: var(--r); font-size: 14px; }
.lk-due-list li > div { min-width: 0; }
.lk-due-list li span { display: block; margin-top: 4px; color: var(--night-muted); font-size: 12px; }
.lk-due-list li > b { text-align: right; }
.lk-dash-promos { grid-column: span 3; }
.lk-promo-preview { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lk-promo-preview li { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); font-size: 15px; }
.lk-offer { grid-column: span 4; background: var(--paper-2); }
.lk-offer > .label { color: var(--heat-ink); font-size: 12px; }
.lk-offer-image { display: grid; place-items: center; margin-top: auto; min-height: 140px; }
.lk-offer-image img { width: 100%; max-height: 180px; object-fit: contain; }
.lk-offer-model { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 15px; }
.lk-recent { grid-column: span 8; background: var(--sheet); }
.lk-journal { grid-column: span 4; background: var(--sheet); }
.lk-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; }
.lk-card-head .linkbtn, .lk-card-head > a { display: inline-flex; align-items: center; min-height: 36px; }
.lk-recent-list { list-style: none; margin: 0; padding: 0; }
.lk-recent-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 14px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; }
.lk-recent-list time { display: block; margin-top: 3px; }
.lk-recent-items { grid-column: 1; color: var(--muted); }
.lk-recent-list .lk-status { grid-column: 2; grid-row: 1; justify-self: end; max-width: 100%; }
.lk-recent-list li > .num { grid-column: 2; grid-row: 2; text-align: right; }
.lk-recent-cancel { color: var(--muted); }
.lk-dash-empty { display: grid; justify-items: start; gap: 12px; padding: 12px 0; }
.lk-journal-list { list-style: none; margin: 0; padding: 0; }
.lk-journal-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.lk-journal-list li a { display: block; font-size: 15px; line-height: 1.4; }
.lk-journal-list time { display: block; margin-top: 8px; font-size: 12px; }
@media (min-width: 760px) and (max-width: 1199px) {
  .lk-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-due, .lk-dash-promos { grid-column: span 1; }
  .lk-offer, .lk-recent, .lk-journal { grid-column: 1 / -1; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .lk-shell { grid-template-columns: 216px minmax(0, 1fr); }
  .lk-sidebar { padding-inline: 10px; }
  .lk-content { padding-inline: 20px; }
  .lk-form .lk-form-row { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; }
  .lk-form-actions { margin-left: 146px; }
  .lk-summary { gap: 8px; }
  .lk-stat { padding: 12px 10px 0; }
  .lk-order-tools { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .lk-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .lk-sidebar { padding: 18px 16px 0; border-right: 0; border-bottom: 1px solid var(--night-line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .lk-identity { display: flex; justify-items: normal; gap: 14px; text-align: left; padding: 0 0 16px; }
  .lk-avatar { width: 64px; height: 64px; font-size: 23px; }
  .lk-name { font-size: 18px; }
  .lk-company { margin-bottom: 2px; }
  .lk-photo-msg { padding: 0; }
  .lk-menu { flex-direction: row; overflow-x: auto; padding: 0 0 12px; gap: 6px; -webkit-overflow-scrolling: touch; }
  .lk-menu-item { flex: none; width: auto; white-space: nowrap; padding: 10px 12px; min-height: 44px; font-size: 14px; gap: 8px; }
  .lk-menu-item svg { width: 18px; height: 18px; }
  .lk-sidebar-foot { margin-top: 0; padding: 0 0 12px; }
  .lk-exit { width: 100%; }
  .lk-content { padding: 22px 16px 28px; }
  .lk-section-head { padding-bottom: 18px; margin-bottom: 20px; }
  .lk-section-head h2 { font-size: 23px; }
  .lk-form .lk-form-row { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .lk-form-actions { margin-left: 0; justify-items: stretch; }
  .lk-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lk-stat { padding: 14px 12px 0; }
  .lk-stat b { font-size: 23px; }
  .lk-order-tools { grid-template-columns: minmax(0, 1fr); }
  .lk-empty { padding: 24px 16px; }
  .lk-dashboard { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lk-dashboard > * { grid-column: 1; }
  .lk-dash-card { padding: 18px 14px; }
  .lk-due-total { font-size: 36px; }
  .lk-recent-list li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lk-recent-list .lk-status, .lk-recent-list li > .num { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; }
}
@media (max-width: 1099px) {
  .lk-order-table, .lk-order-table tbody { display: block; }
  .lk-order-table thead { display: none; }
  .lk-order-table tbody { display: grid; gap: 14px; }
  .lk-order-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); }
  .lk-order-table td { display: block; border: 0; padding: 0; min-width: 0; }
  .lk-order-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; font-size: 12px; color: var(--muted); }
  .lk-order-table td:nth-child(2), .lk-order-table td:last-child { grid-column: 1 / -1; }
  .lk-order-table td:first-child { grid-column: 1 / -1; }
  .lk-order-table .lk-document { min-height: 44px; }
}

.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.ptabs button { border: 0; background: none; padding: 12px 14px; min-height: 44px; font: inherit; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.ptabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--heat); }
.promo-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.promo-card { padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--sheet); display: grid; gap: 6px; }
.promo-card p { margin: 0; }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 14px; }
.kpis > div { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); display: grid; gap: 4px; }
.kpis b { font-size: 1.4rem; }
.adm-tools { margin-bottom: 20px; }
.inp--sm { min-height: 38px; padding: 6px 8px; }
[data-proto] .tbl td.num + td, [data-proto] .tbl th.num + th { padding-left: 20px; }
[data-proto] .tbl td.num, [data-proto] .tbl td.mono { white-space: nowrap; }
[data-proto] .tbl { min-width: 720px; }
@media (max-width: 640px) {
  [data-proto] .tbl--cards { min-width: 0; }
  .tbl--cards thead { display: none; }
  .tbl--cards tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl--cards td { border: 0; padding: 0 !important; text-align: left !important; }
  .tbl--cards td:nth-child(3), .tbl--cards td:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) { #podbor .pick-res { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 12px; } #podbor .pick-res img { width: 56px; } }

/* 30.10.2026: executions switch of AM62 / AM95 */
.execs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 18px; }
.execs .label { margin-right: 6px; }
.execs a { padding: 6px 10px; min-height: 36px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--sheet); font-size: 14px; }
.execs a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Catalog overview */
.ov { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 4px 0 26px; }
.ov-g { min-width: 0; }
.ov-gt { margin: 0 0 8px; }
.ov-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; align-items: stretch; }
@media (min-width: 1080px) { .ov-row { grid-template-columns: repeat(6, 1fr); } }
.ov-it { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sheet);
  transition: border-color .15s var(--ease); }
.ov-it:hover { border-color: var(--ink); }
.ov-card { display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  gap: 6px 8px; align-items: center; padding: 12px 10px 10px; text-decoration: none; color: var(--ink); }
.ov + .lead { margin-top: 0; }
.ov-img { height: 96px; }
.ov-img :is(img, svg) { display: block; width: 100%; height: 100%; object-fit: contain; }
.ov-txt { display: grid; gap: 1px; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.ov-card b { font-size: 1.1rem; line-height: 1.2; }
.ov-card .mono { font-size: 11.5px; }
.ov-use, .ov-price { grid-column: 1 / -1; overflow-wrap: anywhere; }
.ov-use { align-self: start; min-height: 2.9em; }
.ov-price { font-weight: 500; font-size: 14px; margin-top: 2px; }
.ov-ex { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding: 0 10px 10px; }
.ov-ex a { font-size: 12.5px; padding: 3px 9px; min-height: 30px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px;
  text-decoration: none; color: var(--ink-2); background: var(--paper); }
.ov-ex a:hover { border-color: var(--ink); }
.cat-s { scroll-margin-top: calc(var(--header-h) + 8px); }
@supports (grid-template-rows: subgrid) {
  .ov-it { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; }
}
@media (max-width: 559px) {
  .ov-row { grid-template: auto auto / none; grid-auto-flow: column; grid-auto-columns: 184px; overflow-x: auto; padding-bottom: 6px; }
}

/* Factory sheets with asymmetric/multiple port groups: allow their dimension descriptions to wrap. */
.cat-spec > :is(.cat-centres, .cat-thread) { white-space: normal; }
.lineup-svg picture { display: block; max-width: 100%; }
.lineup-svg picture img { width: 100%; height: auto; }

/* Home refinements: real front previews, annotated R render and aligned columns. */
.trio { align-items: stretch; }
.trio > div { display: flex; flex-direction: column; }
.trio .link-arrow { align-self: flex-start; margin-top: auto; }
.trio > div > p:last-of-type { margin-bottom: 24px; }
#freon .grid { align-items: center; }
.r-img { margin: 0; display: grid; justify-items: center; width: 100%; }
.freon-ports { display: block; width: 100%; height: auto; max-height: 650px; }
.freon-ports .port-halo { fill: #ff8a1e30; stroke: var(--heat); stroke-width: 6; }
.freon-ports .port-leader { fill: none; stroke: var(--heat); stroke-width: 3; }
.freon-ports text { fill: var(--heat); font: 500 30px var(--f-mono); }
.r-img figcaption { max-width: 32em; color: var(--night-muted); text-align: center; margin-top: 14px; }
.faq-home { border: 0; }
.faq-home details { width: 100%; margin: 0 0 12px;
  padding: 0 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sheet); }
.faq-home details:last-child { margin-bottom: 0; }
.faq-home summary { font-size: 19px; }
@media (max-width: 759px) {
  .home-questions .sec-head { margin-bottom: 0; }
}
@media (max-width: 599px) {
  .faq-home details { padding-inline: 14px; }
  .faq-home summary { font-size: 17px; }
}

/* Service pages share the site's paper, graphite and orange palette. */
.info-hero .lead { max-width: 48em; }
.info-hero .btns, .info-hero .link-arrow { margin-top: 26px; }
.info-hero h1 { max-width: 20ch; }
.info-cards { align-items: stretch; }
.info-card { padding: clamp(22px, 3vw, 36px); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); }
.info-card h3 { margin: 0 0 16px; }
.info-card p + p { margin-top: 16px; }
.info-card p:last-child { margin-bottom: 0; }
.info-number { display: block; margin-bottom: 32px; font: 400 15px var(--f-mono); color: var(--heat-ink); }
.info-note { margin-top: 30px; padding: 28px; border-left: 3px solid var(--heat); background: var(--paper); }
.info-note p { max-width: 58em; }
.delivery-promise h2 { max-width: 12ch; }
.delivery-origin { padding-left: 24px; border-left: 1px solid var(--night-line); }
.download-card { display: flex; flex-direction: column; }
.download-status { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 15px; }

/* Series and models: one type scale and a shared top edge for drawing columns. */
:is([data-page="series"], [data-page="model"]) .sec h2 {
  font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.015em; text-wrap: pretty;
}
:is([data-page="series"], [data-page="model"]) .sec-head { gap: 10px; margin-bottom: 24px; }
:is([data-page="series"], [data-page="model"]) .sec .lead { font-size: 17px; }
:is([data-page="series"], [data-page="model"]) .faq summary { font-size: 16px; line-height: 1.5; padding-block: 18px; letter-spacing: 0; }
:is([data-page="series"], [data-page="model"]) .faq .ans { font-size: 16px; line-height: 1.6; }
:is([data-page="series"], [data-page="model"]) .spec { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); line-height: 1.55; }
:is([data-page="series"], [data-page="model"]) .spec dd { overflow-wrap: normal; text-wrap: pretty; }
:is([data-page="series"], [data-page="model"]) .grid > * { min-width: 0; }
.dimensions-grid { align-items: start; }
.dimensions-grid .spec + .files { margin-top: 24px; }
.dimensions .draw-box picture, .dimensions .draw-box img { display: block; width: 100%; height: auto; }
.ports-tbl { table-layout: fixed; margin-top: 24px; font-size: 15px; line-height: 1.55; }
.ports-tbl caption { padding-bottom: 12px; }
.ports-tbl th, .ports-tbl td { padding-block: 14px; }
.ports-tbl th { width: 36%; white-space: normal; font: 400 15px/1.55 var(--f-sans); text-transform: none; letter-spacing: 0; color: var(--ink); }
.ports-tbl td { padding-right: 0; }
.ports-flow, .draw-note { margin: 0; padding: 20px 0 8px; line-height: 1.7; }
.ports-flow .port { font-family: var(--f-sans); font-size: 12px; }
@media (min-width: 760px) {
  .dimensions-grid > div:last-child > .spec:first-child { margin-top: 0; }
  .dimensions-grid > div:last-child > .spec:first-child dt:first-child,
  .dimensions-grid > div:last-child > .spec:first-child dd:nth-child(2) { padding-top: 0; }
}
@media (min-width: 760px) and (max-width: 999px) {
  :is([data-page="series"], [data-page="model"]) .sec .g-5-7 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  :is([data-page="series"], [data-page="model"]) .spec { font-size: 14px; }
  :is([data-page="series"], [data-page="model"]) .spec dt { padding-right: 12px; }
}

/* Analog finder: heading, explanation, then the search and its results. */
.analog-search { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.analog-search-inner { max-width: 960px; }
.analog-search .sec-head { margin: 0 auto 32px; justify-items: center; text-align: center; }
.analog-search h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; max-width: 23ch; }
.analog-search .lead { max-width: 37em; font-size: 18px; }
.analog-search .swap { gap: 24px; }
.analog-search .swap-in { grid-template-columns: minmax(0, 1fr) auto; }
.analog-search .swap-in .inp { min-width: 0; }
.analog-search .swap-res > div { min-width: 0; }
.analog-search .swap-res .btn { white-space: normal; text-align: center; }
@media (max-width: 559px) {
  .analog-search .swap-in { grid-template-columns: minmax(0, 1fr); }
  .analog-search .swap-in .inp { font-size: 16px; }
  .analog-search .swap-res { grid-template-columns: minmax(0, 1fr); }
  .analog-search .swap-res img { width: 80px; height: 64px; }
}

/* Contacts: direct channels and the existing lead form, in the site's drawing style. */
.contact-head h1 { font-size: clamp(34px, 4vw, 52px); }
.contact-head { max-width: 44em; margin-bottom: 32px; }
.contact-grid { display: grid; gap: 24px; align-items: start; }
.contact-grid > *, .contact-card > *, .contact-form-head > *, .contact-feedback .field { min-width: 0; }
.contact-methods { display: grid; gap: 14px; }
.contact-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 24px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; }
a.contact-card:hover { border-color: var(--heat-ink); color: var(--ink); }
.contact-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); color: var(--heat-ink); background: var(--sheet); }
.contact-icon svg { width: 24px; height: 24px; }
.contact-card .label { display: block; margin: 0 0 8px; font-size: 11px; }
.contact-card b { display: block; margin-bottom: 6px; font-size: clamp(18px, 2vw, 24px); font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.contact-address { margin-bottom: 12px; font-size: 17px; }
.contact-arrow { color: var(--heat-ink); font-size: 22px; line-height: 1.2; }
.contact-feedback { padding: clamp(20px, 3vw, 32px); background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--heat); border-radius: var(--r-lg); }
.contact-form-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 24px; }
.contact-form-head h2 { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.contact-form-head p { margin: 0; }
.contact-feedback .inp { min-width: 0; max-width: 100%; }
.contact-feedback .btn { white-space: normal; }
.contact-details h2 { font-size: 28px; line-height: 1.2; }
.contact-details .grid > * { min-width: 0; }
.contact-details .spec { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); line-height: 1.55; }
.contact-details .spec dd { text-align: left; overflow-wrap: anywhere; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; } }
@media (max-width: 599px) {
  .contact-card { padding: 18px 14px; gap: 12px; grid-template-columns: 36px minmax(0, 1fr) auto; }
  .contact-card .contact-icon { width: 36px; height: 36px; }
  .contact-card b { font-size: 19px; }
  .contact-details .spec { grid-template-columns: minmax(0, 1fr); }
  .contact-details .spec dt { padding-bottom: 0; border-bottom: 0; }
  .contact-details .spec dd { padding-top: 4px; }
}

/* Подбор через помощника */
.assistant-pick { margin-top: 24px; padding: 20px; background: var(--sheet); border: 1px solid var(--line-strong); border-radius: var(--r-lg); min-width: 0; }
.assistant-pick h2 { font-size: 1.35rem; }
.assistant-pick p { overflow-wrap: anywhere; }
.assistant-pick-phrase { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.assistant-pick .btn { max-width: 100%; white-space: normal; }
.assistant-pick [role="status"] { margin-left: 8px; }
.assistant-pick .btn[hidden] { display: none; }
