/* Konfigurátor SHE v2 — Smart Home And Energy s.r.o. Tokeny podle návrhu redesignu 23. 9. 2026. */
@font-face { font-family: 'Museo'; src: url('fonts/Museo300-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Museo'; src: url('fonts/Museo700-Regular.otf') format('opentype'); font-weight: 700; font-display: swap; }
:root {
  --brand:#BF401F; --brand-deep:#8E2F14; --brand-tint:#FBEFEA; --brand-tint-2:#F3D3C8;
  --navy:#142E49; --navy-2:#1E4670; --navy-tint:#E9EEF4;
  --ink:#1B1F24; --ink-2:#4B5563; --ink-3:#6B7280; --line:#E3E6EA; --line-2:#EEF0F3;
  --paper:#FFFFFF; --canvas:#F5F4F1; --canvas-2:#EDECE8;
  --ok:#1F7A4D; --ok-tint:#E6F4EC; --warn:#B45309; --warn-tint:#FCF1E3; --info:#1D5FA6; --info-tint:#E8F0FA;
  --r:10px; --r-s:6px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; font-family: Museo, system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--canvas); line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.kicker { color: var(--brand); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip-link:focus { left: 8px; }

/* ---------- atomy ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.chip.ok { background: var(--ok-tint); color: var(--ok); } .chip.warn { background: var(--warn-tint); color: var(--warn); }
.chip.info { background: var(--info-tint); color: var(--info); } .chip.brand { background: var(--brand-tint); color: var(--brand-deep); }
.chip.mute { background: var(--canvas-2); color: var(--ink-2); } .chip.out { background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: var(--r-s); border: 1px solid transparent; cursor: pointer; text-align: center; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); } .btn.primary:hover { background: var(--brand-deep); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.ghost { background: var(--paper); border-color: var(--line); color: var(--ink-2); } .btn.ghost:hover { border-color: var(--ink-3); }
.btn.soft { background: var(--canvas-2); color: var(--ink); }
.btn.sm { padding: 5px 10px; font-size: 12px; } .btn.lg { padding: 12px 18px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: default; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--brand-deep); font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field > .lbl { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.in-wrap { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); min-height: 40px; }
.in-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.in-wrap input { border: 0; background: transparent; padding: 9px 10px; flex: 1; min-width: 0; outline: none; }
.suffix { padding-right: 10px; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
select, textarea, .suggest input { border: 1px solid var(--line); border-radius: var(--r-s); padding: 9px 10px; background: var(--paper); min-height: 40px; width: 100%; }
select:focus, textarea:focus, .suggest input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.hint { font-size: 12px; color: var(--ink-3); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 7px 13px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.chips button:hover { border-color: var(--ink-3); }
.chips button[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.opt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt button { border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--paper); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.opt button:hover { border-color: var(--ink-3); }
.opt button b { font-size: 14px; } .opt button span:not(.chip) { font-size: 12px; color: var(--ink-2); }
.opt button[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.sect { font-size: 11px; color: var(--ink-3); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.sect::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.g2:empty { display: none; }
.alert { border-radius: var(--r-s); padding: 9px 12px; font-size: 13px; margin: 0; }
.alert.warn { background: var(--warn-tint); color: var(--warn); } .alert.ok { background: var(--ok-tint); color: var(--ok); } .alert.info { background: var(--info-tint); color: var(--info); }
.alert[hidden] { display: none; }
.dotaz { margin-top: 6px; } .dotaz-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.kv span:nth-child(odd) { color: var(--ink-3); } .kv span:nth-child(even) { font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
input[type=range] { width: 100%; accent-color: var(--brand); margin: 10px 0 2px; }
.range-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.range-lbl output { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- sloupcové pruhy ---------- */
.bars { display: flex; flex-direction: column; gap: 7px; }
.bars .b { display: grid; grid-template-columns: minmax(0, 150px) 1fr 92px; gap: 10px; align-items: center; font-size: 12.5px; }
.bars .n { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .t { height: 14px; background: var(--canvas-2); border-radius: 2px; overflow: hidden; }
.bars .t i { display: block; height: 100%; background: #C9CCD1; }
.bars .b.hi .t i { background: var(--brand); } .bars .b.navy .t i { background: var(--navy); }
.bars .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.bars.mini .b { grid-template-columns: 96px 1fr 80px; font-size: 12px; }

/* ---------- tabulka scénářů ---------- */
table.t { border-collapse: collapse; width: 100%; font-size: 13px; }
table.t th, table.t td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t th { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); background: var(--canvas); }
table.t td small { display: block; color: var(--ink-3); font-size: 11.5px; }
table.t tr.nase td { font-weight: 700; background: var(--brand-tint); }
table.t td.num { white-space: nowrap; }
.disc { font-size: 11.5px; color: var(--ink-3); border-left: 3px solid var(--warn); padding: 4px 10px; margin: 4px 0 0; }

/* ---------- rozvržení ---------- */
.top { height: 64px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 28px; }
.top img { height: 34px; width: auto; }
.top .t { font-size: 17px; font-weight: 700; }
.top .t small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.top .spacer { flex: 1; }
.mob-top { display: none; }
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 380px; min-height: calc(100vh - 64px); }
#kroky { padding: 22px 18px; border-right: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 2px; }
#kroky .ph { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 14px 8px 6px; }
#kroky .st { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); background: none; border: 0; text-align: left; cursor: pointer; width: 100%; }
#kroky .st:disabled { cursor: default; opacity: .7; }
#kroky .st:not(:disabled):hover { background: var(--canvas); }
#kroky .st i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 10px; font-style: normal; font-weight: 700; color: var(--ink-3); flex: 0 0 auto; }
#kroky .st.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
#kroky .st.on { background: var(--brand-tint); color: var(--brand-deep); font-weight: 700; } #kroky .st.on i { border-color: var(--brand); color: var(--brand); }
#kroky .st small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }
#krok { padding: 28px 40px 40px; display: flex; flex-direction: column; gap: 18px; min-width: 0; outline: none; }
.q-head { display: flex; flex-direction: column; gap: 6px; }
h2.q { margin: 0; font-size: 24px; letter-spacing: -0.01em; outline: none; }
p.q { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 66ch; }
.nav { margin-top: auto; display: flex; gap: 10px; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
#sestava { border-left: 1px solid var(--line); background: var(--paper); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.line { display: flex; justify-content: space-between; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line-2); gap: 10px; }
.line > span:first-child { min-width: 0; }
.line > span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.line.head { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
.line.head span:last-child { font-weight: 400; }
.line.mute span { color: var(--ink-3); font-weight: 400; }
.line .proc { display: block; color: var(--ink-3); font-size: 11.5px; }
.polozky { display: flex; flex-direction: column; }
.price { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--canvas); display: flex; flex-direction: column; gap: 3px; }
.price .big { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.price small { color: var(--ink-3); font-size: 12px; display: block; }
.price .pozn { color: var(--info); }
.price.velka { background: var(--navy); border: 0; color: #fff; }
.price.velka small { color: rgba(255,255,255,.78); } .price.velka .pozn { color: #fff; }
.price.velka .big { font-size: 30px; }
.pata { margin-top: auto; font-size: 11.5px; color: var(--ink-3); }
.lista { display: none; }
footer { padding: 18px 28px 28px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--paper); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; max-width: calc(100vw - 32px); overflow-wrap: anywhere; z-index: 60; }
#toast[hidden] { display: none; }
.hotovo { text-align: center; padding: 40px 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.hotovo-ikona { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 28px; }

/* ---------- našeptávač ---------- */
.suggest { position: relative; }
#naseptavac { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; list-style: none; margin: 4px 0 0; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 8px 24px -12px rgba(20,46,73,.4); }
#naseptavac li { padding: 7px 10px; border-radius: 4px; cursor: pointer; display: flex; flex-direction: column; font-size: 13px; }
#naseptavac li small { color: var(--ink-3); font-size: 11.5px; }
#naseptavac li:hover, #naseptavac li[aria-selected="true"] { background: var(--brand-tint); }

/* ---------- tablet a mobil ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr) 320px; }
  #krok { padding: 24px 24px 36px; }
  .opt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .top { padding: 0 16px; height: 56px; }
  .top img { height: 26px; }
  .top .t small, .top .chip { display: none; }
  .mob-top { display: block; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 10px; position: sticky; top: 0; z-index: 10; }
  .mob-top .chip { font-size: 12px; }
  .prog { height: 4px; background: var(--canvas-2); border-radius: 2px; overflow: hidden; margin-top: 8px; }
  .prog i { display: block; height: 100%; background: var(--brand); }
  .layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  #kroky { display: none; }
  #krok { padding: 18px 16px 110px; }
  #sestava { position: fixed; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow-y: auto; z-index: 30; border-left: 0; border-top: 1px solid var(--line);
    border-radius: 14px 14px 0 0; box-shadow: 0 -12px 30px -12px rgba(20,46,73,.45); padding: 18px 16px 96px; transform: translateY(105%); transition: transform .25s ease; visibility: hidden; }
  body.panel-open #sestava { transform: none; visibility: visible; }
  .lista { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px;
    justify-content: space-between; align-items: center; gap: 10px; box-shadow: 0 8px 20px -8px rgba(20,46,73,.6); }
  .lista small { display: block; font-size: 11px; opacity: .78; }
  .lista b { font-size: 17px; font-variant-numeric: tabular-nums; }
  .lista .btn { background: rgba(255,255,255,.15); color: #fff; }
  footer { padding-bottom: 96px; }
}
@media (max-width: 560px) {
  .top .t { font-size: 15px; }
  #odkaz-btn { padding: 5px 8px; font-size: 11.5px; white-space: normal; max-width: 150px; }
  h2.q { font-size: 21px; }
  .opt, .g2 { grid-template-columns: minmax(0, 1fr); }
  .bars .b { grid-template-columns: minmax(0, 1fr) 70px; }
  .bars .b .t { grid-column: 1 / -1; grid-row: 2; }
  .nav .btn.lg { padding: 11px 14px; font-size: 14px; white-space: normal; }
  .price .big { font-size: 22px; } .price.velka .big { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (max-width:900px){ .jen-desktop{display:none} .top .chip{display:none} }
