/* Impala - cenová kalkulačka. Beží v Shadow DOM, štýly témy sem nedosiahnu.
   Dedené vlastnosti (font, farba, riadkovanie) preto prepisujeme explicitne.

   v2.0 - sprievodca: otvorený je len aktuálny krok, hotové kroky sú zbalené do riadku.
   Identita webu: Montserrat na nadpisy, Open Sans na text, tyrkysová #2AA9EB.
   Tyrkysová je vyhradená pre akciu (tlačidlá, aktuálny krok, výber), bridlicová
   #22303C nesie hierarchiu (hotové kroky, cena, zvolené filtre). Kameň je produkt,
   preto sa diely na tabuli kreslia z fotky vybraného dekoru. */
:host{
  display:block;
  font-family:"Open Sans",Arial,system-ui,sans-serif;
  font-size:15px; line-height:1.55; font-weight:400; font-style:normal;
  letter-spacing:normal; word-spacing:normal; text-transform:none; text-align:left;
  text-indent:0; text-shadow:none; white-space:normal; direction:ltr;
  list-style:none; cursor:auto; visibility:visible;
  -webkit-font-smoothing:antialiased; -webkit-text-size-adjust:100%;

  --ink:#22303C; --ink-2:#5B6B79; --ink-3:#8A98A5;
  --line:#DCE2E8; --line-2:#C9D2DA;
  --surf:#F3F5F7; --surf-2:#EAEEF2;
  --acc:#2AA9EB; --acc-hover:#1B8FCB; --acc-d:#0F6E9E; --acc-s:#E8F5FC; --acc-l:#A8DBF5;
  --on-ink-2:#B8C4CE; --on-ink-acc:#7FCBF3;
  --warn:#8A4B08; --warn-s:#FFF7E8; --warn-l:#F5D9A8;
  --head:Montserrat,"Open Sans",Arial,sans-serif;
  --r:12px;
  color:var(--ink); background:#fff;
}
*{box-sizing:border-box}
h1,h2,h3,h4,p{margin:0}
h1,h2,h3,h4{font-family:var(--head); text-wrap:balance; color:var(--ink)}
button,input,select,textarea{font:inherit; color:inherit; letter-spacing:normal}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--acc); outline-offset:2px}
[hidden]{display:none !important}
.hidden{display:none !important}
.num{font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){*{transition:none !important; animation:none !important}}

/* ---------- hlavička ---------- */
.top{padding:4px 0 26px; max-width:68ch}
h1{font-size:clamp(24px,5.4vw,32px); font-weight:600; line-height:1.2; letter-spacing:-.015em}
.top-note{margin-top:8px; font-size:15px; color:var(--ink-2)}
.linkbtn{background:none; border:0; padding:0; color:var(--acc-d); font-weight:600; font-size:14px;
  text-decoration:underline; text-underline-offset:3px; min-height:44px}
.linkbtn.admin{margin-top:6px; font-weight:400; font-size:13px}

.cols{display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:48px; align-items:start}
@media (max-width:980px){ .cols{grid-template-columns:minmax(0,1fr); gap:28px; padding-bottom:110px} }

/* ---------- kroky ---------- */
.steps{border-top:1px solid var(--line)}
.step{border-bottom:1px solid var(--line); scroll-margin-top:72px}
.step-hd{margin:0; font-size:inherit; font-weight:inherit}
.step-tg{display:flex; align-items:center; gap:14px; width:100%; min-height:68px; padding:14px 0;
  background:none; border:0; text-align:left; color:inherit}
.step-tg:disabled{cursor:default}
.step-no{flex:none; width:30px; height:30px; border-radius:50%; display:grid; place-items:center;
  font-family:var(--head); font-weight:600; font-size:13px; border:1.5px solid var(--line-2); color:var(--ink-2);
  font-variant-numeric:tabular-nums}
