/* AsiaWin — окна со своего завода. Стиль: светлый бетон, графит, фирменный голубой #00aff2 только как акцент и линии чертежа. */
:root {
  --bg: #f0f1ee;
  --surface: #e3e6e3;
  --paper: #fafaf7;
  --ink: #0f1a20;
  --ink2: #26343c;
  --mute: #34424a; /* правило Васи 2.1: серого текста нет — вторичный текст почти чёрный */
  --line: rgba(15, 26, 32, .14);
  --acc: #00aff2;
  --acc-d: #0094cf;
  --acc-ink: #0f1a20;
  --dark: #0e171c;
  --dline: rgba(0, 175, 242, .16);
  --dpaper: rgba(240, 241, 238, .06);
  --dmute: rgba(240, 241, 238, .84);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fs-s: clamp(.8125rem, .79rem + .1vw, .875rem);
  --fs: clamp(1rem, .96rem + .2vw, 1.125rem);
  --fs-l: clamp(1.15rem, 1.05rem + .6vw, 1.5rem);
  --fs-h2: clamp(1.9rem, 1.2rem + 2.3vw, 3.3rem);
  --fs-h1: clamp(2.2rem, .8rem + 4.2vw, 4.4rem);
  --m: max(clamp(16px, 3.2vw, 40px), calc((100vw - 1400px) / 2));
  --gap: clamp(72px, 8vw, 120px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs)/1.55 'Onest', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; font-weight: 600; line-height: 1.05; }
h2 { font-size: var(--fs-h2); }
p { margin: 0; }
.wrap { padding-inline: var(--m); }
.sec { padding-block: var(--gap) 0; }
.eyebrow { font-size: var(--fs-s); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
  display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--acc); }
