/* Spočítejte si úsporu: kontaktní formulář s odhadem úspory (/reseni/zajem). Doplňuje reseni.css. */

.hero.compact { padding: 48px 0 8px; }

.hero.compact h1 { max-width: 22ch; }

.calc-section { padding: 32px 0 72px; }

.calc {
  display: grid; gap: 24px; align-items: start;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "firma vysledek" "funkce vysledek" "kontakt vysledek";
}

.calc[hidden] { display: none; }

.area-firma { grid-area: firma; }
.area-funkce { grid-area: funkce; }
.area-kontakt { grid-area: kontakt; }
.area-vysledek { grid-area: vysledek; position: sticky; top: 84px; }

.panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

.panel-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }

.panel-head h2 { font-size: 24px; }

.step-no {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 16px;
}

.sample { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-soft); }

.field { margin-bottom: 22px; }

.field:last-child { margin-bottom: 0; }

.field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 16px; }

.req { color: var(--warm); }

.opt { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--ink-faint); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"],
.field select, .field textarea {
  display: block; width: 100%; padding: 12px 14px; border: 1px solid #b9c5d2; border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4;
}

.field textarea { resize: vertical; min-height: 88px; }

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.stepper button:focus-visible, .check input:focus-visible, .how summary:focus-visible {
  outline: 3px solid rgba(215, 25, 32, .4); outline-offset: 1px; border-color: var(--brand);
}

.field [aria-invalid="true"] { border-color: #b42318; background: #fff8f7; }

.help { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-faint); }

.err { margin: 8px 0 0; font-size: 14.5px; font-weight: 600; color: #b42318; }

.err[hidden] { display: none; }

.stepper { display: flex; max-width: 230px; }

.stepper input { text-align: center; border-radius: 0 !important; font-size: 20px !important; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }

.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stepper button {
  flex: none; width: 52px; border: 1px solid #b9c5d2; background: var(--wash); color: var(--brand-dark);
  font: inherit; font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer;
}

.stepper button:first-child { border-radius: 10px 0 0 10px; border-right: 0; }

.stepper button:last-child { border-radius: 0 10px 10px 0; border-left: 0; }

.stepper button:hover { background: var(--brand-wash); }

.unit-input { position: relative; max-width: 230px; }

.unit-input input { padding-right: 56px !important; font-weight: 700 !important; }

.unit-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-faint); font-size: 14px; }

.grid-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 0; font-weight: 500; font-size: 15.5px; color: var(--ink-soft); cursor: pointer; }

.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }

.submit-row .fine { margin: 0; font-size: 14.5px; color: var(--ink-faint); }

.big-btn { padding: 15px 26px; font-size: 17px; }

button.button { font-family: inherit; }

button.button:disabled { opacity: .6; cursor: progress; }

/* výsledek */
.result {
  padding: 28px; border: 1px solid #f0b4b7; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--brand-wash) 0%, #fff 55%); box-shadow: var(--shadow);
}

.result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 20px; }

.result-head h2 { font-size: 22px; }

.result-label { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-soft); }

.big { margin: 2px 0 0; font-size: clamp(34px, 4.4vw, 46px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }

.big small { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; letter-spacing: 0; color: var(--ink-soft); }

.big-sub { margin: 6px 0 24px; color: var(--ink-soft); font-size: 16px; }

.big-sub strong { color: var(--ink); }

.bars { display: grid; gap: 16px; }

.bar-row .bar-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 15px; color: var(--ink-soft); }

.bar-row .bar-label b { color: var(--ink); font-variant-numeric: tabular-nums; }

.track { position: relative; height: 16px; border-radius: 8px; background: var(--wash-strong); overflow: hidden; }

.track .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; transition: width .35s ease; }

.fill.today { background: #7b8a9a; }

.fill.saved { background: #8fd1b6; }

.fill.saved.strong { background: var(--accent); }

@media (prefers-reduced-motion: reduce) { .track .fill { transition: none; } }

.facts { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }

.facts div { display: grid; gap: 2px; }

.facts dt { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

.facts dd { margin: 0; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }

.cap-note { margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--warm-wash); color: var(--warm); font-size: 14.5px; }

.cap-note[hidden] { display: none; }

.empty { margin: 0; padding: 24px 0; color: var(--ink-soft); }

#vysledek-prazdny[hidden], #vysledek-obsah[hidden] { display: none; }

.how { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }

.how summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); border-radius: 6px; }