.step-tt{flex:1; min-width:0; display:flex; flex-direction:column; gap:1px}
.step-t{font-family:var(--head); font-weight:600; font-size:16px; line-height:1.3; letter-spacing:-.005em}
.step-sum{font-size:13.5px; color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.step-sum:empty{display:none}
.step-edit{flex:none; font-size:14px; font-weight:600; color:var(--acc-d); display:none}

.step[data-state="done"] .step-no{background:var(--ink); border-color:var(--ink); color:#fff}
.step[data-state="done"] .step-edit{display:block}
.step[data-state="done"] .step-tg:hover .step-edit{text-decoration:underline; text-underline-offset:3px}
.step[data-state="open"] .step-no{background:var(--acc); border-color:var(--acc); color:#fff}
.step[data-state="open"] .step-t{font-size:clamp(19px,4.6vw,22px)}
.step[data-state="open"] .step-tg{padding-top:20px}
.step[data-state="todo"] .step-t{color:var(--ink-2)}
.step[data-state="locked"] .step-no{border-style:dashed; color:var(--ink-3)}
.step[data-state="locked"] .step-t{color:var(--ink-3)}
.step[data-state="locked"] .step-sum{color:var(--ink-3)}

.step-bd{padding:2px 0 30px 44px}
@media (max-width:640px){ .step-bd{padding-left:0} }
.step-ft{margin-top:26px}
.step-ft .btn{width:auto; min-width:200px; padding:0 30px}
@media (max-width:980px){ .step-ft{display:none} }

.lab{display:block; font-size:14px; font-weight:600; color:var(--ink); margin:22px 0 9px}
.step-bd > .lab:first-child, .blk > .lab:first-child, .panelbox > .lab:first-child{margin-top:0}
.lead{font-size:15px; color:var(--ink-2); margin:0 0 18px; max-width:62ch}
.lead b{color:var(--ink)}
.fnote{font-size:13px; color:var(--ink-2); margin-top:10px; line-height:1.5; max-width:64ch}
.fnote:empty{display:none}
.blk{margin-top:30px}

/* ---------- polia ---------- */
.field{display:flex; flex-direction:column; gap:6px}
.field .lab{margin:0}
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea{
  width:100%; height:48px; background:#fff; border:1px solid var(--line-2); border-radius:10px;
  padding:0 14px; font-size:16px; color:var(--ink); transition:border-color .14s, box-shadow .14s;
  -webkit-appearance:none; appearance:none}
textarea{height:auto; padding:12px 14px; resize:vertical; line-height:1.45}
select{padding-right:38px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B6B79' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center}
input::placeholder, textarea::placeholder{color:var(--ink-3)}
input:focus, select:focus, textarea:focus{border-color:var(--acc); box-shadow:0 0 0 3px var(--acc-s); outline:none}
.uw{position:relative; display:block}
.uw input{padding-right:42px}
.uw .u{position:absolute; right:13px; top:50%; transform:translateY(-50%); font-size:14px; color:var(--ink-3); pointer-events:none}
.grid2{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px}
.grid3{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px}
.leadgrid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px}
@media (max-width:640px){ .grid2, .grid3, .leadgrid{grid-template-columns:minmax(0,1fr)} }

.check{display:flex; align-items:flex-start; gap:12px; font-size:15px; cursor:pointer; padding:11px 0; min-height:44px}
.check input{flex:none; width:20px; height:20px; margin:1px 0 0; accent-color:var(--acc)}
.check a{color:var(--acc-d); font-weight:600}
.hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}

/* ---------- tlačidlá ---------- */
.btn{display:flex; align-items:center; justify-content:center; width:100%; min-height:50px; padding:0 20px;
  background:var(--acc); color:#fff; border:0; border-radius:12px; font-size:16px; font-weight:600;
  transition:background .14s}
.btn:hover{background:var(--acc-hover)}
.btn:disabled{opacity:.55; cursor:default}
.btn.ghost{background:#fff; color:var(--ink); border:1px solid var(--line-2); font-weight:600}
.btn.ghost:hover{border-color:var(--ink-3)}
.btn.light{background:#fff; color:var(--ink)}
.btn.light:hover{background:var(--acc-s)}
#gateSend, #sendLead{margin-top:16px}
@media (min-width:981px){ #gateSend, #sendLead{width:auto; min-width:240px} }

/* ---------- čipy a dlaždice ---------- */
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{display:inline-flex; align-items:center; min-height:44px; padding:0 16px; background:#fff;
  border:1px solid var(--line); border-radius:999px; font-size:14px; color:var(--ink); transition:border-color .14s, background .14s}
.chip:hover{border-color:var(--ink-3)}
.chip[aria-pressed="true"]{background:var(--ink); border-color:var(--ink); color:#fff}
.chip small{margin-left:7px; font-size:12px; opacity:.65; font-variant-numeric:tabular-nums}
/* „Všetky“ je predvolený stav, nemá kričať */
.filterrow .chips > .chip:first-child[aria-pressed="true"]{background:var(--surf); border-color:var(--surf); color:var(--ink); font-weight:600}
.akc-chip{border-color:var(--acc); color:var(--acc-d); font-weight:600}
.akc-chip[aria-pressed="true"]{background:var(--acc); border-color:var(--acc); color:#fff}

.chips.seg{display:flex; flex-wrap:nowrap; background:var(--surf); border-radius:12px; padding:4px; gap:4px; max-width:460px}
.chips.seg .chip{flex:1; justify-content:center; border:0; background:none; border-radius:9px; color:var(--ink-2); min-height:42px; padding:0 10px}
.chips.seg .chip[aria-pressed="true"]{background:#fff; color:var(--ink); font-weight:600; box-shadow:0 1px 3px rgba(34,48,60,.2)}

.tiles{display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.tiles.t2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tiles.t3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:640px){ .tiles.t3.icotiles{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:420px){ .tiles.t2:not(.icotiles){grid-template-columns:minmax(0,1fr)} #typTiles{grid-template-columns:repeat(2,minmax(0,1fr))} }
.tile{display:flex; flex-direction:column; justify-content:center; gap:2px; min-height:58px; padding:11px 13px;
  text-align:left; background:#fff; border:1px solid var(--line); border-radius:var(--r); color:var(--ink);
  transition:border-color .14s, background .14s}
.tile:hover{border-color:var(--acc-l)}
.tile[aria-pressed="true"]{border-color:var(--acc); background:var(--acc-s); box-shadow:inset 0 0 0 1px var(--acc)}
.tile b{font-family:var(--head); font-weight:600; font-size:15px; line-height:1.3}
.tile .sub{font-size:12.5px; color:var(--ink-2); line-height:1.35}
.tile .sub:empty{display:none}
.tile:disabled{opacity:.4; cursor:not-allowed}
.icotiles .tile{justify-content:flex-start}

/* nákresy (modré) */
.tile .ico{display:block; height:40px; margin:0 0 6px}
.tile .ico svg{height:40px; width:auto; max-width:100%; display:block}
.ico svg .st, .cico svg .st{fill:#E3F3FC; stroke:#7CC6EE; stroke-width:1.4; stroke-linejoin:round}
.ico svg .fillst{fill:#CDEAF9}
.ico svg .acc, .cico svg .acc{fill:none; stroke:var(--acc); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.ico svg .bold, .cico svg .bold{stroke-width:2.6}
.ico svg .dim{stroke:var(--line); stroke-dasharray:2 3}
.ico svg .lbl{font:9px "Open Sans",sans-serif; fill:var(--acc-d)}
.ico svg .dash, .cico svg .dash{stroke-dasharray:3 2; stroke-width:1.4}
.ico svg .thin{stroke-width:1}
.tile[aria-pressed="true"] .ico svg .st{fill:#fff}

/* ---------- dekor ---------- */
.picked{display:flex; gap:14px; align-items:center; background:var(--surf); border-radius:14px; padding:12px; margin-bottom:18px}
.picked img{width:76px; height:76px; border-radius:10px; object-fit:cover; flex:none}
.picked .t{display:flex; flex-direction:column; gap:2px; min-width:0; flex:1}
.picked .t b{font-family:var(--head); font-weight:600; font-size:17px; line-height:1.25}
.picked .t .m1{font-size:13px; color:var(--ink-2)}
.picked .t .m2{font-size:12.5px; color:var(--ink-2)}
.picked .t .m3{align-self:flex-start; margin-top:5px; font-size:12px; font-weight:600; color:var(--acc-d); background:#fff; padding:4px 10px; border-radius:8px; line-height:1.4}
.picked .zmen{flex:none; font-size:13px; align-self:flex-start}
.picked.empty{display:block; color:var(--ink-2); font-size:14px; padding:16px}
@media (max-width:480px){ .picked{flex-wrap:wrap; row-gap:0} .picked .zmen{order:3; flex:0 0 calc(100% - 90px); margin-left:90px; text-align:left; min-height:36px} }

.matbar{display:flex; gap:8px; margin-bottom:12px}
.matbar input{flex:1; min-width:0}
@media (min-width:981px){ .matbar input{max-width:320px; flex:none} }
.fbtn{flex:none; display:inline-flex; align-items:center; gap:8px; height:48px; padding:0 16px; background:#fff;
  border:1px solid var(--ink); border-radius:10px; font-weight:600; font-size:15px}
.fbtn[aria-expanded="true"]{background:var(--ink); color:#fff}
#filtCount:not(:empty){display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px;
  background:var(--acc); color:#fff; font-size:12px}
#akciaRow{margin-bottom:10px}
.chips.tags{margin-bottom:10px}
.chips.tags:empty{display:none}
.chip.tag{background:var(--ink); border-color:var(--ink); color:#fff; font-weight:600}
.chip.tag::after{content:"✕"; margin-left:9px; font-size:11px; opacity:.8}

.filters{display:none; background:var(--surf); border-radius:14px; padding:14px; margin-bottom:16px}
.filters[data-open="true"]{display:block}
.filterrow{display:grid; grid-template-columns:118px minmax(0,1fr); gap:12px; align-items:start; margin-bottom:12px}
.filterrow:last-child{margin-bottom:0}
.flab{font-size:13.5px; font-weight:600; color:var(--ink-2); padding-top:11px}
.filterrow.nested .flab{color:var(--acc-d)}
.filterrow.nested .chips{padding-left:12px; border-left:2px solid var(--acc-l)}
@media (max-width:640px){
  .filterrow{grid-template-columns:minmax(0,1fr); gap:6px}
  .flab{padding-top:0}
  .filters .chip:not([aria-pressed="true"]){background:#fff}
}
@media (min-width:981px){
  .fbtn, .chips.tags{display:none !important}
  .filters{display:block; background:none; padding:0; margin-bottom:18px}
  .filters .chip:not([aria-pressed="true"]){background:#fff}
}
.galcount{font-size:13px; color:var(--ink-2); margin:4px 0 10px}

.gal{display:grid; grid-template-columns:repeat(auto-fill,minmax(138px,1fr)); gap:18px 12px}
@media (max-width:640px){ .gal{grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px} }
.card{position:relative; background:none; border:0; padding:0; text-align:left; display:flex; flex-direction:column; color:var(--ink)}
.card img, .card .noimg{width:100%; aspect-ratio:1; object-fit:cover; display:block; border-radius:10px; background:var(--surf)}
.noimg{display:grid !important; place-items:center; font-size:12px; color:var(--ink-3)}
.card:hover img{filter:brightness(.97)}
.card[aria-pressed="true"] img, .card[aria-pressed="true"] .noimg{outline:3px solid var(--acc); outline-offset:2px}
.card .chk{display:none}
.card[aria-pressed="true"] .chk{display:grid; place-items:center; position:absolute; top:8px; right:8px; width:28px; height:28px;
  border-radius:50%; background:var(--acc); color:#fff}
.card[aria-pressed="true"] .chk::after{content:"✓"; font-weight:700; font-size:15px}
.card .meta{padding:8px 2px 0; display:flex; flex-direction:column; gap:1px}
.card .nm{font-family:var(--head); font-weight:600; font-size:14px; line-height:1.3}
.card .br{font-size:12.5px; color:var(--ink-2)}
.card .akc{position:absolute; top:8px; left:8px; max-width:calc(100% - 52px); padding:3px 9px; border-radius:999px;
  background:#fff; color:var(--ink); font-size:11.5px; font-weight:600; line-height:1.35;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; pointer-events:none; box-shadow:0 1px 3px rgba(34,48,60,.18)}
.more{grid-column:1 / -1; min-height:48px; background:#fff; border:1.5px dashed var(--line-2); border-radius:var(--r);
  font-size:15px; font-weight:600; color:var(--acc-d)}
.more:hover{border-color:var(--acc)}
.noresult{grid-column:1 / -1; text-align:center; padding:30px 16px; color:var(--ink-2); font-size:14px; background:var(--surf); border-radius:var(--r)}

#surfChips{margin-bottom:4px}
#fmtInfo{margin-top:14px}

/* ---------- diely ---------- */
.seg-hd{display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) 84px 44px; gap:10px;
  padding-left:32px; margin-bottom:6px; font-size:13px; font-weight:600; color:var(--ink-2)}
.seg{display:grid; grid-template-columns:22px minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) 84px 44px; gap:10px; align-items:end; margin-bottom:10px}
.seg .ix{font-size:13px; font-weight:600; color:var(--ink-3); padding-bottom:14px; font-variant-numeric:tabular-nums}
.seg .f{display:block; min-width:0}
.seg .fl{display:none}
.icon-btn{width:44px; height:48px; background:#fff; border:1px solid var(--line); border-radius:10px; color:var(--ink-2); font-size:20px; line-height:1}
.icon-btn:hover{color:var(--ink); border-color:var(--ink-3)}
.icon-btn:disabled{opacity:.35; cursor:default}
.addrow{display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; margin:4px 0 6px;
  background:#fff; border:1.5px dashed var(--line-2); border-radius:var(--r); font-size:15px; font-weight:600; color:var(--acc-d)}
.addrow:hover{border-color:var(--acc); background:var(--acc-s)}
.seg-grp{font-family:var(--head); font-weight:600; font-size:15px; margin:22px 0 10px}
.seg-grp:first-child{margin-top:0}
@media (max-width:700px){
  .seg-hd{display:none}
  .seg{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 72px 44px; gap:10px 8px; align-items:end;
    border:1px solid var(--line); border-radius:14px; padding:12px; margin-bottom:10px}
  .seg .ix{display:none}
  .seg .fl{display:block; font-size:12.5px; color:var(--ink-2); margin-bottom:4px}
  .seg .fnm{grid-column:1 / 4; grid-row:1}
  .seg .icon-btn{grid-column:4; grid-row:1}
  .seg .f:nth-of-type(2){grid-column:1; grid-row:2}
  .seg .f:nth-of-type(3){grid-column:2; grid-row:2}
  .seg .f:nth-of-type(4){grid-column:3 / 5; grid-row:2}
}
#smerWrap{margin-top:12px}
#vodopadWrap:not(:empty){margin-top:26px}
.panelbox + .panelbox{margin-top:22px}
.pdet .grid2{margin-top:12px}
.tiles.vt .tile{min-height:52px}
@media (max-width:420px){ .tiles.vt .tile b{font-size:14px} .tiles.vt .tile .sub{font-size:11.5px} }

/* ---------- zástena ---------- */
.zas-empty{display:grid; grid-template-columns:88px 1fr auto; gap:16px; align-items:center; padding:16px;
  background:var(--acc-s); border:1px solid var(--acc-l); border-radius:14px}
.zas-ico svg{display:block; width:88px; height:59px}
.zas-ico .cab{fill:#fff; stroke:#9FB3C8; stroke-width:1.2}
.zas-ico .zas{fill:#CDEAF9; stroke:var(--acc); stroke-width:1.6}
.zas-ico .zash{stroke:var(--acc); stroke-width:1; opacity:.55}
.zas-ico .desk{fill:var(--acc)}
.zas-txt{display:flex; flex-direction:column; gap:4px}
.zas-txt b{font-family:var(--head); font-weight:600; font-size:15px}
.zas-txt span{font-size:13.5px; color:var(--ink-2); line-height:1.45}
.zas-empty .zas-add{width:auto; padding:0 18px; white-space:nowrap}
@media (max-width:640px){
  .zas-empty{grid-template-columns:64px 1fr; gap:12px}
  .zas-ico svg{width:64px; height:43px}
  .zas-empty .zas-add{grid-column:1 / -1; width:100%}
}
.zdet{margin-top:12px}

/* ---------- drez a výrezy ---------- */
#drezDetail{margin-top:12px}
.cutrow{display:grid; grid-template-columns:56px minmax(0,1fr) auto; gap:14px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line)}
.cutrow:last-child{border-bottom:0}
.cutrow .cico{width:56px; height:35px}
.cutrow .cico svg{width:56px; height:35px; display:block}
.cutrow .cl{display:flex; flex-direction:column; gap:2px; min-width:0}
.cutrow .ct{font-size:15px; font-weight:600; line-height:1.35}
.cutrow .cd{font-size:13px; color:var(--ink-2); line-height:1.4}
.stepper{display:flex; align-items:center; border:1px solid var(--line-2); border-radius:10px; overflow:hidden; background:#fff}
.stepper button{width:44px; height:44px; background:#fff; border:0; color:var(--ink); font-size:20px; line-height:1}
.stepper button:hover{background:var(--surf)}
.stepper .val{min-width:30px; text-align:center; font-size:15px; font-weight:600; font-variant-numeric:tabular-nums}
@media (max-width:640px){
  .cutrow{grid-template-columns:40px minmax(0,1fr) auto; grid-template-areas:"ico tt st" "ico cd cd"; gap:4px 10px; align-items:center}
  .cutrow .cl{display:contents}
  .cutrow .cico{grid-area:ico; align-self:start; width:40px; height:26px; margin-top:12px}
  .cutrow .cico svg{width:40px; height:26px}
  .cutrow .ct{grid-area:tt; font-size:14.5px}
  .cutrow .cd{grid-area:cd}
  .cutrow .stepper{grid-area:st}
}

/* ---------- doprava ---------- */
.adrrow{display:flex; gap:8px}
.adrrow input{flex:1; min-width:0}
.adrrow .btn{width:auto; flex:none; min-height:48px; padding:0 16px; margin:0}
#kmWrap{margin-top:10px}
#stepDoprava .grid2{margin-bottom:10px}

/* ---------- kontakt a výsledok ---------- */
.err{margin:12px 0 0; padding:12px 14px; border-radius:10px; background:#FDECEC; color:#9B1C1C; font-size:14px}
.sent{margin-top:14px; background:var(--acc-s); border:1px solid var(--acc-l); border-radius:12px; padding:14px 16px; font-size:15px}
#gateForm .check{margin-top:8px}

.reveal{background:var(--ink); color:#fff; border-radius:16px; padding:22px 22px 20px; max-width:560px}
.reveal .rv-l{font-size:13.5px; color:var(--on-ink-2)}
.reveal .rv-p{font-family:var(--head); font-weight:700; font-size:clamp(30px,8.4vw,42px); line-height:1.1; letter-spacing:-.02em;
  margin:6px 0 8px; font-variant-numeric:tabular-nums; color:#fff}
.reveal .dash{color:var(--on-ink-acc); font-weight:500; margin:0 .18em}
.reveal .rv-m{font-size:14px; color:#DCE4EA}
.reveal .rv-n{font-size:13px; color:var(--on-ink-2); margin-top:10px; line-height:1.5}
.reveal .btn{margin-top:18px}
@media (min-width:981px){ .reveal .btn{width:auto; padding:0 26px} }
.reveal.rv-in{animation:rvIn .5s cubic-bezier(.2,.7,.2,1) both}
.reveal.rv-in .rv-p{animation:rvIn .6s .12s cubic-bezier(.2,.7,.2,1) both}
@keyframes rvIn{from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:none}}

/* ---------- súhrn ---------- */
.sum{position:sticky; top:24px; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#fff}
.sum-hd{background:var(--ink); color:#fff; padding:20px 22px}
.sum-l{font-size:13.5px; color:var(--on-ink-2)}
.price{font-family:var(--head); font-weight:700; font-size:31px; letter-spacing:-.02em; line-height:1.15; margin-top:4px;
  font-variant-numeric:tabular-nums; color:#fff}
.price .dash{color:var(--on-ink-acc); font-weight:500; margin:0 .18em}
.sum-hd .note{font-size:13px; color:#C9D3DB; margin-top:6px}
.sum.locked .sum-hd .note{font-family:var(--head); font-size:16px; font-weight:600; color:#fff; line-height:1.4}
.rows{padding:6px 22px 10px}
.rows > .btn{margin:12px 0 6px}
.grp{border-bottom:1px solid var(--line)}
.grp summary{display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:46px; padding:8px 0;
  list-style:none; cursor:pointer; font-size:14px}
.grp summary::-webkit-details-marker{display:none}
.grp summary .l{display:flex; align-items:center; gap:8px; font-weight:600; color:var(--ink)}
.grp summary .l::before{content:""; width:7px; height:7px; border-right:1.8px solid var(--ink-2); border-bottom:1.8px solid var(--ink-2);
  transform:rotate(-45deg); transition:transform .15s; margin:0 2px 0 1px}
.grp[open] summary .l::before{transform:rotate(45deg) translate(-2px,-1px)}
.grp summary .v{font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap}
.grp .row{padding:5px 0 5px 19px}
.grp .row:last-child{padding-bottom:12px}
.row{display:flex; gap:12px; justify-content:space-between; align-items:baseline; padding:7px 0; font-size:13.5px}
.row .l{color:var(--ink-2); min-width:0}
.row .l .kk{display:block}
.row .l em{display:block; font-style:normal; color:var(--ink-2); opacity:.85; font-size:12px; line-height:1.4; margin-top:1px; font-variant-numeric:tabular-nums}
.row .v{font-variant-numeric:tabular-nums; white-space:nowrap; font-weight:600}
.row.sub{margin-top:6px; font-weight:600; color:var(--ink); font-size:14px}
.row.sub .l{color:var(--ink)}
.row.grand{border-top:2px solid var(--ink); margin-top:4px; padding-top:11px; font-weight:700; font-size:16px}
.row.grand .l{color:var(--ink)}
.sum-ft{padding:16px 22px 22px; border-top:1px solid var(--line); background:var(--surf)}
.sum-ft .btn.ghost{margin-top:8px}
.disclaimer{font-size:12px; color:var(--ink-2); line-height:1.5; margin-top:12px}
@media (max-width:980px){ .sum{position:static} }

/* ---------- rozloženie na tabuliach ---------- */
.nest{padding:18px 22px 6px; border-bottom:1px solid var(--line)}
.nest:empty{display:none}
.nest-inline{display:none}
@media (max-width:980px){
  .nest-inline{display:block; margin-top:24px; padding:14px; background:var(--surf); border:0; border-radius:14px}
  .nest-inline:empty{display:none}
  #nestBox{display:none}
}
.nest-hd{display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin-bottom:10px}
.nest-hd strong{font-family:var(--head); font-weight:600; font-size:15px; line-height:1.3}
.nest-hd span{flex:none; font-size:12.5px; color:var(--ink-2); font-variant-numeric:tabular-nums}
.slab-box{margin-bottom:12px}
.slab-cap{font-size:12.5px; color:var(--ink-2); margin-bottom:5px}
.slab-cap b{font-weight:600; color:var(--ink)}
.slab-box.pol svg.slab .slab-bg{stroke:var(--ink-2); stroke-dasharray:6 4}
.namieru-rad{display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end}
.kusvolba{margin:0 0 14px; padding:12px; border:1px solid var(--line-2); border-radius:12px; background:#fff}
.kv-t{font-size:13.5px; font-weight:600; line-height:1.4; margin:0 0 8px}
.kv-opts{display:grid; gap:8px}
.kv-opts .tile{min-height:0; text-align:left}
.kus-fig{margin:0; flex:none; min-width:72px}
.kus-fig figcaption{font-size:12px; color:var(--ink-2); line-height:1.3; margin-top:4px}
svg.slab .piece.kus-na-mieru{stroke-dasharray:7 4; stroke-width:1.6}
svg.slab{width:100%; height:auto; display:block; overflow:visible}
svg.slab .slab-bg{stroke:var(--line-2); stroke-width:1; vector-effect:non-scaling-stroke}
svg.slab .hatch-bg{fill:#EEF1F4}
svg.slab .hatch-ln{stroke:#D3DAE1; stroke-width:2}
svg.slab .piece{stroke:var(--ink); stroke-width:1.2; vector-effect:non-scaling-stroke}
svg.slab text{font-family:"Open Sans",Arial,sans-serif; paint-order:stroke; stroke:#fff; stroke-linejoin:round}
svg.slab text.pl{font-size:12.5px; font-weight:600; fill:var(--ink); stroke-width:3.5px}
svg.slab text.pd{font-size:10.5px; font-weight:600; fill:var(--ink-2); stroke-width:3px}
.nest-left{font-size:13px; color:var(--ink-2); line-height:1.5; margin:-2px 0 12px}
.nest-warn{font-size:13px; color:var(--warn); background:var(--warn-s); border:1px solid var(--warn-l);
  border-radius:10px; padding:10px 12px; line-height:1.45; margin-bottom:12px}
.nest-alt{font-size:12.5px; color:var(--ink-2); line-height:1.5; margin-bottom:12px}
.nest-err{font-size:13.5px; color:var(--warn); background:var(--warn-s); border:1px solid var(--warn-l);
  border-radius:10px; padding:12px; line-height:1.5; margin-bottom:12px}
.nest-sec{font-family:var(--head); font-weight:600; font-size:14px; margin:18px 0 8px; padding-top:14px; border-top:1px solid var(--line)}

/* ---------- spodný panel (mobil) ---------- */
.mobile-bar{display:none}
@media (max-width:980px){
  .mobile-bar{display:block; position:fixed; left:0; right:0; bottom:0; z-index:9990; background:#fff;
    box-shadow:0 -8px 24px -16px rgba(34,48,60,.55); padding-bottom:env(safe-area-inset-bottom);
    transform:translateY(110%); transition:transform .22s ease}
  .mobile-bar.on{transform:none}
  .mb-prog{height:3px; background:var(--surf-2)}
  .mb-prog i{display:block; height:100%; width:0; background:var(--acc); transition:width .25s}
  .mb-in{display:flex; align-items:center; gap:12px; padding:10px 16px 12px}
  .mb-txt{flex:1; min-width:0}
  .mb-l{font-size:12px; color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .mb-p{font-family:var(--head); font-weight:600; font-size:16px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums}
  .mb-in .btn{flex:none; width:auto; min-height:48px; padding:0 20px}
}

/* ---------- cenník prác (len admin) ---------- */
.drawer{position:fixed; inset:0; background:rgba(20,28,36,.45); display:none; z-index:9999}
.drawer[data-open="true"]{display:block}
.drawer-in{position:absolute; right:0; top:0; bottom:0; width:min(520px,100%); background:#fff;
  border-left:1px solid var(--line); overflow-y:auto; padding:22px}
.drawer h3{font-size:18px; font-weight:600; margin-bottom:4px}
.drawer .dsub{font-size:13px; color:var(--ink-2); margin-bottom:18px}
.pgrp{margin-bottom:20px}
.pgrp h4{font-size:13px; font-weight:600; color:var(--ink-2); margin:0 0 9px; padding-bottom:5px; border-bottom:1px solid var(--line)}
.prow{display:grid; grid-template-columns:1fr 100px; gap:10px; align-items:center; padding:3px 0; font-size:13px}
.prow input{height:36px; padding:0 8px; font-size:14px; text-align:right}
.dclose{position:absolute; top:10px; right:12px; width:44px; height:44px; background:none; border:0; font-size:24px; color:var(--ink-2)}
.dactions{display:flex; gap:9px; margin-top:8px; flex-wrap:wrap}
.dactions .btn{width:auto; flex:1; min-width:150px}
.dactions .btn.ghost{margin-top:0}

/* výpočet na serveri beží */
#nestBox, #nestInline, #breakdown{transition:opacity .15s}
[aria-busy="true"]{opacity:.55; transition:opacity .15s .3s}
.ts:empty{display:none}
.ts{margin:4px 0 12px; min-height:65px}

/* ---------- partneri (2.3.0) ---------- */
.pcta{margin-top:22px; padding:16px 18px; border:1px solid var(--line); border-radius:14px; background:var(--surf); max-width:560px}
.pcta-h{font-family:var(--head); font-weight:600; font-size:15px; color:var(--ink)}
.pcta-t{font-size:14px; color:var(--ink-2); margin-top:4px; line-height:1.5}
.pcta-a{display:flex; flex-wrap:wrap; align-items:center; gap:6px 18px; margin-top:12px}
.pcta-a .btn.pcta-b{width:auto; min-height:44px; padding:0 18px; font-size:14px; text-decoration:none}
.plogin{margin-top:10px; padding-top:12px; border-top:1px solid var(--line)}
.plogin .btn{margin-top:4px}
.plogin .fnote a{color:var(--acc-d); font-weight:600}
@media (min-width:981px){ .plogin .btn{width:auto; padding:0 26px} }
.pbar{display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; margin-top:12px; padding:10px 14px; border-radius:10px;
  background:var(--acc-s); border:1px solid var(--acc-l); font-size:14px; color:var(--ink)}
.pbar-t{flex:1; min-width:0}
.pbar-o{color:var(--acc-d); font-weight:600; text-underline-offset:3px}
.pnahlad{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:8px; font-size:13px; color:var(--ink-2)}
.pnahlad select{min-height:36px; border:1px solid var(--line-2); border-radius:8px; padding:0 8px; background:#fff}
.row .v.vp, .grp summary .v.vp{display:flex; flex-direction:column; align-items:flex-end; line-height:1.3}
.row .v .vb, .grp summary .v .vb{font-size:11.5px; font-weight:400; color:var(--ink-3)}
.row.bezna{font-size:13px; color:var(--ink-2); padding-top:4px}
.row.bezna .v{font-weight:600; color:var(--ink-2)}
.reveal .rv-b{font-size:14px; color:#DCE4EA; margin-top:2px}
.pcta-sk{font-size:12px; font-weight:600; color:var(--warn); background:var(--warn-s); border:1px solid var(--warn-l); border-radius:8px; padding:6px 10px; margin-bottom:10px}
.row.prov .l, .row.prov .v{color:var(--acc-d)}
.row.prov{font-size:14px}
.row.po{font-size:13px}

/* nová kalkulácia (od 2.4.1) - nenápadný odkaz s potvrdením */
.reset{margin-top:14px; font-size:13px}
.reset .reset-tg{font-size:13px; font-weight:400; color:var(--ink-2); text-decoration:underline; text-underline-offset:2px}
.reset-box{margin-top:8px; padding:12px 14px; border:1px solid var(--line, #E2E8F0); border-radius:10px; background:#fff}
.reset-box p{margin:0 0 10px; font-size:13px; line-height:1.45}
.reset-box .btn{padding:8px 14px; font-size:13px; margin-right:10px}
.sent-dalsia{margin-top:10px}

/* zástena a lacnejšia hrúbka po zobrazení ceny (od 2.4.1) */
.reveal .rv-z{margin-top:14px; padding:12px 14px; border:1px solid rgba(255,255,255,.2); border-radius:10px}
.reveal .rv-z p{font-size:13.5px; line-height:1.5; color:#fff; margin:0}
.reveal .rv-z .linkbtn{margin-top:8px; color:var(--on-ink-acc); font-size:13.5px; text-decoration:underline; text-underline-offset:2px}

/* najvýhodnejšia hrúbka zásteny aj bez ceny (od 2.4.2) */
.tile.naj .sub{color:#1A7F4B; font-weight:600}
.tile.naj:not([aria-pressed="true"]){border-color:#7CC5A0}
.zas-tip{margin:12px 0 2px; padding:14px 16px; border-radius:12px; background:#EEF8F2; border:1px solid #C3E5D1; max-width:620px}
.zas-tip .zt-t{margin:0; font-family:var(--head); font-weight:600; font-size:15px; line-height:1.35; color:#14603A}
.zas-tip .zt-p{margin:4px 0 0; font-size:14px; line-height:1.5; color:var(--ink)}
.zas-tip .zt-b{margin-top:12px; padding:8px 16px; border-radius:8px; border:1px solid #1A7F4B; background:#fff; color:#14603A;
  font:600 14px/1.2 var(--head); cursor:pointer; transition:background .14s}
.zas-tip .zt-b:hover{background:#DDF1E6}
