/* Віджети 01_solar: матове скло поверх відео. Стиль за рефами refs/1ed9b576…, 6e077e64…, f26e3a8d…, faa98464… */
:root {
  /* світлий відблиск поверх димчастої основи: текст читається і на яскравому небі, і на темних кадрах */
  --glass: linear-gradient(140deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05)), rgba(16, 26, 40, .26);
  --glass-strong: linear-gradient(140deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .08)), rgba(16, 26, 40, .30);
  --glass-line: rgba(255, 255, 255, .20);
  --text: #fff;
  --text-dim: rgba(255, 255, 255, .66);
  --accent: #ffd27a;        /* тепле сонячне золото з першого кадру */
  --good: #b9f2c1;
  --radius: 28px;
  --pad: clamp(18px, 1.6vw, 28px);
}
body { font-family: "Onest", system-ui, "Segoe UI", sans-serif; }

/* легке затемнення країв, щоб текст читався на світлих кадрах */
#shade { position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 10, 20, .42) 0%, rgba(4, 10, 20, 0) 20%, rgba(4, 10, 20, 0) 62%, rgba(4, 10, 20, .40) 100%); }

/* --- шапка */
#top { position: fixed; left: 0; right: 0; top: 0; z-index: 7; display: flex; align-items: center; gap: 28px;
  padding: clamp(14px, 1.6vw, 26px) clamp(20px, 6vw, 110px) 0 clamp(20px, 6vw, 110px); }
#top .logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: .01em; }
#top .logo i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--accent) 42%, rgba(255, 210, 122, 0) 72%); }
#top nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--text-dim); }
#top nav a { color: inherit; text-decoration: none; cursor: pointer; transition: color .2s; }
#top nav a:hover { color: var(--text); }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.lang button { border: 0; background: none; color: var(--text-dim); font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.lang button.on { background: rgba(255, 255, 255, .92); color: #10151c; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; font: inherit; font-weight: 500;
  font-size: 15px; padding: 13px 22px; cursor: pointer; white-space: nowrap; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: #fff; color: #10151c; }
