/* Klidný vzduch s.r.o. – ukázka. Styl C „Klidná důvěra“. Mobil první (390 px). */
:root {
  --bg: #FAFAF8;
  --text: #111111;
  --muted: #55554F;
  --accent: #1A73E8;
  --accent-dark: #1459B8;
  --accent-soft: #E8F0FD;
  --line: #E5E5E0;
  --surface: #FFFFFF;
  --alt: #F3F3EF;
  --warn: #8A4B00;
  --ok: #1E7B45;
  --radius: 14px;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --space: clamp(4.5rem, 12vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--accent); }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--text); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 760px; }

/* Štítek ukázky */
.demo-bar {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: center;
  padding: .55rem 1.25rem; background: var(--text); color: #F2F2EE; font-size: .875rem; text-align: center;
}
.badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: .01em;
}

/* Hlavička */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 250, 248, .9);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.logo__mark { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.nav { display: none; gap: 1.75rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.nav a:hover { color: var(--text); }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:disabled { opacity: .6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }
.btn--block { width: 100%; }

.eyebrow { font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 34rem; }
.note { font-size: .875rem; color: var(--muted); margin-top: 1rem; }
.accent { color: var(--accent); }

/* Hero */
.hero { padding: clamp(3.5rem, 10vw, 7rem) 0 var(--space); }
.hero__grid { display: grid; gap: 3rem; }
.hero h1 { font-size: clamp(2.35rem, 9vw, 4.1rem); margin-bottom: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__actions .btn { flex: 1 1 auto; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; align-self: center;
  box-shadow: 0 1px 0 rgba(17,17,17,.02), 0 18px 40px -28px rgba(17,17,17,.25);
}
.hero-card__label { font-size: .8125rem; color: var(--muted); margin-bottom: 1.25rem; }
.hero-card__rows { margin: 0; display: grid; gap: .9rem; }
.hero-card__rows div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.hero-card__rows dt { color: var(--muted); }
.hero-card__rows dd { margin: 0; text-align: right; white-space: nowrap; }
.hero-card__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.hero-card__total strong { font-size: 1.75rem; font-weight: 500; letter-spacing: -.02em; }
.hero-card__foot { font-size: .8125rem; color: var(--muted); margin-top: .75rem; }

/* Sekce */
.section { padding: var(--space) 0; }
.section--alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section__head h2 { font-size: clamp(1.9rem, 6vw, 2.75rem); }
.section__lead { color: var(--muted); margin-top: 1rem; font-size: 1.125rem; }

/* Kalkulačka */
.calc { display: grid; gap: 2.5rem; }
.calc__form { display: grid; gap: 2.5rem; min-width: 0; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { display: flex; align-items: center; gap: .75rem; font-weight: 600; font-size: 1.1875rem; padding: 0; margin-bottom: 1.25rem; }
.step__num { font-size: .8125rem; color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .55rem; font-weight: 500; }
.hint { font-size: .875rem; color: var(--muted); margin-top: .9rem; }

.counter { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.counter__ctrl { display: flex; align-items: center; gap: .25rem; }
.counter__btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 1.35rem; line-height: 1; color: var(--text); cursor: pointer; transition: border-color .2s;
}
.counter__btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.counter__btn:disabled { opacity: .35; cursor: not-allowed; }
.counter__value { min-width: 2.5rem; text-align: center; font-size: 1.25rem; }

.rooms { display: grid; gap: 0; }
.room {
  display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: .5rem .75rem; align-items: end;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.room__field label { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: .3rem; }
.room__kw { grid-column: 1 / -1; font-size: .875rem; color: var(--accent); }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea {
  width: 100%; min-height: 46px; padding: .65rem .85rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; line-height: 1.5; }
.unit-input { position: relative; }
.unit-input input { padding-right: 2.6rem; font-family: var(--mono); }
.unit-input span { position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9375rem; pointer-events: none; }
input[type="number"]::-webkit-inner-spin-button { opacity: .5; }

.choices { display: grid; gap: .75rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__body {
  display: block; padding: 1rem 1.1rem 1rem 3rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: border-color .2s, box-shadow .2s, background-color .2s; position: relative;
}
.choice__body::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.2rem; width: 18px; height: 18px;
  border: 1.5px solid #B9B9B2; border-radius: 50%; background: #fff; transition: border .2s;
}
.choice__title { display: block; font-weight: 600; }
.choice__desc { display: block; font-size: .875rem; color: var(--muted); margin-top: .15rem; }
.choice input:checked + .choice__body { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #FDFEFF; }
.choice input:checked + .choice__body::before { border: 5.5px solid var(--accent); }
.choice input:focus-visible + .choice__body { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent); }
.choice.is-disabled { cursor: not-allowed; }
.choice.is-disabled .choice__body { opacity: .45; }

/* Výsledek */
.result { min-width: 0; }
.result__inner {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 18px 40px -30px rgba(17,17,17,.3);
}
.result__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.result__title { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tag { font-family: var(--mono); font-size: .75rem; padding: .2rem .55rem; border-radius: 999px; background: #FFF4E0; color: var(--warn); border: 1px solid #F1DEBB; white-space: nowrap; }
.result__total { font-size: clamp(2.4rem, 11vw, 3.1rem); font-weight: 500; letter-spacing: -.03em; margin-top: .75rem; line-height: 1.1; white-space: nowrap; }
.result__range { font-size: .875rem; color: var(--muted); margin-top: .5rem; }

.power { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.power__label { font-size: .875rem; color: var(--muted); }
.power__value { font-size: 1.5rem; margin-top: .2rem; }
.power__sub { font-family: var(--sans); font-size: .875rem; color: var(--muted); }
.power__list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .35rem; font-size: .9375rem; }
.power__list li { display: flex; justify-content: space-between; gap: 1rem; }
.power__list li span:first-child { color: var(--muted); overflow-wrap: anywhere; }

.breakdown { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.breakdown summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.breakdown summary::-webkit-details-marker { display: none; }
.breakdown summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.25rem; }
.breakdown[open] summary::after { content: "−"; }
.breakdown__table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .875rem; }
.breakdown__table th { text-align: left; font-weight: 400; color: var(--muted); padding: .5rem .75rem .5rem 0; vertical-align: top; overflow-wrap: anywhere; }
.breakdown__table td { text-align: right; padding: .5rem 0; white-space: nowrap; vertical-align: top; }
.breakdown__table tbody tr { border-bottom: 1px solid var(--line); }
.breakdown__table tfoot th { color: var(--text); font-weight: 600; padding-top: .75rem; }
.breakdown__table tfoot td { font-weight: 500; padding-top: .75rem; }

.result__warn { margin-top: 1rem; font-size: .875rem; color: var(--warn); background: #FFF8EC; border: 1px solid #F1DEBB; border-radius: 10px; padding: .75rem .9rem; }
.result .btn--block { margin-top: 1.5rem; }

/* Časová osa */
.timeline { list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative; display: grid; gap: 2.75rem; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
}
.timeline::before { background: var(--line); }
.timeline::after { background: var(--accent); transform-origin: top; transform: scaleY(1); }
.timeline.is-ready::after { transform: scaleY(0); }
.timeline.is-playing::after { transform: scaleY(1); transition: transform 2.8s cubic-bezier(.4, 0, .2, 1) .2s; }
.timeline__item { position: relative; }
.timeline__dot {
  position: absolute; left: calc(-2.25rem + 1px); top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--alt);
}
.timeline__when { font-size: .8125rem; color: var(--accent); margin-bottom: .35rem; }
.timeline__item h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.timeline__item p:last-child { color: var(--muted); max-width: 30rem; }

.timeline.is-ready .timeline__item { opacity: .35; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.timeline.is-ready .timeline__dot { background: var(--bg); border: 2px solid #C9C9C2; transition: background-color .4s, border-color .4s, transform .4s; }
.timeline.is-ready .timeline__item.is-active { opacity: 1; transform: none; }
.timeline.is-ready .timeline__item.is-active .timeline__dot { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.timeline.is-played .timeline__item.is-active .timeline__dot { transform: none; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0; font-weight: 600; font-size: 1.0625rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); color: var(--accent); font-size: 1.35rem; transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 1.4rem; max-width: 40rem; }

/* Reference */
.refs { display: grid; gap: 1rem; }
.ref-placeholder {
  border: 1px dashed #CFCFC8; border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center;
  font-family: var(--mono); color: var(--muted); background: var(--bg);
}

/* Formulář */
.form { display: grid; gap: 1.25rem; }
.form__prefilled {
  background: var(--accent-soft); color: #0F3F86; border-radius: 10px; padding: .85rem 1rem; font-size: .9375rem;
}
.field label { display: block; font-size: .9375rem; font-weight: 500; margin-bottom: .4rem; }
.field-row { display: grid; gap: 1.25rem; }
.field__error { color: #B3261E; font-size: .875rem; margin-top: .35rem; }
.field-row + .field__error { margin-top: -.75rem; }
#f-message { font-size: .9375rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-size: .9375rem; }
.check input { width: 20px; height: 20px; margin: .2rem 0 0; accent-color: var(--accent); flex: none; }
.form__done {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border: 1px solid #CDE7D6;
  background: #F1FAF4; border-radius: var(--radius); color: #134B2B;
}
.form__done[hidden] { display: none; }
.form__done svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form__done-title { font-weight: 600; margin-bottom: .2rem; }
.form__done:focus { outline: none; box-shadow: 0 0 0 3px #CDE7D6; }

/* Kontakt */
.contact { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact div { display: grid; gap: .25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact dt { color: var(--muted); font-size: .875rem; }
.contact dd { margin: 0; font-size: 1.1875rem; }

/* Patička */
.site-footer { padding: 3rem 0 4rem; }
.site-footer__inner { display: grid; gap: .9rem; justify-items: start; color: var(--muted); font-size: .875rem; }

/* ---------- Scéna „Klimatizace v řezu“ ---------- */
.rez-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.rez { position: relative; height: 460vh; border-top: 1px solid var(--line); background: #F4F3EF; }
.rez__stage {
  position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px);
  display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden;
}
.rez__canvas { grid-row: 1; position: relative; overflow: hidden; min-height: 0; background: #F4F3EF; }
.rez__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kv-disp { font-family: var(--mono); font-size: 11px; fill: #8FC0FF; }

.rez__panel {
  grid-row: 2; position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line);
  padding: 1.1rem 1.25rem 1rem; display: grid; gap: .9rem;
}
.rez__steps { display: grid; }
.rez__step {
  grid-area: 1 / 1; opacity: 0; transform: translateY(14px); visibility: hidden;
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.rez__step.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity .55s ease .08s, transform .55s ease .08s, visibility 0s; }
.rez__step .eyebrow { margin-bottom: .45rem; font-size: .75rem; }
.rez__step h2, .rez__step h3 { font-size: clamp(1.35rem, 5.6vw, 2.6rem); margin-bottom: .45rem; }
.rez__step p:not(.eyebrow) { color: var(--muted); font-size: .9375rem; line-height: 1.5; max-width: 30rem; }
.rez__cta { margin-top: .9rem; min-height: 44px; padding: .6rem 1.2rem; font-size: .9375rem; }

.rez__progress { display: flex; align-items: center; gap: .75rem; }
.rez__progress-bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rez__progress-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.rez__progress-num { font-size: .75rem; color: var(--muted); }
.rez__progress-num b { color: var(--text); font-weight: 500; }

.rez__labels { position: absolute; inset: 0; pointer-events: none; }
.rez__label {
  position: absolute; left: 0; top: 0; visibility: hidden; opacity: 0; white-space: nowrap;
  display: grid; justify-items: end; line-height: 1.2; will-change: transform, opacity;
  translate: -100% -50%;
}
.rez__label--up { justify-items: center; translate: -50% -100%; }
.rez__label--right { justify-items: start; translate: 0 -50%; }
.rez__label b {
  font-weight: 600; font-size: .8125rem; color: var(--text);
  background: rgba(255, 255, 255, .92); padding: .2rem .5rem; border-radius: 6px; box-shadow: 0 0 0 1px var(--line);
}
.rez__label span { display: none; font-size: .8125rem; color: var(--muted); margin-top: .3rem; }

.rez__temp {
  --temp: #E26A2C; --t: 1;
  position: absolute; right: .75rem; top: .75rem; z-index: 1;
  display: grid; gap: .1rem; padding: .55rem .8rem .6rem; min-width: 8.5rem;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px -22px rgba(17, 17, 17, .35);
}
.rez__temp-label { font-size: .6875rem; color: var(--muted); }
.rez__temp-value { font-size: 1.5rem; line-height: 1.15; color: var(--text); letter-spacing: -.02em; }
.rez__temp-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: .25rem; }
.rez__temp-bar i { display: block; height: 100%; background: var(--temp); transform-origin: left; transform: scaleX(calc(.12 + .88 * var(--t))); }
.rez__temp-note { font-size: .625rem; color: var(--muted); font-family: var(--mono); margin-top: .2rem; }

/* animované proudění (čárkované čáry) */
.kv-pipe { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.kv-flow { stroke-dasharray: 34 90; }
.kv-air-base { stroke-opacity: .08; }
.is-running .kv-air .kv-flow, .is-running .kv-flow--hot { animation: kv-flow 1.6s linear infinite; }
.kv-flow--hot { stroke-dasharray: 18 22; }
.is-running .kv-flow--hot { animation-name: kv-flow-hot; }
@keyframes kv-flow-hot { to { stroke-dashoffset: -40; } }
.is-running .kv-outfan { animation: kv-spin .9s linear infinite; }
.kv-outfan { transform-box: view-box; transform-origin: 1340px 709px; }
@keyframes kv-flow { to { stroke-dashoffset: -124; } }
@keyframes kv-spin { to { transform: rotate(360deg); } }

/* Statická verze (omezený pohyb) */
.rez.rez--static { height: auto; padding: var(--space) 0; }
.rez__static { display: grid; gap: 3.5rem; }
.rez__fig { display: grid; gap: 1.25rem; }
.rez__fig-text { display: grid; gap: 1.5rem; }
.rez__fig .rez__step { grid-area: auto; opacity: 1; transform: none; visibility: visible; }
.rez__fig .rez__canvas { grid-row: auto; aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--line); }
.rez__fig:first-child .rez__temp { display: none; }

/* ---------- Náhled bytu v kalkulačce ---------- */
.preview {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 1.1rem 1.1rem 1rem; display: grid; gap: .9rem;
}
.preview__head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; }
.preview__title { font-weight: 600; }
.preview__cap { font-size: .8125rem; color: var(--accent); }
.preview__grid { display: grid; gap: 1rem; }
.preview__fig--unit { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: .9rem; align-items: center; }
.preview__fig--unit .preview__unitcap { margin-top: 0; min-height: 0; font-size: .875rem; }
.preview__fig { margin: 0; min-width: 0; }
.preview__fig svg { width: 100%; height: auto; }
.preview__unitcap { font-size: .75rem; color: var(--muted); margin-top: .35rem; line-height: 1.35; min-height: 2.7em; }
.preview__note { font-size: .8125rem; color: var(--muted); }

.plan__rest-label { font-family: var(--mono); font-size: 10px; fill: #8A8A82; }
.plan__floor { fill: #F7F6F2; transition: fill .5s ease; }
.plan__room.is-lit .plan__floor { fill: #E3EDFC; }
.plan__room.is-focus .plan__floor { fill: #CFE0FB; }
.plan__glow { fill: #1A73E8; opacity: 0; transform-box: fill-box; transform-origin: center; }
.plan__room.is-new .plan__glow { animation: plan-pulse .9s ease-out; }
@keyframes plan-pulse { from { opacity: .35; transform: scale(.4); } to { opacity: 0; transform: scale(2.2); } }
.plan__num-bg { fill: #FFFFFF; stroke: #D7D7D0; stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.plan__num { font-family: var(--mono); font-size: 11px; fill: #8A8A82; transition: fill .4s; }
.plan__room.is-lit .plan__num-bg { fill: var(--accent); stroke: var(--accent); }
.plan__room.is-lit .plan__num { fill: #FFFFFF; }
.plan__window { fill: #FFFFFF; stroke: #111111; stroke-width: 1; }
.plan__unit { fill: #FFFFFF; stroke: var(--accent); stroke-width: 1.6; opacity: 0; }
.plan__unit.is-on { opacity: 1; }
.plan__unit.is-floor { fill: #E8F0FD; }
.plan__air { opacity: 0; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; }
.plan__air.is-on { opacity: .7; }
.plan__air .kv-flow { stroke-dasharray: 6 5; animation: kv-flow-s 1.2s linear infinite; }
@keyframes kv-flow-s { to { stroke-dashoffset: -11; } }
.plan__pipe { fill: none; stroke: #9DB6D6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.plan__pipe.is-on { stroke-dashoffset: 0; }
.plan__out, .plan__multi { fill: #FFFFFF; stroke: #9AA6B2; stroke-width: 1.4; opacity: 0; }
.plan__out-fan, .plan__multi-fan { fill: none; stroke: #9AA6B2; stroke-width: 1.4; opacity: 0; }
.plan__out.is-on, .plan__out-fan.is-on, .plan__multi.is-on, .plan__multi-fan.is-on { opacity: 1; }
.plan__multi { stroke: var(--accent); stroke-width: 1.8; }
.plan__multi-fan { stroke: var(--accent); }

.unitpic__in { fill: #FFFFFF; stroke: #C3CAD2; stroke-width: 1.5; filter: drop-shadow(0 3px 4px rgba(17,17,17,.08)); }
.unitpic__louvre { fill: none; stroke: #B5BEC7; stroke-width: 2.5; stroke-linecap: round; }
.unitpic__out { fill: #FFFFFF; stroke: #B5BEC7; stroke-width: 1.5; }
.unitpic__out-fan { fill: #EEF1F4; stroke: #B5BEC7; stroke-width: 1.5; }
.unitpic__air { opacity: .75; transform-box: view-box; }
.unitpic__air .kv-flow { stroke-dasharray: 7 6; animation: kv-flow-u 1.3s linear infinite; }
@keyframes kv-flow-u { to { stroke-dashoffset: -13; } }
.unitpic__extra path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.unitpic__extra path.is-on { stroke-dashoffset: 0; }
.unitpic__badge { font-size: 10px; fill: var(--accent); }

.preview.is-ready .plan__unit, .preview.is-ready .unitpic__in, .preview.is-ready .unitpic__out, .preview.is-ready .unitpic__out-fan {
  transition: x .6s cubic-bezier(.4, 0, .2, 1), y .6s cubic-bezier(.4, 0, .2, 1), width .6s cubic-bezier(.4, 0, .2, 1),
    height .6s cubic-bezier(.4, 0, .2, 1), rx .6s, cx .6s cubic-bezier(.4, 0, .2, 1), cy .6s cubic-bezier(.4, 0, .2, 1), r .6s, opacity .4s, fill .4s;
}
.preview.is-ready .plan__air, .preview.is-ready .unitpic__air { transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .4s; }
.preview.is-ready .plan__pipe, .preview.is-ready .unitpic__pipe, .preview.is-ready .unitpic__louvre {
  transition: d .6s cubic-bezier(.4, 0, .2, 1), stroke-dashoffset .7s ease .15s;
}
.preview.is-ready .plan__out, .preview.is-ready .plan__out-fan { transition: x .6s cubic-bezier(.4, 0, .2, 1), cx .6s cubic-bezier(.4, 0, .2, 1), opacity .45s ease .2s; }
.preview.is-ready .plan__multi, .preview.is-ready .plan__multi-fan { transition: opacity .45s ease .15s; }
.preview.is-ready .unitpic__extra path { transition: stroke-dashoffset .7s ease .1s; }

/* Chyba odeslání formuláře */
.form__error {
  color: #8C1D18; background: #FDF0EF; border: 1px solid #F2C9C5; border-radius: 10px;
  padding: .85rem 1rem; font-size: .9375rem;
}
.form__error[hidden] { display: none; }

/* Tablet a desktop */
@media (min-width: 640px) {
  .hero__actions .btn { flex: 0 0 auto; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .choices--two { grid-template-columns: 1fr 1fr; }
  .refs { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 2rem; }
  .contact div { border-top: 1px solid var(--line); border-bottom: 0; }
  .room { grid-template-columns: minmax(0, 1fr) 8rem 5.5rem; }
  .room__kw { grid-column: auto; text-align: right; padding-bottom: .75rem; }
}

@media (min-width: 900px) {
  body { font-size: 1.125rem; }
  .nav { display: flex; }
  .hero__grid { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 5rem; }
  .calc { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .result { position: sticky; top: 88px; }
  .rez { height: 520vh; }
  .rez__panel { padding: 1.6rem 0 1.4rem; gap: 1.1rem; }
  .rez__panel > * { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
  .rez__step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 4rem; align-items: start; }
  .rez__step { display: grid; }
  .rez__fig .rez__step { display: block; }
  .rez__step .eyebrow { grid-column: 1; margin-bottom: .6rem; font-size: .8125rem; }
  .rez__step h2, .rez__step h3 { grid-column: 1; font-size: clamp(1.75rem, 2.4vw, 2.5rem); margin-bottom: 0; }
  .rez__step p:not(.eyebrow) { grid-column: 2; grid-row: 1 / span 2; align-self: end; font-size: 1.0625rem; line-height: 1.6; }
  .rez__cta { grid-column: 2; margin-top: 1rem; justify-self: start; }
  .rez__label b { font-size: .9375rem; padding: .25rem .6rem; }
  .rez__label span { display: block; }
  .rez__stage .rez__temp { right: 1.5rem; top: 1.5rem; padding: .9rem 1.1rem 1rem; min-width: 12rem; }
  .rez__stage .rez__temp-label { font-size: .8125rem; }
  .rez__stage .rez__temp-value { font-size: 2.6rem; }
  .rez__stage .rez__temp-note { font-size: .6875rem; }
  .rez__fig { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem; align-items: center; }
  .rez__fig .rez__canvas { aspect-ratio: 16 / 10; }
  .preview { padding: 1.4rem 1.5rem 1.2rem; }
  .preview__grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: .75rem; align-items: end; }
  .preview__fig--unit { display: block; }
  .preview__fig--unit .preview__unitcap { margin-top: .35rem; min-height: 2.7em; font-size: .75rem; }

  .result__inner { padding: 2rem; }
  .choices:not(.choices--two) { grid-template-columns: repeat(3, 1fr); }
  .choices:not(.choices--two) .choice__body { height: 100%; }

  .timeline { padding: 2.5rem 0 0; grid-template-columns: repeat(5, 1fr); gap: 2rem; }
  .timeline::before, .timeline::after { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 2px; }
  .timeline::after { transform-origin: left; transform: scaleX(1); }
  .timeline.is-ready::after { transform: scaleX(0); }
  .timeline.is-playing::after { transform: scaleX(1); }
  .timeline__dot { left: 0; top: -2.5rem; box-shadow: 0 0 0 6px var(--alt); }
}

/* Omezení pohybu: rovnou konečný stav */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .timeline::after { transform: none !important; }
  .timeline .timeline__item { opacity: 1 !important; transform: none !important; }
}