.sec__head { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec__head h2 { margin-top: 14px; }
.sec__head p { color: var(--mute); font-size: var(--fs-l); line-height: 1.4; }
@media (max-width: 900px) { .sec__head { grid-template-columns: 1fr; gap: 14px; } }
.num { font-variant-numeric: tabular-nums; }

/* кнопки */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .18s var(--ease), background-color .18s; user-select: none; }
.pill--acc { background: var(--acc); color: var(--acc-ink); }
.pill--acc:hover { background: #22bdf7; transform: translateY(-1px); }
.pill--ink { background: var(--ink); color: #fff; }
.pill--ink:hover { background: #1d2c34; transform: translateY(-1px); }
.pill--line { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill--line:hover { background: rgba(15, 26, 32, .06); }
.pill svg { width: 20px; height: 20px; flex: none; }
@media (hover: none) { .pill:hover { transform: none; } .pill--acc:hover { background: var(--acc); } .pill--ink:hover { background: var(--ink); } .pill--line:hover { background: none; } }

/* шапка */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: 68px; padding-inline: var(--m);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.logo svg { width: 40px; height: 16px; flex: none; } /* без высоты SVG растягивается на 150 px — была пустота в подвале */
.logo b { color: var(--acc-d); font-weight: 700; }
.top nav { display: flex; gap: 24px; margin-left: 12px; }
.top nav a { text-decoration: none; font-size: .95rem; color: var(--ink2); }
.top nav a:hover { color: var(--acc-d); }
.top__r { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang { text-decoration: none; font-weight: 600; font-size: .9rem; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.lang:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.top__tel { text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.top .pill { height: 42px; padding: 0 18px; font-size: .95rem; }
@media (max-width: 1080px) { .top nav { display: none; } }
@media (max-width: 620px) { .top { height: 60px; gap: 12px; } .top__tel { display: none; } .logo { font-size: 1.05rem; } .logo svg { width: 34px; height: 14px; } }

/* ============ первый экран: окно в стене ============ */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "text scene" "facts scene"; column-gap: clamp(28px, 4vw, 64px);
  align-items: center; padding: clamp(28px, 4vw, 56px) var(--m) 0; }
.hero__text { grid-area: text; align-self: end; }
.scene { grid-area: scene; }
.hero > .facts { grid-area: facts; align-self: start; }
.hero h1 { font-size: var(--fs-h1); margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--acc-d); }
.hero__lead { margin-top: 22px; font-size: var(--fs-l); line-height: 1.45; color: var(--ink2); max-width: 34ch; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(4, auto); gap: 18px 32px; margin-top: clamp(32px, 4vw, 52px); padding-top: 24px;
  border-top: 1px solid var(--line); justify-content: start; }
.facts b { display: block; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts span { font-size: var(--fs-s); color: var(--mute); line-height: 1.35; display: block; max-width: 16ch; }

.scene { position: relative; }
.wall { position: relative; border-radius: 6px; padding: clamp(26px, 4vw, 54px) clamp(26px, 4.4vw, 60px) 0;
  background: radial-gradient(120% 90% at 60% 0%, #f7f7f4 0%, #e6e7e3 70%, #dcdeda 100%); overflow: hidden; }
.wall::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 46%, rgba(255, 250, 235, .55), transparent 70%); opacity: 0; transition: opacity 1.2s var(--ease); }
.scene.is-open .wall::after, .scene.is-tilt .wall::after { opacity: 1; }
/* проём с откосами */
.opening { position: relative; margin: 0 auto; width: min(100%, 520px); aspect-ratio: 13 / 14; padding: 4.2%;
  background: linear-gradient(90deg, #d4d6d1 0, #ecede9 22%, #ecede9 78%, #d0d2cd 100%);
  box-shadow: inset 0 14px 18px -10px rgba(15, 26, 32, .22); }
.win { position: absolute; inset: 4.2%; perspective: 1400px; }
.view { position: absolute; inset: 0; overflow: hidden; }
.view svg { position: absolute; inset: -4% -6%; width: 112%; height: 108%; transition: transform .6s var(--ease); }
/* за окном: день / вечер / ночь по времени Алматы (?tod=day|eve|night для проверки) */
.view { --s1: #6fb9e3; --s2: #c8e6f3; --s3: #edf3ec; --sun: #fff7dc; --far: #9cb2c2; --snow: #f7fafc; --mid: #728ea0; --near: #5d7867; --city: #cbd3d5; --gr: #7d8f7b; }
.view[data-tod="eve"] { --s1: #34507c; --s2: #e5916c; --s3: #f7c992; --sun: #ffcf86; --far: #6c6f8d; --snow: #f4d4c6; --mid: #4d5571; --near: #39465a; --city: #3e4655; --gr: #2e3644; }
.view[data-tod="night"] { --s1: #0a1530; --s2: #1b2b4b; --s3: #2b3b58; --sun: #e9eef6; --far: #27334b; --snow: #8090a8; --mid: #1d283b; --near: #172031; --city: #1b2434; --gr: #121a27; }
.view .sun { fill: var(--sun); }
.view[data-tod="eve"] .sun { transform: translateY(150px); }
.view[data-tod="night"] .sun { transform: translate(-40px, -30px) scale(.6); transform-box: fill-box; transform-origin: center; }
.view .stars { fill: #fff; opacity: 0; }
.view[data-tod="night"] .stars { opacity: .9; }
.view .clouds { fill: #fff; opacity: .75; animation: clouds 60s linear infinite alternate; }
.view[data-tod="eve"] .clouds { fill: #ffd9c2; opacity: .55; }
.view[data-tod="night"] .clouds { opacity: .08; }
@keyframes clouds { to { transform: translateX(60px); } }
.view .m-far { fill: var(--far); } .view .snow { fill: var(--snow); } .view .m-mid { fill: var(--mid); } .view .m-near { fill: var(--near); }
.view .city { fill: var(--city); } .view .ground { fill: var(--gr); }
.view .lights { fill: #ffd27a; opacity: 0; } .view[data-tod="eve"] .lights { opacity: .75; } .view[data-tod="night"] .lights { opacity: 1; }
/* рама: белый профиль */
.frame { position: absolute; inset: 0; pointer-events: none;
  border: clamp(9px, 1.6vw, 15px) solid var(--pvc, #f7f8f6); border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .1), inset 0 6px 10px -6px rgba(0, 0, 0, .25); }
.mullion { position: absolute; top: 0; bottom: 0; left: calc(50% - clamp(5px, .9vw, 8px)); width: clamp(10px, 1.8vw, 16px); background: var(--pvc, #f7f8f6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 2px 0 4px rgba(0, 0, 0, .08); z-index: 2; }
.pane { position: absolute; top: clamp(9px, 1.6vw, 15px); bottom: clamp(9px, 1.6vw, 15px); }
.pane--fix { left: clamp(9px, 1.6vw, 15px); right: 50%; }
.pane--fix .glass { position: absolute; inset: 0; }
.sash { right: clamp(9px, 1.6vw, 15px); left: 50%; transform-origin: 100% 50%; transform-style: preserve-3d; z-index: 3;
  transition: transform 1s var(--ease); }
.sash__frame { position: absolute; inset: 0; border: clamp(8px, 1.4vw, 13px) solid var(--pvc, #f7f8f6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), inset 0 0 0 1px rgba(0, 0, 0, .06), -6px 10px 20px rgba(15, 26, 32, 0); transition: box-shadow 1s var(--ease); }
.sash .glass { position: absolute; inset: clamp(8px, 1.4vw, 13px); }
.glass { background: linear-gradient(118deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .06) 28%, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, .14) 64%, rgba(255, 255, 255, 0) 80%),
  rgba(170, 205, 220, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.scene.is-open .sash { transform: rotateY(48deg); }
.scene.is-open .sash__frame, .scene.is-tilt .sash__frame { box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), inset 0 0 0 1px rgba(0, 0, 0, .06), -10px 18px 34px rgba(15, 26, 32, .28); }
.scene.is-tilt .sash { transform-origin: 50% 100%; transform: rotateX(-13deg); }
/* ручка */
.handle { position: absolute; left: clamp(1px, .3vw, 3px); top: 50%; width: clamp(14px, 2.2vw, 20px); height: clamp(14px, 2.2vw, 20px); margin-top: -10px;
  z-index: 4; touch-action: none; cursor: grab; }
.handle__base { position: absolute; inset: 0; border-radius: 4px; background: #fbfbf9; box-shadow: 0 1px 2px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .1); }
.handle__lever { position: absolute; left: 50%; top: 50%; width: clamp(7px, 1vw, 9px); height: clamp(44px, 6.6vw, 62px); margin-left: calc(clamp(7px, 1vw, 9px) / -2);
  border-radius: 6px; background: linear-gradient(90deg, #e9eae6, #fff 50%, #dfe0dc); box-shadow: 1px 3px 5px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .08);
  transform-origin: 50% 0; transform: rotate(var(--ha, 0deg)); transition: transform .35s var(--ease); }
.handle.is-drag .handle__lever { transition: none; }
.handle::after { content: ''; position: absolute; inset: -22px; } /* зона пальца */
.handle:focus-visible { outline: 2px solid var(--acc); outline-offset: 6px; border-radius: 6px; }
.hint-ring { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  border: 2px solid var(--acc); opacity: 0; pointer-events: none; }
.scene.hint .hint-ring { animation: ring 1.6s var(--ease) 2; }
@keyframes ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }
/* подоконник */
.sill { position: relative; width: min(calc(100% + 24px), 560px); margin: 0 auto; height: clamp(16px, 2vw, 22px);
  background: linear-gradient(#fdfdfb, #e9eae6); border-radius: 2px 2px 3px 3px; box-shadow: 0 10px 16px -8px rgba(15, 26, 32, .3); }
.sill::after { content: ''; position: absolute; left: 3%; right: 3%; top: 100%; height: 30px; background: linear-gradient(rgba(15, 26, 32, .08), transparent); }
/* штора-воздух: когда окно открыто, по стене идёт лёгкий поток */
.air { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.air i { position: absolute; height: 1.5px; width: 90px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(0, 175, 242, .55), transparent); opacity: 0; }
.scene.is-open .air i, .scene.is-tilt .air i { animation: air 2.8s linear infinite; }
.air i:nth-child(1) { top: 30%; left: 50%; animation-delay: 0s !important; }
.air i:nth-child(2) { top: 44%; left: 52%; animation-delay: .7s !important; }
.air i:nth-child(3) { top: 58%; left: 48%; animation-delay: 1.4s !important; }
.air i:nth-child(4) { top: 22%; left: 55%; animation-delay: 2.1s !important; }
.scene.is-tilt .air i { top: 14% !important; }
.scene.is-tilt .air i:nth-child(2) { top: 18% !important; }
@keyframes air { 0% { transform: translateX(0) scaleX(.4); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateX(-220px) scaleX(1); opacity: 0; } }

/* переключатель положения ручки */
.hctl { margin-top: 18px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: var(--surface); position: relative; }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: var(--ink);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .45s var(--ease); }
.seg button { position: relative; z-index: 1; height: 44px; border-radius: 999px; font-weight: 500; font-size: .95rem; display: flex; align-items: center; justify-content: center; gap: 8px; transition: color .3s; }
.seg button[aria-pressed="true"] { color: #fff; }
.seg button svg { width: 16px; height: 16px; flex: none; }
.hctl__cap { margin-top: 14px; min-height: 3.1em; color: var(--ink2); font-size: .98rem; line-height: 1.45; }
.hctl__cap b { font-weight: 600; }
.scene__note { position: absolute; right: 12px; top: 10px; font-size: .75rem; color: var(--mute); }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "text" "scene" "facts"; }
  .scene { max-width: 620px; width: 100%; margin: 28px auto 0; }
  .hero__btns { margin-top: 22px; }
  .hero__lead { max-width: 40ch; }
}
@media (max-width: 620px) {
  .facts { grid-template-columns: repeat(2, auto); }
  .hero__btns .pill { flex: 1 1 auto; }
  .seg button { font-size: .86rem; gap: 6px; }
  .seg button svg { display: none; }
}

/* бегущая строка */
.marq { margin-top: var(--gap); border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 16px 0; }
.marq__in { display: inline-flex; gap: 48px; animation: marq 46s linear infinite; padding-left: 48px; }
.marq span { display: inline-flex; align-items: center; gap: 48px; font-weight: 500; font-size: clamp(1rem, .9rem + .5vw, 1.35rem); }
.marq span::after { content: ''; width: 9px; height: 9px; background: var(--acc); transform: rotate(45deg); }
@keyframes marq { to { transform: translateX(-50%); } }

/* появление */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }
/* первый экран не ждёт скрипта: проявляется сам при загрузке */
.hero .rv, .hero > .facts { opacity: 1; transform: none; transition: none; animation: rise .7s var(--ease) both; animation-delay: calc(var(--d, 0) * 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 720px) { .rv { transform: translateY(12px); transition-duration: .45s; transition-delay: calc(var(--d, 0) * 30ms); } }

/* ============ профиль в разрезе ============ */
.prof { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.prof__pic { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(16px, 3vw, 36px); }
.prof__pic svg { width: 100%; height: auto; display: block; overflow: visible; }
.prof__pic small { position: absolute; left: 16px; bottom: 10px; font-size: .75rem; color: var(--mute); }
.cham { transition: opacity .5s var(--ease), transform .6s var(--ease); transform-box: fill-box; transform-origin: center; }
.cham.off { opacity: 0; transform: scaleY(.3); }
.pane-g { transition: opacity .5s var(--ease), transform .6s var(--ease); }
.pane-g.off { opacity: 0; transform: translateY(-16px); }
.prof__opts { display: grid; gap: 22px; }
.prof__opts h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500; font-size: .95rem; text-align: left; transition: background .2s, color .2s, box-shadow .2s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip small { display: block; font-size: .78rem; font-weight: 400; opacity: .7; }
.prof__txt { font-size: var(--fs); color: var(--ink2); line-height: 1.5; min-height: 4.6em; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.spec dt { color: var(--mute); }
.spec dd { margin: 0; font-weight: 500; }
@media (max-width: 1080px) { .prof { grid-template-columns: 1fr; } }

/* ============ как работаем ============ */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); }
.steps__pic { position: sticky; top: 96px; align-self: start; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; aspect-ratio: 1 / 1; overflow: hidden; }
.steps__pic svg { width: 100%; height: 100%; display: block; }
.steps__lbl { position: absolute; left: 18px; top: 14px; font-size: .8rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.st { opacity: 0; transition: opacity .6s var(--ease); }
.st.on { opacity: 1; }
.draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 1.2s var(--ease); }
.on .draw, .draw.on { stroke-dashoffset: 0; }
.weld { opacity: 0; }
.st.on .weld { animation: weld 1.4s var(--ease) .5s; }
@keyframes weld { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.steps__list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps__list li { min-height: min(46vh, 440px); display: flex; flex-direction: column; justify-content: center; padding: 20px 0; border-top: 1px solid var(--line); opacity: .35; transition: opacity .5s var(--ease); }
.steps__list li:last-child { min-height: min(30vh, 300px); }
.steps__list li.on { opacity: 1; }
.steps__list .n { font-size: .85rem; color: var(--acc-d); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps__list h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); margin: 8px 0 12px; }
.steps__list p { color: var(--ink2); max-width: 44ch; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps__pic { top: 60px; z-index: 5; aspect-ratio: auto; height: min(34vh, 300px); border-radius: 0 0 6px 6px; margin-inline: calc(var(--m) * -1); border-inline: 0; }
  .steps__list li { min-height: min(52vh, 460px); }
}

/* ============ конструктор (тёмный чертёж) ============ */
.calc { margin-top: var(--gap); background: var(--dark); color: #f0f1ee; padding: var(--gap) var(--m); }
.calc .eyebrow { color: var(--dmute); }
.calc .sec__head p { color: var(--dmute); }
.cgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.board { position: sticky; top: 84px; border-radius: 6px; overflow: hidden; aspect-ratio: 5 / 4;
  background-color: #0b1317;
  background-image: linear-gradient(var(--dline) 1px, transparent 1px), linear-gradient(90deg, var(--dline) 1px, transparent 1px),
    linear-gradient(rgba(0, 175, 242, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 175, 242, .06) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; border: 1px solid rgba(0, 175, 242, .22); }
.board svg { width: 100%; height: 100%; display: block; }
.board__stamp { position: absolute; right: 0; bottom: 0; border-top: 1px solid rgba(0, 175, 242, .4); border-left: 1px solid rgba(0, 175, 242, .4);
  padding: 8px 12px; font-size: .74rem; line-height: 1.4; color: var(--dmute); background: rgba(11, 19, 23, .85); min-width: 46%; }
.board__stamp b { color: #f0f1ee; font-weight: 600; }
.board__tip { position: absolute; left: 14px; top: 12px; font-size: .78rem; color: var(--dmute); }
.sashhit { cursor: pointer; }
.sashhit:hover rect.hl { fill: none; }

.form { display: grid; gap: 22px; }
.fld h3 { font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dmute); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.fld h3 span { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.calc .chip { box-shadow: inset 0 0 0 1.5px rgba(240, 241, 238, .18); color: #f0f1ee; }
.calc .chip:hover { box-shadow: inset 0 0 0 1.5px rgba(240, 241, 238, .55); }
.calc .chip[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); box-shadow: none; }
.calc .chip[disabled] { opacity: .35; pointer-events: none; }
.dims { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dim { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 52px; border-radius: 6px; background: var(--dpaper); box-shadow: inset 0 0 0 1px rgba(240, 241, 238, .12); }
.dim button { height: 100%; font-size: 1.3rem; color: var(--dmute); border-radius: 6px; }
.dim button:hover { color: #fff; background: rgba(240, 241, 238, .06); }
.dim label { text-align: center; line-height: 1.1; }
.dim small { display: block; font-size: .7rem; color: var(--dmute); }
.dim input { width: 100%; background: none; border: 0; color: #f0f1ee; font: 600 1.1rem 'Onest', sans-serif; text-align: center; font-variant-numeric: tabular-nums; padding: 0; -moz-appearance: textfield; }
.dim input::-webkit-outer-spin-button, .dim input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dim input:focus { outline: none; }
.dim:focus-within { box-shadow: inset 0 0 0 1.5px var(--acc); }
.toggles { display: grid; gap: 2px; }
.tog { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid rgba(240, 241, 238, .09); cursor: pointer; }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog i { flex: none; width: 44px; height: 26px; border-radius: 99px; background: rgba(240, 241, 238, .16); position: relative; transition: background .25s; }
.tog i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #f0f1ee; transition: transform .25s var(--ease); }
.tog input:checked + i { background: var(--acc); }
.tog input:checked + i::after { transform: translateX(18px); background: var(--acc-ink); }
.tog input:focus-visible + i { outline: 2px solid var(--acc); outline-offset: 3px; }
.tog small { display: block; color: var(--dmute); font-size: .8rem; }
.city { margin-top: 8px; width: 100%; height: 48px; border-radius: 6px; border: 0; background: var(--dpaper); box-shadow: inset 0 0 0 1px rgba(240, 241, 238, .12);
  color: #f0f1ee; font: 500 1rem 'Onest', sans-serif; padding: 0 14px; }
.city:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--acc); }
.city[hidden] { display: none; }

.ticket { margin-top: 6px; border-radius: 6px; background: #f0f1ee; color: var(--ink); padding: 20px; }
.ticket__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ticket__sum { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ticket__note { color: var(--mute); font-size: .9rem; margin-top: 6px; line-height: 1.45; }
.ticket__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ticket__list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; padding: 10px 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.ticket__list li b { font-weight: 600; }
.ticket__list li span { color: var(--mute); display: block; }
.ticket__list button { color: var(--mute); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.ticket__btns { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 16px; }
.ticket__btns .pill { height: 50px; }
@media (max-width: 1080px) {
  .cgrid { grid-template-columns: 1fr; }
  .board { top: 60px; z-index: 6; margin-inline: calc(var(--m) * -1); border-radius: 0; border-inline: 0; aspect-ratio: auto; height: min(38vh, 330px); }
  .board__stamp { min-width: 0; font-size: .7rem; padding: 6px 10px; }
}
@media (max-width: 480px) { .ticket__btns { grid-template-columns: 1fr; } }

/* ============ гарантия ============ */
.gar { display: grid; gap: 0; border-top: 1px solid var(--line); }
.gar__row { display: grid; grid-template-columns: minmax(150px, 280px) 1fr 90px; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.gar__row b { font-weight: 600; }
.gar__row small { display: block; color: var(--mute); font-size: .85rem; }
.gar__bar { height: 12px; border-radius: 99px; background: var(--surface); position: relative; overflow: hidden; }
.gar__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); border-radius: 99px; transition: width 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.gar__bar i.acc { background: var(--acc); }
.gar.in .gar__bar i { width: var(--w); }
.gar__yr { text-align: right; font-weight: 600; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.gar__scale { display: grid; grid-template-columns: minmax(150px, 280px) 1fr 90px; gap: 20px; padding-top: 10px; font-size: .78rem; color: var(--mute); }
.gar__scale div { display: flex; justify-content: space-between; }
@media (max-width: 620px) {
  .gar__row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .gar__bar { grid-column: 1 / -1; grid-row: 2; }
  .gar__yr { grid-row: 1; grid-column: 2; }
  .gar__scale { display: none; }
}

/* ============ направления ============ */
.dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.dir { background: var(--bg); padding: clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px) clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.dir__ph { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--surface); margin-bottom: 6px; }
.dir__ph img { width: 100%; height: 100%; object-fit: cover; }
.dir h3, .dir p, .dir ul { padding-inline: clamp(4px, .8vw, 12px); }
.steps__cta { margin-top: 28px; }
.dir h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.dir p { color: var(--ink2); }
.dir ul { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; color: var(--mute); }
.dir li::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--acc); margin-right: 10px; vertical-align: middle; }
@media (max-width: 900px) { .dirs { grid-template-columns: 1fr; } .dir { min-height: 0; } }

/* ============ объекты ============ */
.objs { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 280px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--m) 16px; scroll-padding-inline: var(--m); margin-inline: calc(var(--m) * -1); scrollbar-width: thin; }
.obj { scroll-snap-align: start; position: relative; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: var(--surface); text-decoration: none; color: #fff; }
.obj img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.obj:hover img { transform: scale(1.04); }
.obj::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8, 14, 18, .82)); }
.obj figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; font-weight: 500; line-height: 1.3; }
.obj figcaption small { display: flex; align-items: center; gap: 6px; font-size: .78rem; opacity: .8; margin-top: 4px; }
.obj figcaption svg { width: 14px; height: 14px; }
.obj__play { position: absolute; right: 12px; top: 12px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: rgba(8, 14, 18, .55); display: grid; place-items: center; }
.obj__play svg { width: 14px; height: 14px; }
.objs__note { margin-top: 10px; font-size: .85rem; color: var(--mute); }

/* ============ вопросы ============ */
.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; transition: transform .3s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding: 0 0 24px; color: var(--ink2); max-width: 70ch; }

/* ============ фото проёма / контакты ============ */
.cta { margin-top: var(--gap); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: end;
  padding: clamp(28px, 4vw, 56px); border-radius: 6px; background: var(--acc); color: var(--acc-ink); margin-inline: var(--m); }
.cta h2 { font-size: clamp(1.8rem, 1.1rem + 2.2vw, 3rem); }
.cta p { margin-top: 14px; font-size: var(--fs-l); line-height: 1.4; max-width: 36ch; }
.cta__btns { display: grid; gap: 10px; }
.cta .pill--line { box-shadow: inset 0 0 0 1.5px var(--acc-ink); }
.cta .pill--line:hover { background: rgba(15, 26, 32, .08); }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; margin-inline: 0; border-radius: 0; } }

.foot { margin-top: var(--gap); padding: 40px var(--m) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; font-size: .92rem; }
.foot h4 { margin: 0 0 12px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--acc-d); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot__legal { grid-column: 1 / -1; color: var(--mute); font-size: .8rem; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 6px; }
.foot__legal a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr; } }

/* согласие и нижние кнопки на телефоне */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: 440px; background: var(--paper); color: var(--ink); border-radius: 6px;
  padding: 16px 18px; box-shadow: 0 10px 40px rgba(15, 26, 32, .18); display: grid; gap: 12px; font-size: .9rem; line-height: 1.45; }
.consent[hidden] { display: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent__btns { display: flex; align-items: center; gap: 14px; }
.consent .pill { height: 40px; }
.consent__no { font-weight: 500; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; padding: 8px 4px; }
.mbar { display: none; }
@media (max-width: 720px) {
  .consent { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transition: transform .35s var(--ease); }
  .mbar .pill { height: 48px; }
  body.mbar-off .mbar, body.has-consent .mbar { transform: translateY(160%); }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .marq__in { animation-duration: 120s; } }

/* телефон: меньше пустоты (правка Васи 09.11 — «тут пустоты много») */
.cta + .foot, main + .foot { margin-top: 0; }
@media (max-width: 720px) {
  :root { --gap: 52px; }
  .sec__head { margin-bottom: 24px; }
  .sec__head h2 { margin-top: 10px; }
  .marq { margin-top: 40px; }
  .steps__list li { min-height: min(36vh, 300px); padding: 14px 0; }
  .steps__list li:last-child { min-height: 0; padding-bottom: 0; }
  .cta { padding: 28px 16px; }
  .foot { padding-top: 32px; gap: 22px; }
  .dir { padding-bottom: 20px; }
}

/* ============ 3D-окно (okno3d.js): холст поверх стены, нарисованное окно прячется ============ */
.w3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s var(--ease); touch-action: pan-y; }
.scene.is-3d .w3d { opacity: 1; }
.scene.is-3d .wall { aspect-ratio: 1 / 1.03; padding: 0; background: #e9eae6; }
.scene.is-3d .opening, .scene.is-3d .sill, .scene.is-3d .air, .scene.is-3d .scene__note { display: none; }
@media (max-width: 620px) { .scene.is-3d .wall { aspect-ratio: 1 / 1.12; } }
/* 3D-образец профиля (profil3d.js) */
.p3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity .8s var(--ease); }
.prof__pic.is-3d { aspect-ratio: 1.12 / 1; overflow: hidden;
  background: radial-gradient(90% 80% at 50% 45%, #ffffff 0%, var(--paper) 60%, #ecede8 100%); }
.prof__pic.is-3d .p3d { opacity: 1; }
.prof__pic.is-3d > svg, .prof__pic.is-3d > small { display: none; }
.p3d-lbls { position: absolute; inset: 0; pointer-events: none; }
.p3d-side { position: absolute; top: 14px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.p3d-side--out { left: 16px; color: var(--acc-d); }
.p3d-side--in { right: 16px; color: #b8722e; }
/* «Как работаем»: настоящие кадры клиента вместо схемы (правило Васи 1.8) */
.steps__pic { aspect-ratio: 4 / 3; background: var(--surface); }
.steps__pic figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease); }
.steps__pic figure.on { opacity: 1; }
.steps__pic img { width: 100%; height: 100%; object-fit: cover; }
.steps__pic figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  background: rgba(250, 250, 247, .94); color: var(--ink); font-size: .85rem; font-weight: 600; line-height: 1.3; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 900px) { .steps__pic { aspect-ratio: auto; height: min(34vh, 300px); } .steps__pic figcaption { font-size: .75rem; border-radius: 8px; } }
/* первый экран против баннерной слепоты: одно действие, окно главное (правка Васи 09.11) */
.hero { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); grid-template-areas: "text scene"; align-items: center; }
.hero__text { align-self: center; }
.hero h1 { font-size: clamp(2.8rem, 1rem + 5.4vw, 6rem); line-height: .95; letter-spacing: -.04em; }
.hero__lead { max-width: 26ch; }
.hero__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 2px solid var(--acc); padding-bottom: 3px; }
.hero__more span { transition: transform .2s var(--ease); }
.hero__more:hover span { transform: translateX(4px); }
.hctl__cap { min-height: 1.5em; }
@media (min-width: 1081px) { .scene.is-3d .wall { aspect-ratio: 1.3 / 1; max-height: calc(100vh - 230px); width: 100%; } }
@media (max-width: 620px) { .scene.is-3d .wall { aspect-ratio: 1 / 1; } .hctl { margin-top: 12px; } }
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "text" "scene"; padding-top: 22px; }
  .hero h1 { margin-top: 10px; }
  .hero__lead { margin-top: 12px; max-width: 34ch; font-size: 1.05rem; }
  .hero__more { margin-top: 12px; }
  .scene { margin-top: 18px; }
}
/* телефон: ничего не прилипает к верху, кроме шапки — иначе блок дёргается вместе с адресной строкой браузера
   (правка Васи 10.11). Чертёж конструктора — обычный блок; в «после заявки» фото стоит в каждом шаге. */
.steps__li-ph { display: none; }
@media (max-width: 1080px) {
  .board { position: relative; top: auto; z-index: auto; margin-inline: 0; border-radius: 6px; border-inline: 1px solid rgba(0, 175, 242, .22);
    aspect-ratio: 5 / 4; height: auto; }
}
@media (max-width: 900px) {
  .steps__pic { display: none; }
  .steps__list li { min-height: 0; opacity: 1; padding: 22px 0; }
  .steps__li-ph { display: block; position: relative; margin: 0 0 14px; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
  .steps__li-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .steps__li-ph figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; width: fit-content; background: rgba(250, 250, 247, .94);
    font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; }
}
/* конструктор «как в жизни» (правка Васи 10.11): окно в светлой стене вместо тёмного чертежа */
.board { background: #ebe9e3; border: 1px solid rgba(240, 241, 238, .25); }
.board__tip { color: #26343c; background: rgba(250, 250, 247, .85); padding: 4px 10px; border-radius: 999px; }
.board__stamp { background: rgba(250, 250, 247, .94); color: #34424a; border: 0; border-top-left-radius: 6px; box-shadow: 0 -2px 12px rgba(15, 26, 32, .12); }
.board__stamp b { color: var(--ink); }
.sashhit rect.hl { pointer-events: all; }   /* нажимается и без заливки */
.sashhit:hover rect.hl { fill: none; stroke: rgba(0, 175, 242, .75); stroke-width: 2px; vector-effect: non-scaling-stroke; }   /* рамкой, а не заливкой — иначе открытая створка выглядит голубой */
@media (max-width: 1080px) {
  .board { overflow: visible; margin-bottom: 64px; }
  .board__stamp { top: 100%; bottom: auto; left: 0; right: 0; min-width: 0; border-radius: 0 0 6px 6px; box-shadow: none; }
  .board__tip { font-size: .72rem; left: 8px; top: 8px; }
}
/* окно: картинка-заглушка с 3D-модели видна сразу, живое 3D накрывает её после загрузки; CSS-рисунок больше не показываем */
.scene .wall { padding: 0; background: #ecedea; aspect-ratio: 1100 / 845; }
.w3d-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.scene .opening, .scene .sill, .scene .air, .scene .scene__note { display: none; }
@media (max-width: 620px) { .scene .wall { aspect-ratio: 1 / 1; } }
/* структура из рилса @adsolovyov (09.11): первый экран = что / кому / результат */
@media (min-width: 1081px) { .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.hero h1 { font-size: clamp(2.1rem, .9rem + 3.4vw, 4rem); line-height: 1.02; letter-spacing: -.03em; }
.hero__lead { max-width: 38ch; }
.hero__who { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hero__who li { font-size: .88rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--surface); }
.hero__btns { margin-top: 24px; }
@media (max-width: 620px) {
  .hero h1 { font-size: 2.05rem; }
  .hero__who li { font-size: .8rem; padding: 5px 10px; }
  .hero__btns { display: grid; gap: 8px; }
}
/* было → стало */
.ba { display: grid; grid-template-columns: 1fr .62fr 1fr; gap: 14px; align-items: stretch; }
.ba__ph { position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: var(--surface); min-height: 280px; }
.ba__ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ba__ph figcaption { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  background: var(--ink); color: #fff; }
.ba__ph + .ba__ph figcaption { background: var(--acc); color: var(--acc-ink); }
.ba__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
.ba__list li { padding-left: 26px; position: relative; color: var(--ink2); line-height: 1.45; }
.ba__list li::before { content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); }
.ba__list b { color: var(--ink); }
@media (max-width: 900px) {
  .ba { grid-template-columns: 1fr 1fr; }
  .ba__ph { min-height: 0; aspect-ratio: 3 / 4; }
  .ba__list { grid-column: 1 / -1; }
}
/* риски */
.risks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.risk { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.risk h3 { font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 10px; }
.risk p { color: var(--ink2); font-size: .95rem; }
#garantiya { padding-top: 0; }
@media (max-width: 1080px) { .risks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .risks { grid-template-columns: 1fr; } }
/* одна деталь за раз: строка и кнопки внизу образца (правка Васи «разгрузи») */
.p3d-ui { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 14px 14px; }
.p3d-cap { margin: 0 0 10px; font-weight: 600; font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); line-height: 1.35; color: var(--ink); text-align: center; min-height: 2.7em;
  display: flex; align-items: flex-end; justify-content: center; }
.p3d-tabs { pointer-events: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: rgba(227, 230, 227, .9); }
.p3d-tabs button { height: 38px; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--ink2); transition: background .25s, color .25s; }
.p3d-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 620px) {
  .prof__pic.is-3d { aspect-ratio: 1 / 1.12; padding: 0; }
  .p3d-tabs button { font-size: .78rem; height: 36px; }
}
.p3d-w i { display: none; }
.p3d-w span { left: 0 !important; right: auto !important; transform: translateX(-50%); top: 6px; background: var(--acc); color: var(--acc-ink); }
/* подписи к фурнитуре поверх 3D */
.w3d-lbls { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.w3d-lbl { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .35s var(--ease); }
.w3d-lbl.on { opacity: 1; }
.w3d-lbl i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(0, 175, 242, .28); }
.w3d-lbl span { position: absolute; left: 12px; top: -12px; white-space: nowrap; font-size: .8rem; font-weight: 600; line-height: 1.25; color: var(--ink);
  background: rgba(250, 250, 247, .94); padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 10px rgba(15, 26, 32, .14); }
.w3d-lbl.left span { left: auto; right: 12px; }
@media (max-width: 620px) {
  .w3d-lbl span { font-size: .7rem; white-space: normal; width: max-content; max-width: 150px; border-radius: 8px; padding: 3px 7px; top: -10px; }
}

.calc [hidden] { display: none !important; }   /* у двери прячем подоконник, отлив, фурнитуру */
