/* ====================================================================================================
 * Тема «Лайм» (бренд «Рахуйка») — за дизайн-системою wise з бібліотеки D:/design-systems (DESIGN.md у корені сайту).
 * Шавлієве тло сторінки, білі заокруглені картки (24 px) без тіней — глибину дає контраст поверхонь; дуже жирні заголовки
 * (Inter Tight 900 замість фірмового Wise Sans), текст Inter; єдиний акцент — салатовий, лише для головних дій.
 * Підпис теми: ціна — салатовим на майже чорному (картка «полярність навпаки»), як головний момент калькулятора.
 * Салатовий ніколи не йде текстом по світлому тлу (не читається) — для текстових акцентів глибокий зелений --acc-ink.
 * Підключається після site.css замість інших тем (налаштування site.theme = laim, перемикач — /admin/tema).
 * ==================================================================================================== */
:root {
  --pvc: #e8ebe6;          /* canvas-soft: шавлієве тло сторінки */
  --paper: #ffffff;        /* canvas: картки, шапка */
  --ink: #0e0f0c;          /* ink */
  --ink2: #454745;         /* body */
  --muted: #62645f;        /* mute, затемнений до AA-контрасту на шавлієвому тлі (у DESIGN.md #868685) */
  --line: #e8ebe6;         /* роздільники всередині білих карток */
  --line2: #c9cec5;        /* межі полів вибору на білому, лінії на шавлієвому тлі */
  --acc: #9fe870;          /* primary: кнопки, виділення */
  --acc-h: #cdffad;        /* primary-active */
  --acc-n: #c5edab;        /* primary-neutral */
  --acc-bg: #e2f6d5;       /* primary-pale: вибране, бейджі */
  --acc-ink: #163300;      /* ink-deep: посилання й текстові акценти */
  --soft2: #f3f5f1;        /* світліша шавлія — тло креслень у білих картках */
  --oak: #163300; --oak-d: #0e0f0c; --oak-bg: #e2f6d5;   /* сумісність з базовими стилями site.css */
  --green: #163300;
  --glass: #e2f6d5; --glass-2: #c5edab; --glass-ink: #163300; --sel: #e2f6d5;
  --ok: #054d28; --warn: #4a3b1c; --warn-bg: #fff3c4; --err: #d03238;
  --f: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fd: "Inter Tight", "Inter", system-ui, sans-serif;
  --r: 24px; --r-m: 16px; --r-s: 12px; --r-xs: 8px;
  color-scheme: light;
}
body { background: var(--pvc); color: var(--ink); font-family: var(--f); font-variation-settings: normal; font-feature-settings: "calt"; }
h1, h2, h3, .h3 { font-variation-settings: normal; color: var(--ink); text-transform: none; }
h1, h2 { font-family: var(--fd); font-weight: 900; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 3.9rem); line-height: .95; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1; }
h3, .h3 { font-family: var(--f); font-weight: 600; letter-spacing: -0.02em; }
a { color: var(--acc-ink); } a:hover { color: var(--ink); }
.lead { color: var(--ink2); font-size: 1.2rem; line-height: 1.5; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
::selection { background: var(--acc); color: var(--ink); }

/* кнопки: салатова «пігулка» — головна дія; шавлієва — другорядна; біла з контуром — третя */
.btn { background: var(--acc); border-color: var(--acc); color: var(--ink); border-radius: var(--r); font-weight: 600; letter-spacing: 0; text-transform: none; padding: 0 24px; }
.btn:hover { background: var(--acc-h); border-color: var(--acc-h); color: var(--ink); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--pvc); border-color: var(--ink); color: var(--ink); }
.btn.white { background: var(--pvc); color: var(--ink); border-color: var(--pvc); }
.btn.white:hover { background: #dde2da; border-color: #dde2da; color: var(--ink); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn.sm { padding: 0 16px; }
.fld > span { color: var(--ink2); font-weight: 600; font-size: .86rem; }
.fld input, .fld select, .fld textarea, .sec-row select, .sec-row input { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-s); }
.fld input:focus, .fld select:focus, .fld textarea:focus, .sec-row :is(select, input):focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--acc); }
.tgl input { accent-color: var(--acc-ink); }
.card { background: var(--paper); border: 0; border-radius: var(--r); padding: 24px; box-shadow: none; }
.seg { background: var(--paper); border: 0; border-radius: var(--r); padding: 4px; gap: 4px; }   /* стоїть на шавлієвому тлі сторінки */
.seg label + label { border-left: 0; }
.seg span { border-radius: var(--r); color: var(--ink); font-weight: 600; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.chip { border-color: var(--line2); color: var(--ink2); background: var(--paper); }
code { background: var(--acc-bg); }

/* смуга акції й шапка */
.promo-bar { background: var(--ink); color: var(--pvc); font-size: .86rem; text-align: center; padding: 8px 12px; line-height: 1.35; position: relative; z-index: 1; }
.promo-bar a { color: var(--acc); text-decoration: underline; font-weight: 600; margin-left: 6px; }
.hdr { background: var(--paper); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hdr-in { min-height: 68px; }
.logo { color: var(--ink); flex: 0 0 auto; gap: 10px; }
.logo .logo-mark { width: 36px; height: 36px; border-radius: 10px; }
.logo-word { font: 900 1.4rem/1 var(--fd); letter-spacing: -.02em; color: var(--ink); text-transform: lowercase; }
@media (max-width: 420px) { .logo-word { font-size: 1.12rem; } .logo .logo-mark { width: 30px; height: 30px; } }
.nav a { color: var(--ink); font-size: .9rem; font-weight: 600; border-radius: var(--r); border-bottom: 0; padding: 8px 12px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--pvc); }
.nav .nav-calc { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.nav .nav-calc:hover { background: var(--acc); box-shadow: inset 0 0 0 1.5px var(--acc); }
.tel { color: var(--ink); font-weight: 600; }
.reg-btn { color: var(--ink); border-color: var(--pvc); background: var(--pvc); border-radius: var(--r); font-weight: 600; }
.reg-btn:hover { border-color: var(--ink); }
.cart-btn { color: var(--ink); } .cart-btn b { background: var(--acc); color: var(--ink); font-weight: 700; }
.burger span { background: var(--ink); }
.hdr-cta { display: none; white-space: nowrap; }
@media (min-width: 760px) { .hdr-cta { display: inline-flex; min-height: 42px; padding: 0 18px; font-size: .88rem; } }
@media (min-width: 1100px) { .hdr-cta { display: none; } }        /* шапка 1240 px: з меню кнопка не вміщається — дзвінок через телефон і круглу кнопку */
@media (min-width: 1100px) and (max-width: 1279px) { .nav a { font-size: .84rem; padding-left: 7px; padding-right: 7px; } .reg-btn span { max-width: 80px; } }
@media (min-width: 1280px) { .nav a { padding-left: 10px; padding-right: 10px; } }
.nav-open .nav { background: var(--paper); border-bottom: 0; box-shadow: 0 18px 30px rgba(14, 15, 12, .12); gap: 2px; }
.nav-open .nav a { border-bottom: 0; border-radius: var(--r-m); }
.crumbs a, .crumbs ol { color: var(--muted); } .crumbs li + li::before { color: var(--muted); }

/* герой: великий заголовок ліворуч, картка-калькулятор праворуч (як «конвертер» у DESIGN.md) */
.hero { border-bottom: 0; background: none; }
.hero h1 { max-width: 15ch; font-size: clamp(2.2rem, 1.1rem + 3.3vw, 3.7rem); }
@media (max-width: 599px) { .hero h1 { font-size: 2.15rem; } }
.hero-facts { color: var(--ink2); }
.hero-facts li { padding-left: 22px; }
.hero-facts li::before, .ticklist li::before { width: 11px; height: 11px; top: .55em; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--acc); }
.hero-facts b { font-family: var(--fd); font-weight: 900; color: var(--ink); }
.board { background: var(--paper); border: 1px solid var(--ink); border-radius: var(--r); padding: 16px; box-shadow: none; }
@media (min-width: 640px) { .board { padding: 24px; } }
.calc-card { background: var(--paper); border: 0; border-radius: var(--r); box-shadow: none; padding: 16px; }
@media (min-width: 640px) { .calc-card { padding: 20px; } }
.board-draw, .calc-draw, .tpl-draw, .ci-img { background: var(--soft2); border: 0; border-radius: var(--r-m); }
.board-draw.is-real, .calc-draw.is-real { border: 0; border-radius: var(--r-m); }
.qc-opt span, .tpl-pick label span, .ser-pick label span, .glass-pick label span, .sw-pick label span { background: var(--paper); border: 1px solid var(--line2); border-radius: var(--r-m); }
.qc-opt input:checked + span, .tpl-pick input:checked + span, .ser-pick input:checked + span, .glass-pick input:checked + span { background: var(--acc-bg); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sw-pick label span { border-radius: var(--r); }
.sw-pick input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--acc-bg); }
.qc-opt i, .tpl-pick label span { color: var(--ink2); }
.qc-opt i { font-weight: 500; }
.view-tg { background: var(--pvc); border: 0; border-radius: var(--r); padding: 3px; }
.view-tg span { color: var(--ink); font-weight: 600; border-radius: var(--r); }
.view-tg input:checked + span { background: var(--ink); color: #fff; }

/* штамп швидкого розрахунку: рядки без рамок, ціна — салатовим на чорному */
.stamp { border: 0; border-collapse: separate; border-spacing: 0; }
.stamp th, .stamp td { border: 0; border-bottom: 1px solid var(--line); padding: 9px 12px; }
.stamp th { background: none; color: var(--muted); font-weight: 500; }
.stamp-price th, .stamp-price td { background: var(--ink); border-bottom: 0; }
.stamp-price th { color: #c9ccc6; border-radius: var(--r-m) 0 0 var(--r-m); }
.stamp-price td { border-radius: 0 var(--r-m) var(--r-m) 0; padding: 12px; box-shadow: -2px 0 0 var(--ink); }   /* тінь закриває шов на дробовій межі комірок */
.stamp-price output { font-family: var(--fd); font-weight: 900; color: var(--acc); letter-spacing: -.01em; }
.stamp-price td small { color: #c9ccc6; }

/* калькулятор */
.step { border-top: 1px solid var(--line2); }
.step legend { font-family: var(--fd); font-weight: 900; font-size: 1.25rem; letter-spacing: -.01em; }
.step legend span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--acc); font: 900 .95rem/1 var(--fd); }
.sec-row { border-bottom-color: var(--line2); }
.stepper { background: var(--paper); border: 1px solid var(--ink); border-radius: var(--r); }
.stepper button { background: var(--paper); color: var(--ink); }
.stepper button:hover { background: var(--pvc); }
.calc-sum { background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px 18px; align-items: center; }
.calc-sum > div { border: 0; padding: 0; display: flex; flex-direction: column; }
.calc-sum .muted { color: #c9ccc6; }
.calc-sum .big-price { font-family: var(--fd); font-weight: 900; color: var(--acc); font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem); letter-spacing: -.01em; line-height: 1.05; margin: 2px 0; }
.mont-est { color: var(--ink2); }
.mbar { background: var(--ink); color: #fff; border-top: 0; border-radius: var(--r) var(--r) 0 0; }
.mbar .muted { color: #c9ccc6; }
.mbar [data-price-m] { font-family: var(--fd); font-weight: 900; color: var(--acc); letter-spacing: -.01em; }
.specs { border-top: 1px solid var(--line); }
.specs summary { font-weight: 600; }
.specs summary::first-letter { text-transform: uppercase; }
.warn li { background: var(--warn-bg); color: var(--warn); border-left: 4px solid #b86700; border-radius: var(--r-xs); }

/* каталог і сітки: окремі білі картки на шавлієвому тлі замість «аркуша з клітинками» */
.catalog, .tpl-grid { background: none; border: 0; gap: 12px; }
.cat-cell, .tpl { background: var(--paper); border: 0; border-radius: var(--r); transition: box-shadow .15s; }
.cat-cell { padding: 16px 16px 18px; }
.cat-cell:hover, a.tpl:hover { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.cat-cell b, .tpl-b b { font-weight: 600; }
.cat-cell .price, .tpl-b .price, .ser .price { font-family: var(--fd); font-weight: 900; font-size: 1.2rem; letter-spacing: -.01em; }
.ser { border: 0; border-radius: var(--r); padding: 24px; }
a.ser:hover { border-color: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.tbl-wrap { background: var(--paper); border: 0; border-radius: var(--r-m); }
.tbl thead th { background: var(--pvc); color: var(--ink2); border-bottom: 0; font-weight: 600; }
.tbl th, .tbl td { border-bottom-color: var(--line); }
.tbl tbody tr:hover td { background: #f7f8f6; }
.tbl.kv { background: var(--paper); border: 0; border-radius: var(--r-m); }
.tbl td b, .price { font-variant-numeric: tabular-nums; }
.facts { background: var(--paper); border: 0; border-radius: var(--r-m); overflow: hidden; }
.facts div { border-right: 1px solid var(--line); }
.facts b { font-family: var(--fd); font-weight: 900; }
@media (max-width: 560px) { .facts div { border-bottom: 1px solid var(--line); } }
.prof { background: var(--paper); border-top: 0; border-radius: var(--r); padding: 4px 20px; }
.prof li { border-bottom-color: var(--line); } .prof li:last-child { border-bottom: 0; }
.prof-name b { font-weight: 700; }
.prof-name:hover b { color: var(--acc-ink); }
.prof .price { font-family: var(--fd); font-weight: 900; }
.cut { border-color: var(--ink); background: var(--paper); } .cut i { border-right-color: var(--ink2); } .cut i:nth-child(even) { background: var(--acc-bg); }
.faq { background: var(--paper); border-top: 0; border-radius: var(--r); padding: 4px 24px; }
.faq details { border-bottom-color: var(--line); } .faq details:last-child { border-bottom: 0; }
.faq summary::after { border-color: var(--ink); }
.ticklist li { padding-left: 22px; }
.local { border-left: 4px solid var(--acc-ink); }
.reg-cols li, .obl { border-bottom-color: var(--line2); }
.obl-grid { border-top-color: var(--line2); }
.reg-cols a, .obl h2 a, .prof-name { color: var(--ink); }
.reg-cols a:hover, .obl h2 a:hover { color: var(--acc-ink); }
.sec-h a { font-weight: 600; }
.promo { background: var(--paper); border-top: 0; border-radius: var(--r); padding: 24px; color: var(--ink); transition: box-shadow .15s; }
.promo b { font-family: var(--fd); font-weight: 900; font-size: 1.6rem; letter-spacing: -.01em; }
.promo span { color: var(--ink2); } .promo .lnk { color: var(--acc-ink); text-decoration: underline; text-underline-offset: 3px; }
.promo:hover { box-shadow: inset 0 0 0 2px var(--ink); } .promo:hover b { color: var(--ink); }
.trust li { background: var(--acc-bg); border: 0; color: var(--ok); border-radius: 999px; padding: 6px 14px; font-size: .86rem; font-weight: 600; }

/* темні смуги — «полярність навпаки»: майже чорне тло, салатові заголовки */
.band { background: var(--ink); color: #c9ccc6; border: 0; }
.steps h2 { color: var(--acc); }
.steps li { border-top-color: rgba(255, 255, 255, .16); }
.steps li::before { color: var(--acc); font-family: var(--fd); font-weight: 900; font-size: 2.6rem; }
.steps li b { color: #fff; } .steps li span { color: #c9ccc6; }
.ai-band { background: var(--acc-bg); color: var(--ink); border: 0; }
.ai b { font-family: var(--fd); font-weight: 900; font-size: 1.45rem; letter-spacing: -.01em; }
.ai p { color: var(--ink2); }
.ai-band .btn.ghost-light { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.ai-band .btn.ghost-light:hover { background: var(--pvc); }
.sw { background: var(--paper); border-color: var(--line2); }
.sheet { background: rgba(14, 15, 12, .5); }
.sheet-box { background: var(--paper); color: var(--ink); border-radius: var(--r) var(--r) 0 0; }
@media (min-width: 720px) { .sheet-box { border-radius: var(--r); } }
.reg-list a { color: var(--ink); border-bottom-color: var(--line); } .reg-list a:hover, .reg-list a.on { color: var(--acc-ink); }
.x { color: var(--ink); border-color: var(--line2); background: var(--paper); border-radius: 50%; }
.x:hover { background: var(--pvc); }
.ftr { background: var(--ink); color: #c9ccc6; }
.ftr a { color: #fff; } .ftr .muted, .ftr-bot { color: #a9aca6; } .ftr-h { color: #fff; }
.ftr-brand { font-family: var(--fd); font-weight: 900; font-size: 1.5rem; color: var(--acc); text-transform: lowercase; letter-spacing: -.02em; }

/* профілі з фото, склопакети, фурнітура */
.pf-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r); margin: 6px 0 22px; background: var(--paper); }
.pf-tabs button { background: transparent; color: var(--ink); border: 0; border-radius: var(--r); padding: 10px 26px; font: 600 .95rem var(--f); cursor: pointer; }
.pf-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.pf-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pf-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--paper); border: 0; border-radius: var(--r); }
.pf-card img { height: 210px; width: auto; max-width: 100%; object-fit: contain; align-self: center; }
.pf-card .brand { color: var(--acc-ink); font-size: .8rem; font-weight: 600; }
.pf-card b { font-size: 1.1rem; }
.pf-card h3 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.pf-card .price { color: var(--ink); font-family: var(--fd); font-weight: 900; font-size: 1.15rem; margin-top: auto; }
.pf-card .btn { width: 100%; } .pf-card .btn + .btn { margin-top: 0; }
.pf-card .ph { height: 210px; display: grid; place-items: center; border-radius: var(--r-m); background: var(--soft2); color: var(--ink2); }
.pf-card .ph svg { height: 180px; width: auto; }
.dots { display: flex; gap: 6px; align-items: center; } .dots i { width: 13px; height: 13px; border: 1.5px solid var(--ink); border-radius: 50%; display: block; } .dots i.on { background: var(--acc); }
.dots-l { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.heat { display: grid; gap: 4px; }
.gl-grid .pf-card img { height: 180px; } .gl-grid .pf-card p { margin: 0; color: var(--ink2); }
.hw-row { display: grid; gap: 22px; align-items: center; } @media (min-width: 900px) { .hw-row { grid-template-columns: 1fr 1.2fr; } }
.hw-list details { border-bottom: 1px solid var(--line2); padding: 12px 0; }
.hw-list summary { cursor: pointer; font-size: 1.08rem; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.hw-list summary::-webkit-details-marker { display: none; }
.hw-list summary .price { color: var(--acc-ink); font-size: .92rem; font-weight: 700; white-space: nowrap; }
.hw-list details[open] summary { color: var(--acc-ink); }
.hw-list p { color: var(--ink2); margin: 8px 0 0; }
.hw-img { background: var(--paper); border: 0; border-radius: var(--r); padding: 16px; }
.hw-img img { width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.prof-hero { display: grid; gap: 20px; align-items: center; } @media (min-width: 860px) { .prof-hero { grid-template-columns: 1.3fr .7fr; } }
.prof-hero img { max-height: 320px; width: auto; justify-self: center; }

/* дзвінок */
.fab-call { position: fixed; right: 16px; bottom: 90px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: var(--acc); color: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(14, 15, 12, .22); }
.fab-call:hover { background: var(--acc-h); color: var(--ink); }
@media (min-width: 980px) { .fab-call { bottom: 24px; } }
.is-calc .fab-call { bottom: 96px; }
dialog.cb { border: 0; padding: 0; background: var(--paper); color: var(--ink); border-radius: var(--r); width: min(420px, 92vw); box-shadow: 0 24px 60px rgba(14, 15, 12, .25); }
dialog.cb::backdrop { background: rgba(14, 15, 12, .5); }
dialog.cb form { padding: 24px; }

/* 3D-вигляд (win3d.js) */
.board-draw.is-3d, .calc-draw.is-3d { position: relative; padding: 0; overflow: hidden; background: #d9d4cc; aspect-ratio: 4 / 3; min-height: 0; display: block; }
.calc-draw.is-3d { aspect-ratio: 5 / 4; }
.is-3d canvas.w3d { display: block; width: 100%; height: 100%; cursor: grab; }
.is-3d canvas.w3d:active { cursor: grabbing; }
.w3d-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(14, 15, 12, .8); color: #fff; font-size: .78rem; padding: 5px 12px; border-radius: 999px; pointer-events: none; transition: opacity .4s; white-space: nowrap; }
.w3d-hint.off { opacity: 0; }
.is-3d.busy canvas.w3d { opacity: .7; }
.w3d-btn { position: absolute; right: 10px; top: 10px; background: var(--paper); color: var(--ink); border: 0; border-radius: 999px; font: 600 .8rem var(--f); padding: 8px 14px; cursor: pointer; }
.w3d-btn:hover { background: var(--acc); }
.w3d-save { right: auto; left: 10px; } .w3d-side { top: 52px; }

/* прайс-листи, популярні розміри */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mx th small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.mx td a { color: var(--ink); text-decoration: none; display: block; }
.mx td a:hover { color: var(--acc-ink); text-decoration: underline; }
.mx-wrap { max-height: 78vh; overflow: auto; }
.mx-grid { font-variant-numeric: tabular-nums; font-size: .86rem; }
.mx-grid th, .mx-grid td { padding: 7px 9px; text-align: right; white-space: nowrap; }
.mx-grid thead th { position: sticky; top: 0; z-index: 2; background: var(--pvc); }
.mx-grid tbody th { position: sticky; left: 0; z-index: 1; background: #f3f5f1; }
.mx-grid thead th:first-child { left: 0; z-index: 3; }
.mx-grid td.pg { background: var(--acc-bg); }
.mx-grid td.pg a { color: var(--ink); font-weight: 700; }
.chips-l { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.chip-l { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; color: var(--ink); background: var(--paper); text-decoration: none; font-size: .9rem; font-weight: 500; }
.chip-l:hover { background: var(--acc-bg); color: var(--ink); }
.rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.rooms a { display: grid; gap: 2px; padding: 16px 18px; border: 0; border-radius: var(--r); color: var(--ink); text-decoration: none; background: var(--paper); }
.rooms a:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.rooms span { color: var(--muted); font-size: .82rem; } .rooms i { font-style: normal; color: var(--ink); font-family: var(--fd); font-weight: 900; }
.size-views { display: grid; gap: 12px; grid-template-columns: 1.3fr 1fr; align-items: center; }
.size-views .board-draw { min-height: 0; } .size-views svg { width: 100%; height: auto; }
.size-views .tpl-draw { background: var(--soft2); border-radius: var(--r-m); padding: 8px; }
@media (max-width: 640px) { .size-views { grid-template-columns: 1fr; } }

/* замір, відгуки, статус, друк */
.meas { max-width: 760px; display: grid; gap: 14px; }
.meas-out { border-top: 1px solid var(--line2); padding-top: 12px; }
.meas-out b { color: var(--ink); font-family: var(--fd); font-weight: 900; font-size: 1.35rem; background: linear-gradient(transparent 60%, var(--acc) 60%); }
.meas-row { display: grid; gap: 24px; align-items: center; margin: 10px 0 18px; } @media (min-width: 900px) { .meas-row { grid-template-columns: 1.2fr 1fr; } }
.meas-fig { margin: 0; color: var(--ink); } .meas-fig svg { width: 100%; max-width: 420px; height: auto; display: block; }
.rv-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rv { border: 0; border-radius: var(--r); padding: 24px; background: var(--paper); display: grid; gap: 8px; }
.rv-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .rv p { margin: 0; color: var(--ink2); }
.rv-stars { display: flex; gap: 3px; } .rv-stars i { width: 14px; height: 14px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: var(--line2); }
.rv-stars i.on { background: #ffd11a; }
.rv-reply { border-left: 3px solid var(--acc-ink); padding-left: 10px; color: var(--ink2); }
.rv-rate { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; } .rv-rate legend { width: 100%; margin-bottom: 6px; }
.rv-rate label span { display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; border: 1px solid var(--ink); border-radius: var(--r); cursor: pointer; background: var(--paper); }
.rv-rate input { position: absolute; opacity: 0; } .rv-rate input:checked + span { background: var(--acc); border-color: var(--ink); color: var(--ink); font-weight: 700; }
.rv-rate input:focus-visible + span { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.st-steps { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: st; }
.st-steps li { counter-increment: st; text-align: center; font-size: .82rem; color: var(--muted); padding-top: 34px; position: relative; }
.st-steps li::before { content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; font-weight: 700; background: var(--paper); }
.st-steps li.on { color: var(--ink); } .st-steps li.on::before { background: var(--acc); border-color: var(--ink); color: var(--ink); }
.st-res.cancel .st-steps { opacity: .4; }
.po { max-width: 980px; } .po-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.po-brand { font-family: var(--fd); font-weight: 900; font-size: 1.3rem; text-transform: lowercase; } .po-meta { text-align: right; }
.po-views { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: center; margin: 14px 0; }
.po-views svg { width: 100%; height: auto; max-height: 420px; } .po-draw { background: #fff; border-radius: var(--r-m); padding: 6px; }
.po-sum { font-size: 1.15rem; display: grid; gap: 4px; margin: 14px 0; } .po-sum b { font-family: var(--fd); font-weight: 900; font-size: 1.6rem; }
@media print {
  body { background: #fff !important; }
  .promo-bar, .hdr, .crumbs, .ftr, .fab-call, .mbar, .po-act, dialog, .skip, .tema-bar { display: none !important; }
}

/* поділитися, монтаж, повзунки, типи стулок */
.share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.share > span { width: 100%; font-size: .82rem; color: var(--muted); }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--pvc); color: var(--ink); font: 600 .82rem var(--f); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--acc-bg); color: var(--ink); }
.mont-est { font-size: .86rem; margin-top: 6px; }
.dims { align-items: end; }
.dims input[type=range] { width: 100%; accent-color: var(--ink); margin: 0; height: 28px; }
.sec-row b small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.sec-types { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-types label { cursor: pointer; position: relative; }
.sec-types input, .sec-row .sec-types input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; pointer-events: none; }
.sec-row > input { width: 110px; }
.sec-types label > span { display: grid; place-items: center; width: 44px; height: 50px; border: 1px solid var(--line2); border-radius: var(--r-s); color: var(--ink2); background: var(--paper); }
.sec-types svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sec-types input:checked + span { border-color: var(--ink); background: var(--acc-bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sec-types input:focus-visible + span { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.sec-row { grid-template-columns: 110px 1fr auto; align-items: center; }
@media (max-width: 520px) { .sec-row { grid-template-columns: 1fr; } }
.calc > * { min-width: 0; }
.seg { flex-wrap: wrap; max-width: 100%; } .seg label { flex: 1 1 auto; }
@media (max-width: 520px) { .seg span { padding-left: 10px; padding-right: 10px; font-size: .86rem; } }
.glass-pick, .glass-pick label, .glass-pick label span { min-width: 0; }
.glass-pick label span { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 520px) { .glass-pick label span { grid-template-columns: 1fr; } .glass-pick em { white-space: normal; overflow-wrap: anywhere; } }
.trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* галерея HPL-панелей МАСКО */
.macko { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.mk-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.mk-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.mk-tabs button { flex: none; font: inherit; font-size: .86rem; font-weight: 600; color: var(--ink); background: var(--pvc); border: 0; border-radius: 999px; padding: 6px 14px; min-height: 38px; cursor: pointer; }
.mk-tabs button small { margin-left: 6px; color: var(--muted); font-weight: 500; }
.mk-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.mk-tabs button[aria-selected="true"] small { color: #c9ccc6; }
.mk-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; margin: 8px 0 14px; max-height: 372px; overflow-y: auto; }
.mk-models label, .mk-sw label { position: relative; cursor: pointer; }
.mk-models input, .mk-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mk-models label > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border: 1px solid var(--line2); border-radius: var(--r-s); background: var(--paper); }
.mk-models svg { display: block; width: 100%; max-width: 52px; height: auto; aspect-ratio: 140 / 300; }
.mk-models b { font-size: .78rem; font-weight: 600; color: var(--ink2); }
.mk-models input:checked + span { border-color: var(--ink); background: var(--acc-bg); box-shadow: inset 0 0 0 1px var(--ink); }
.mk-models input:focus-visible + span, .mk-sw input:focus-visible + span { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.mk-row { margin: 6px 0 10px; } .mk-row > span { display: block; margin-bottom: 6px; font-size: .86rem; color: var(--muted); }
.mk-sw { display: flex; flex-wrap: wrap; gap: 4px; }
.mk-sw label > span { display: block; padding: 2px; border: 2px solid transparent; border-radius: 50%; }
.mk-sw i { display: block; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.mk-sw.mk-gl i { border-radius: 8px; } .mk-sw.mk-gl label > span { border-radius: 11px; }
.mk-sw em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mk-sw input:checked + span { border-color: var(--ink); }
.mk-own { margin-top: 6px; } .mk-own summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--acc-ink); } .mk-own .fld { margin-top: 8px; }

/* населені пункти */
.reg-find { margin: 10px 0 6px; }
.place-res { list-style: none; margin: 0 0 12px; padding: 0; }
.place-res li + li { border-top: 1px solid var(--line); }
.place-res button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--ink); font: inherit; padding: 10px 8px; cursor: pointer; border-radius: var(--r-s); }
.place-res button:hover, .place-res button:focus-visible { background: var(--pvc); }
.place-res small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.place-find { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 16px; }
.place-find .fld { flex: 1 1 280px; margin: 0; }
.dir-d { margin-bottom: 26px; } .dir-d h2 { font-size: 1.15rem; margin-bottom: 8px; }
.dir-h { padding: 10px 0; border-top: 1px solid var(--line2); }
.dir-hn { font-weight: 700; }
.dir-h p { margin: 4px 0 0; color: var(--ink2); line-height: 1.6; }
.dir-h span.hit { background: var(--acc); color: var(--ink); border-radius: 4px; padding: 0 3px; }
.place-list { columns: 3 220px; column-gap: 28px; list-style: none; padding: 0; margin: 0; }
.place-list li { break-inside: avoid; padding: 4px 0; }
.place-list li:target { background: var(--acc); border-radius: 6px; padding-left: 6px; }
.place-list a { color: var(--muted); margin-left: 6px; }
.steps-list { padding-left: 1.2em; line-height: 1.7; }
.local-txt { line-height: 1.7; }

/* примірка на фото */
.tryon-btn { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; margin: 12px 0 4px; }
dialog.tryon { width: min(1100px, 100vw - 24px); max-height: calc(100dvh - 24px); padding: 20px; background: var(--paper); color: var(--ink); border: 0; border-radius: var(--r); overflow: auto; box-shadow: 0 24px 60px rgba(14, 15, 12, .25); }
dialog.tryon::backdrop { background: rgba(14, 15, 12, .6); }
.tryon-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .tryon-h b { font-family: var(--fd); font-weight: 900; font-size: 1.2rem; }
.tryon-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.tryon-bar .btn { cursor: pointer; } .tryon-bar .btn[disabled] { opacity: .45; cursor: default; }
.tryon-stage { position: relative; width: fit-content; min-width: min(100%, 320px); max-width: 100%; min-height: 240px; margin: 0 auto; background: var(--soft2); border-radius: var(--r-m); overflow: hidden; touch-action: none; }
.tryon-stage > .tryon-photo { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.tryon-empty { margin: 0; padding: 90px 16px; color: var(--muted); text-align: center; }
.tryon-it { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.tryon-win { position: absolute; left: 0; top: 0; max-width: none; max-height: none; transform-origin: 0 0; cursor: move; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); user-select: none; -webkit-user-drag: none; }
.tryon-hd { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--acc); border: 2px solid var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); cursor: grab; touch-action: none; }
.tryon-it:not(.on) .tryon-hd { background: rgba(255, 255, 255, .8); width: 18px; height: 18px; margin: -9px 0 0 -9px; }

/* індекс цін, кошторис, «що можна зробити» */
.tbl.idx td small { margin-left: 4px; font-size: .75rem; }
.tbl small.up { color: var(--err); } .tbl small.down { color: var(--ok); }
.works { margin: 10px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.works > b { display: block; margin-bottom: 6px; font-size: .92rem; }
.row-b.wk { font-size: .9rem; cursor: pointer; gap: 8px; } .row-b.wk input { accent-color: var(--acc-ink); margin-right: 4px; }
.row-b.big { border-top: 1px solid var(--line); } .row-b.big b { font-family: var(--fd); font-weight: 900; font-size: 1.5rem; letter-spacing: -.01em; }
.ci { border-bottom-color: var(--line2); } .cart-list { border-top-color: var(--line2); }
.ci-bot b { font-family: var(--fd); font-weight: 900; }
.can-list { padding-left: 1.1em; line-height: 1.75; max-width: 75ch; } .can-list a { font-weight: 600; }
#rozmiry, #profili, #sklopakety, #furnitura, .dir-d { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* бренд-кіт і студія */
.bk-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.bk-marks { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.bk-marks label { cursor: pointer; }
.bk-marks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-marks span { display: block; padding: 3px; border: 2px solid transparent; border-radius: 14px; }
.bk-marks svg { display: block; width: 48px; height: 48px; }
.bk-marks input:checked + span { border-color: var(--ink); }
.bk-marks input:focus-visible + span { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 26px; }
.bk-card { margin: 0; border: 0; border-radius: var(--r); padding: 14px; background: var(--paper); }
.bk-card canvas { display: block; width: 100%; height: auto; background: repeating-conic-gradient(#eef0ec 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: var(--r-xs); }
.bk-card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: .86rem; }
.bk-card figcaption span { color: var(--muted); }
.bk-card .btn { margin-left: auto; padding: 6px 14px; min-height: 36px; font-size: .8rem; }
.studio-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 12px 14px; border: 0; border-radius: var(--r-m); background: var(--pvc); }
.studio-bar b { display: inline-flex; align-items: center; gap: 8px; }
.studio-bar b i { width: 10px; height: 10px; border-radius: 50%; background: var(--err); }
.studio-bar input[type=text] { flex: 1 1 220px; min-height: 40px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-s); padding: 6px 12px; font: inherit; }
.studio-bar .tgl { margin: 0; }