.btn.ghost { background: var(--glass); color: var(--text); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.btn.small { padding: 9px 16px; font-size: 14px; }

/* --- шар віджетів */
#ui { position: fixed; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
#ui .panel { position: absolute; inset: 0; visibility: hidden; }
#ui .panel.live { visibility: visible; }
#ui .slot { position: absolute; display: flex; flex-direction: column; gap: 16px; }
/* без will-change: воно робить обгортку «коренем фону», і скло вкладених карток перестає розмивати відео */
#ui .panel.here .card, #ui .panel.here .btn { pointer-events: auto; }

.kicker { align-self: flex-start; font-size: 13px; letter-spacing: .04em; padding: 7px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.04; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
h1 { font-size: clamp(36px, 4.7vw, 84px); }
h2 { font-size: clamp(28px, 3.2vw, 56px); }
.lead { margin: 0; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.5; color: rgba(255, 255, 255, .86); max-width: 34em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .45); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; font-size: 14px; color: var(--text-dim); }
.trust b { display: block; font-size: 22px; font-weight: 500; color: var(--text); }

.card { border-radius: var(--radius); padding: var(--pad); background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(26px) saturate(1.35); -webkit-backdrop-filter: blur(26px) saturate(1.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .16); }
.card .label { font-size: 13px; color: var(--text-dim); letter-spacing: .03em; }
.card .big { font-size: clamp(44px, 4.2vw, 76px); font-weight: 400; letter-spacing: -.03em; line-height: 1; margin: 6px 0 2px; }
.card .big small { font-size: .38em; letter-spacing: 0; color: var(--text-dim); margin-left: 6px; }
.specs { display: grid; grid-template-columns: 1fr auto; gap: 11px 18px; margin: 18px 0 20px; padding-top: 18px;
  border-top: 1px solid var(--glass-line); font-size: 15px; }
.specs span:nth-child(odd) { color: var(--text-dim); }
.specs span:nth-child(even) { text-align: right; }
.chip { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 10px 16px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* розкладка точок */
.p1 .slot { left: clamp(20px, 6vw, 110px); top: 50%; transform: translateY(-46%); width: min(52vw, 760px); gap: 22px; }
.p3 .slot.title { left: clamp(20px, 6vw, 110px); bottom: 13vh; width: min(40vw, 560px); }
.p3 .slot.side { right: clamp(56px, 7vw, 130px); top: 50%; transform: translateY(-50%); width: clamp(290px, 25vw, 400px); }
.p4 .slot.title { left: clamp(20px, 6vw, 110px); top: 17vh; width: min(40vw, 560px); }
.p4 .slot.side { right: clamp(56px, 7vw, 130px); top: 15vh; width: clamp(290px, 25vw, 400px); }

/* шкала віддачі панелі */
.gauge { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.gauge svg { width: 112px; height: 112px; flex: none; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.gauge .track { stroke: rgba(255, 255, 255, .16); }
.gauge .value { stroke: var(--accent); stroke-dasharray: 289; }
.gauge .big { margin: 0; }
.loss { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--glass-line); display: flex; justify-content: space-between; font-size: 15px; }
.loss b { font-weight: 500; color: var(--accent); }
.hint { font-size: 13px; color: var(--text-dim); margin-top: 12px; }
.service ul { margin: 10px 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.service li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 10px; vertical-align: middle; }


/* ---------- решта точок ---------- */
.note { margin: 12px 0 14px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .84); }
.tags span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.bar i { display: block; height: 100%; width: 12%; border-radius: 3px; background: var(--good); }

.slot.corner { right: clamp(56px, 7vw, 130px); bottom: 11vh; width: clamp(300px, 30vw, 480px); }
.slot.wide { left: clamp(20px, 6vw, 110px); right: clamp(56px, 7vw, 130px); bottom: 7vh; }
.p6 .slot.title, .p8 .slot.title, .p10 .slot.title, .p11 .slot.title { left: clamp(20px, 6vw, 110px); top: 16vh; width: min(44vw, 640px); }
.p6 .slot.side, .p10 .slot.side, .p11 .slot.side { right: clamp(56px, 7vw, 130px); top: 15vh; width: clamp(290px, 25vw, 400px); }
.p6 .specs { margin-bottom: 12px; }

/* крива генерації за день */
.card.day { padding-bottom: 14px; }
.curve { position: relative; height: clamp(70px, 11vh, 120px); }
.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.curve path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.curve .base { stroke: rgba(255, 255, 255, .28); }
.curve .done { stroke: var(--accent); stroke-dasharray: 0 1; }
.curve b { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 210, 122, .35), 0 0 22px 6px rgba(255, 210, 122, .55); }
.hours { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--text-dim); }