.how ol { margin: 12px 0; padding-left: 22px; }

.how li { margin-bottom: 8px; }

.how p { margin: 0; color: var(--ink-faint); }

/* poděkování */
.thanks { max-width: 720px; margin: 0 auto; padding: 40px 32px; text-align: center; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }

.thanks[hidden] { display: none; }

.thanks:focus { outline: none; }

.thanks-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); }

.thanks-icon svg { width: 32px; height: 32px; }

.thanks h2 { font-size: clamp(26px, 3.4vw, 34px); }

.thanks .lead { margin: 12px auto 0; max-width: 52ch; font-size: 18px; color: var(--ink-soft); }

.thanks-sum { margin: 28px 0 0; padding: 20px 24px; text-align: left; border-radius: var(--radius); background: var(--wash); }

.thanks-sum h3 { font-size: 16px; margin-bottom: 12px; }

.thanks-sum .ticks { margin: 0; }

.thanks .actions { justify-content: center; }

/* skutečné číslo z praxe */
.quote { margin: 20px 0 0; padding-left: 16px; border-left: 4px solid var(--brand); color: var(--ink); font-size: 17px; }

.quote span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--ink-faint); }

.panel.master { padding: 32px; box-shadow: var(--shadow); }

.bars-note { margin: 22px 0 0; font-size: 16px; color: var(--ink-soft); }

.bars-note strong { color: var(--accent); }

@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "firma" "vysledek" "funkce" "kontakt"; }
  .area-vysledek { position: static; }
  .panel, .result { padding: 22px 18px; }
  .grid-fields { grid-template-columns: minmax(0, 1fr); }
  .hero.compact { padding-top: 32px; }
  .thanks { padding: 32px 18px; }
}

@media print {
  .hp, .stepper button { display: none !important; }
  .area-vysledek { position: static; }
  .calc { display: block; }
  .panel, .result { margin-bottom: 14pt; break-inside: avoid; box-shadow: none; }
}

/* jak to počítáme: funkce k odškrtnutí */
.how-link { margin: 20px 0 0; font-size: 15px; font-weight: 600; }

.how-steps { margin: 0 0 24px; padding-left: 22px; color: var(--ink-soft); font-size: 15.5px; }

.how-steps li { margin-bottom: 8px; }

.how-note { margin: 16px 0 0; font-size: 14.5px; color: var(--ink-faint); }

.features { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }

.features legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; width: 100%; margin-bottom: 12px; font-weight: 700; font-size: 17px; }

.linklike { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: underline; cursor: pointer; }

.feature {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}

.feature:hover { border-color: #b9c5d2; }

.feature:has(input:checked) { border-color: #f0b4b7; background: var(--brand-wash); }

.feature input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }

.feature input:focus-visible { outline: 3px solid rgba(215, 25, 32, .4); outline-offset: 2px; }

.feature-body { display: grid; gap: 2px; }

.feature-name { font-weight: 700; font-size: 16.5px; }

.feature-desc { font-size: 15px; color: var(--ink-soft); }

.feature-link { justify-self: start; margin-top: 4px; font-size: 14.5px; font-weight: 600; }

.feature-share { padding-top: 3px; font-size: 14px; font-weight: 700; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

.feature:not(:has(input:checked)) .feature-name, .feature:not(:has(input:checked)) .feature-desc { opacity: .6; }

/* otázka k ceně */
.price-q { margin: 0 0 28px; padding: 20px; border: 1px solid #f0b4b7; border-radius: var(--radius); background: var(--brand-wash); }

.price-q legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-size: 17px; font-weight: 600; line-height: 1.45; }

.price-q legend + * { clear: both; }

.price-q strong { color: var(--brand-dark); white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip { position: relative; cursor: pointer; }

.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

.chip span { display: block; padding: 10px 18px; border: 1px solid #d3a9ab; border-radius: 999px; background: #fff; font-weight: 600; font-size: 15.5px; }

.chip input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }

.chip input:focus-visible + span { outline: 3px solid rgba(215, 25, 32, .4); outline-offset: 2px; }

.price-alt { margin-top: 16px; }

.price-alt[hidden] { display: none; }

.price-alt label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 15.5px; }

.price-q .help { margin-top: 14px; }

@media (max-width: 900px) {
  .feature { grid-template-columns: auto minmax(0, 1fr); }
  .feature-share { grid-column: 2; padding-top: 0; }
  .price-q { padding: 16px; }
}