/* етапи монтажу */
#ui .slot.steps { flex-direction: row; gap: 14px; }
.step { flex: 1; display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 22px; }
.step > b { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 500;
  background: rgba(255, 255, 255, .92); color: #10151c; }
.step strong { display: block; font-weight: 500; font-size: 16px; }
.step span { font-size: 13px; color: var(--text-dim); }

/* калькулятор */
.slot.calc { left: clamp(20px, 6vw, 110px); top: 50%; transform: translateY(-46%); width: clamp(300px, 27vw, 420px); }
#ui .p9 .slot.corner { align-items: flex-end; text-align: right; width: min(36vw, 520px); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 10px 0 0; background: none; cursor: pointer; pointer-events: auto; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 210, 122, .35); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 210, 122, .35); }

/* бізнес-цифри */
#ui .slot.stats { gap: 12px; }
.stat { padding: 16px 22px; border-radius: 22px; }
.stat .big { font-size: clamp(34px, 3vw, 54px); margin: 0 0 2px; }

/* відгук */
.stars { color: var(--accent); letter-spacing: 3px; }
.review p { margin: 12px 0 18px; font-size: 16px; line-height: 1.5; }
.who { display: flex; gap: 12px; align-items: center; }
.who > b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #10151c; font-weight: 600; }
.who strong { display: block; font-weight: 500; }
.who span { font-size: 13px; color: var(--text-dim); }

/* острівці: точки прив'язані до відео, картка відкривається поруч */
#hots { position: absolute; inset: 0; }
.hot { position: absolute; width: 0; height: 0; }
.hot > button { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #fff; cursor: pointer;
  background: rgba(40, 52, 60, .55); color: #fff; font: inherit; font-size: 14px;
  transition: background .2s, color .2s, transform .2s; }
.hot > button::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); animation: hot 2.4s ease-out infinite; }
@keyframes hot { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.hot.open > button { background: #fff; color: #10151c; transform: scale(1.1); }
#ui .panel.here .hot > button { pointer-events: auto; }
#ui .panel:not(.live) .hot > button::after { animation: none; }   /* пульсація точок не крутиться на схованих сторінках */
.slot.mid { left: clamp(20px, 6vw, 110px); top: 15vh; width: clamp(270px, 23vw, 340px); }
.slot.foot { right: clamp(56px, 7vw, 130px); bottom: 7vh; width: clamp(300px, 30vw, 460px); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.fields input { min-width: 0; font: inherit; font-size: 15px; color: #fff; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, .10); outline: none; pointer-events: auto; }
.fields input::placeholder { color: var(--text-dim); }
.fields input:focus { border-color: rgba(255, 255, 255, .7); }
.fields .btn { grid-column: 1 / -1; justify-content: center; }


/* ---------- друга ітерація слайдів (Антон, 2026-11-19) ---------- */
#ui .slot.flow { left: clamp(20px, 6vw, 110px); bottom: 11vh; width: min(38vw, 520px); gap: 10px; }
.slot.flow .step { flex: none; }

/* перемикачі-пігулки */
.seg { display: inline-flex; align-self: flex-start; padding: 3px; margin-top: 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.seg button { border: 0; background: none; color: var(--text-dim); font: inherit; font-size: 13px; padding: 7px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: rgba(255, 255, 255, .92); color: #10151c; }
.seg.big { margin-top: 4px; } .seg.big button { font-size: 15px; padding: 10px 18px; }
#ui .panel.here .seg button { pointer-events: auto; }

.curve .load { stroke: rgba(255, 255, 255, .7); stroke-dasharray: 5 6; stroke-width: 1.5; }
.curve .area { fill: rgba(255, 210, 122, .16); stroke: none; }
.legend { display: flex; gap: 22px; margin-top: 10px; font-size: 12px; color: var(--text-dim); }
.legend .k::before { content: ""; display: inline-block; width: 22px; margin-right: 8px; vertical-align: middle; border-top: 2px solid var(--accent); }
.legend .k.use::before { border-top: 2px dashed rgba(255, 255, 255, .7); }
.legend .k.c1::before { border-color: #ffd27a; } .legend .k.c2::before { border-color: #9fd4ff; }
.legend .k.c3::before { border-color: #6fe0d0; } .legend .k.c4::before { border-color: #b9f2c1; }

.cover { margin-top: 14px; font-size: 14px; } .cover > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--text-dim); }
.cover b { color: var(--text); font-weight: 500; } .cover .bar i { background: var(--accent); transition: width .5s; }
.p10 .specs span:nth-child(even) { max-width: 13em; }

/* гібридна система */
.donut { display: flex; align-items: center; gap: 18px; margin: 12px 0 6px; }
.donut svg { width: 104px; height: 104px; flex: none; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 12; }
.donut b { display: block; font-size: 30px; font-weight: 400; letter-spacing: -.02em; } .donut span { font-size: 13px; color: var(--text-dim); }
.mixlist { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; align-items: center; font-size: 15px; margin-top: 8px; }
.mixlist i { width: 10px; height: 10px; border-radius: 50%; } .mixlist b { font-weight: 500; }
#m-stack path { stroke: none; opacity: .88; }

/* точки на відео: острівці (клік) і будинки (наведення) */
.hots { position: absolute; inset: 0; }
.hot.house > button { background: rgba(255, 210, 122, .85); color: #10151c; font-weight: 500; }

/* віджет-перелік клікабельного на відео; інформація про вибране показується в ньому ж (Антон, 2026-11-19) */
#ui .pick { padding: 14px; border-radius: 24px; text-align: left; }
.pick .label { padding: 4px 8px 10px; }
.picks { display: grid; gap: 2px; }
.picks button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 14px; background: none; color: #fff;
  font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.picks button:hover { background: rgba(255, 255, 255, .10); }
.picks button.on { background: rgba(255, 255, 255, .92); color: #10151c; }
.picks b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 500; border: 1.5px solid currentColor; }
.picks span { flex: 1; }
.picks em { font-style: normal; font-size: 13px; opacity: .7; white-space: nowrap; }
.pickinfo { display: none; margin-top: 10px; padding: 14px 8px 4px; border-top: 1px solid var(--glass-line); }
.pick.has .pickinfo { display: block; animation: pickin .3s; }
@keyframes pickin { from { opacity: 0; transform: translateY(6px); } }
.pick.has .pickhint { display: none; }
.pickhint { padding: 0 8px 4px; }
.pickinfo strong { display: block; font-weight: 500; font-size: 17px; margin-bottom: 10px; }
.pickinfo .specs { margin: 0; padding-top: 0; border-top: 0; font-size: 14px; gap: 7px 14px; }
#ui .panel.here .picks button { pointer-events: auto; }
.p9 .pick { width: clamp(280px, 24vw, 340px); }

/* тимчасові підписи точок більше не потрібні: віджети є на всіх точках */
#caption { display: none; }

/* ---------- нижня навігація: широка «бульбашка» з вкладками (Антон, 2026-11-19) ---------- */
:root { --bottom: 104px; }   /* місце під навігацію: нижні віджети стоять над нею */
#tabs { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 7; display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28); max-width: calc(100vw - 20px); }
#tabs button { position: relative; display: flex; align-items: center; justify-content: center; flex: none; height: 42px; width: 42px; padding: 0; border: 0;
  border-radius: 999px; background: none; color: var(--text-dim); cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; z-index: 1;
  transition: width .45s cubic-bezier(.3, .7, .2, 1), color .3s; }
#tabs svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .25s; }
#tabs .name { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
#tabs button:hover { color: #fff; }
#tabs button.on { color: #10151c; width: var(--w, 120px); }
#tabs .bub { position: absolute; left: 0; top: 5px; height: 42px; width: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); pointer-events: none; }   /* одна бульбашка виділення, її рухає uiNavBub */
#tabs button.on svg { opacity: 0; }
#tabs button.on .name { opacity: 1; }
#tabs .tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px); padding: 6px 12px; border-radius: 999px; font-style: normal;
  font-size: 13px; white-space: nowrap; color: #fff; background: rgba(16, 26, 40, .84); border: 1px solid var(--glass-line); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; }
#tabs button:not(.on):hover .tip { opacity: 1; transform: translate(-50%, 0); }

.slot.wide, .slot.foot { bottom: var(--bottom); }
.slot.corner, #ui .slot.flow { bottom: calc(var(--bottom) + 2vh); }
.p3 .slot.title { bottom: max(13vh, var(--bottom)); }

/* ---------- доповнення (Антон, 2026-11-19): меню, шторка, лічильники, додаткова інфографіка ---------- */
#top nav a[data-go], #top nav a[data-sheet] { cursor: pointer; }
.trust b i, .trust b em { font-style: normal; }
.trust b i { font-variant-numeric: tabular-nums; }

/* підказка «гортайте» на головній */
.scrollhint { position: absolute; left: 0; right: 0; bottom: calc(var(--bottom) + 14px); display: flex; justify-content: center; }
.scrollhint > span { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .04em; color: var(--text-dim); }
.scrollhint i { position: relative; width: 18px; height: 28px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .7); }
.scrollhint i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: #fff;
  animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
#ui .panel:not(.live) .scrollhint i::after { animation: none; }

/* малі графіки всередині карток */
.mini { margin: 0 0 16px; }
.mini .label { margin-bottom: 8px; }
.curve.small { height: clamp(44px, 6.5vh, 66px); }
.curve .dgA { stroke: var(--accent); }
.curve .dgB { stroke: rgba(255, 255, 255, .7); stroke-dasharray: 5 6; stroke-width: 1.5; }
.mini .hours { margin-top: 6px; }
.mini .legend { gap: 14px; flex-wrap: wrap; }

/* порівняння ККД */
.cmp { display: grid; gap: 10px; margin: 0 0 14px; }
.cmp > div { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13px; color: var(--text-dim); }
.cmp b { font-weight: 500; }
.cmp .bar { grid-column: 1 / -1; }
.cmp .bar i { background: rgba(255, 255, 255, .5); }
.cmp .top { color: var(--text); }
.cmp .top .bar i { background: var(--accent); }

/* втрати по місяцях */
.months { display: flex; align-items: flex-end; gap: 4px; height: 46px; }
.months i { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: rgba(255, 255, 255, .45); }
.months i.wash { background: color-mix(in srgb, var(--good) calc(var(--g, 0) * 100%), rgba(255, 255, 255, .45)); }
#g-monthl { margin-top: 5px; font-size: 11px; }
#g-monthl span { flex: 1; text-align: center; }
.p4 .mini { margin: 14px 0 0; }

/* день станції: підсумок і перемикач акумулятора в рядку легенди */
.legend { align-items: center; }
.legend .sum b { font-weight: 500; color: var(--text); }
.legend .seg { margin: 0 0 0 auto; }

/* монтаж: етапи клікабельні, картка етапу праворуч над ними */
.p8 .step { cursor: pointer; transition: background .25s, color .25s; }
.p8 .step.on { background: rgba(255, 255, 255, .92); color: #10151c; }
.p8 .step.on span { color: rgba(16, 21, 28, .6); }
.p8 .step.on > b { background: #10151c; color: #fff; }
.slot.stepinfo { display: none; right: clamp(56px, 7vw, 130px); bottom: calc(var(--bottom) + 96px); width: clamp(300px, 28vw, 420px); }
#ui .slot.stepinfo.has { display: flex; }
#st-info strong { display: block; font-weight: 500; font-size: 19px; margin-top: 6px; }
#st-info .docs { font-size: 14px; color: var(--text-dim); padding-top: 12px; border-top: 1px solid var(--glass-line); }
#st-info .docs span:last-child { color: var(--text); }
#st-info ul { margin-bottom: 14px; }

/* об'єкти: фільтр і підсумок у переліку */
.pickfilter .seg { margin: 0 0 10px; flex-wrap: wrap; }
.picksum { font-size: 13px; color: var(--text-dim); padding: 0 8px 10px; }
.picks button.dim { opacity: .35; }
.hot.dim > button { opacity: .3; }
.hot > button { transition: background .2s, color .2s, transform .2s, opacity .25s; }
.p9 .calc .dot, #c-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; }

/* форма-шторка */
#sheet { position: fixed; inset: 0; z-index: 9; visibility: hidden; pointer-events: none; transition: visibility 0s .4s; }
#sheet.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
#sheet .back { position: absolute; inset: 0; background: rgba(4, 10, 20, .5); opacity: 0; transition: opacity .3s; }
#sheet.open .back { opacity: 1; }
/* картка виїжджає зсувом, без зміни прозорості: розмиття тла не працює, поки елемент напівпрозорий */
#sheet form { position: absolute; right: clamp(16px, 3vw, 44px); top: 50%; width: min(430px, calc(100vw - 32px)); padding: 26px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)), rgba(16, 26, 40, .58);
  transform: translate(calc(100% + 60px), -50%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
#sheet.open form { transform: translate(0, -50%); }
#sheet h3 { margin: 6px 0 8px; font-weight: 500; font-size: 26px; letter-spacing: -.015em; line-height: 1.1; }
.sheetsum { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .86); margin-bottom: 6px; }
.sheetnote { font-size: 13px; color: var(--text-dim); margin-top: 12px; }
#sheet .fields input.full { grid-column: 1 / -1; }
#sheet .x { position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .10);
  color: #fff; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }

/* ---------- вузькі екрани: одна колонка. Заголовок під шапкою, картки внизу над навігацією ---------- */
@media (max-width: 820px) {
  :root { --bottom: 78px; --pad: 16px; --radius: 22px; }
  #top { gap: 10px; padding: 12px 16px 0; }
  #top nav { display: none; } #top .lang { margin-left: auto; }
  #top .btn { padding: 8px 14px; font-size: 13px; }
  #top .logo { font-size: 17px; }

  #ui .panel { display: flex; flex-direction: column; gap: 10px; padding: 70px 16px var(--bottom); }
  #ui .slot { position: static; width: auto; transform: none; gap: 10px; }
  #ui .slot.title, #ui .slot.mid { margin-bottom: auto; }
  #ui .p1 .slot { margin: auto 0; gap: 16px; }
  #ui .p2 .slot.corner { margin-top: auto; }
  #ui .p9 .slot.corner { order: -1; margin-bottom: auto; width: auto; align-items: stretch; text-align: left; }
  #ui .panel:not(.p1) .lead, #ui .slot.flow, #ui .slot.foot, .hint { display: none; }

  h1 { font-size: clamp(32px, 9.4vw, 46px); }
  h2 { font-size: clamp(24px, 6.6vw, 34px); }
  .kicker { font-size: 12px; padding: 6px 12px; }
  .trust { gap: 14px; font-size: 12px; } .trust b { font-size: 18px; }
  .card .big { font-size: 40px; }
  .specs { margin: 12px 0; padding-top: 12px; gap: 7px 12px; font-size: 14px; }
  .chip { font-size: 13px; padding: 8px 12px; }
  .gauge svg { width: 84px; height: 84px; }
  .curve { height: 64px; }
  .seg button { padding: 6px 10px; } .seg.big button { font-size: 14px; padding: 8px 14px; }
  #ui .slot.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .step { padding: 10px 12px; gap: 10px; border-radius: 18px; } .step > b { width: 28px; height: 28px; font-size: 13px; } .step strong { font-size: 14px; }
  .donut svg { width: 80px; height: 80px; } .donut b { font-size: 24px; }
  .mixlist { font-size: 14px; gap: 6px 10px; }

  /* перелік стає рядком кнопок із номерами під заголовком; картка вибраного відкривається внизу на всю ширину,
     а якщо точка внизу кадру (.low), то вгорі під кнопками. Поки щось вибрано, калькулятор ховаємо. */
  #ui .pick { padding: 0; width: auto; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .pick .label, .picks span, .picks em { display: none; }
  .picks { display: inline-flex; gap: 0; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .picks button { width: auto; padding: 0; } .picks button:hover, .picks button.on { background: none; }
  .picks b { width: 34px; height: 34px; border: 0; } .picks button.on b { background: rgba(255, 255, 255, .92); color: #10151c; }
  #ui .p9 .slot.corner, #ui .slot.mid { flex: 1; }   /* слот тягнеться до низу, щоб картка вибраного могла стати внизу без position: fixed */
  #ui .panel.here .pick { flex: 1; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
  #ui .panel.here .pickinfo { pointer-events: auto; }
  .pickinfo { align-self: stretch; margin: auto 0 0; padding: 14px 16px; border: 1px solid var(--glass-line); border-radius: 22px;
    background: var(--glass); backdrop-filter: blur(26px) saturate(1.35); -webkit-backdrop-filter: blur(26px) saturate(1.35); }
  .pick.low .pickinfo { margin-top: 10px; }
  #ui .panel.picked .slot.calc { display: none; }

  #tabs { bottom: 14px; gap: 0; padding: 4px; }
  #tabs button { height: 38px; width: 21px; }
  #tabs .bub { top: 4px; height: 38px; }
  #tabs svg, #tabs .tip { display: none; }
  #tabs button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: opacity .25s; }
  #tabs button.on::before { opacity: 0; }
}
@media (max-width: 820px) {   /* доповнення на вузьких екранах: малі графіки й фільтр ховаємо, шторка виїжджає знизу */
  .wideonly, .pickfilter { display: none !important; }
  .trust { flex-wrap: wrap; gap: 10px 18px; }
  .scrollhint { bottom: calc(var(--bottom) + 6px); }
  .legend { flex-wrap: wrap; gap: 8px 14px; }
  .cmp { margin-bottom: 10px; gap: 8px; }
  #ui .slot.stepinfo.has { display: flex; }
  #st-info ul { margin: 8px 0 10px; font-size: 14px; gap: 5px; }
  #sheet form { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; padding: 20px; transform: translateY(calc(100% + 30px)); }
  #sheet.open form { transform: none; }
  #sheet h3 { font-size: 22px; }
}

@media (max-width: 820px) and (max-height: 700px) {   /* низькі телефони: другорядні картки ховаємо */
  #ui .p11 .slot.wide, #ui .p6 .slot.title, .p4 #g-service { display: none; }
}

/* вкладка зони скролу: тонка смужка показує, скільки зони пройдено */
#tabs button.zone.on::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 1px;
  background: linear-gradient(to right, #10151c calc(var(--p, 0) * 100%), rgba(16, 21, 28, .22) 0); }
