/* =========================================================
   TermoDům – varianta 02 („klasická“)
   Patkové nadpisy (Literata), klidný text (Public Sans),
   tmavá břidlicová modř jako základ. Princip barva = teplota
   platí dál: paleta „iron“ jen pro teplo a výzvy k akci.
   ========================================================= */

:root {
  --bg: #F3F6F8;
  --paper: #FFFFFF;
  --ink: #12202B;
  --navy: #0E2230;
  --navy-2: #173447;
  --muted: #566875;
  --line: #D5DEE5;
  --mist: #E6EDF2;

  --i0: #1B0A3C;
  --i1: #4A1270;
  --i2: #9B1F78;
  --i3: #E0442E;
  --i4: #F7931E;
  --i5: #FFE45C;

  --hot: var(--i4);

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

:focus-visible { outline: 3px solid var(--i4); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .8em;
}

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: .8em 1.5em; border-radius: 6px;
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-hot { background: var(--hot); color: var(--ink); }
.btn-hot:hover { background: var(--i5); }
.btn-line { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .5em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- horní lišta a hlavička ---------- */
.topbar { background: var(--navy); color: #B9C8D3; font-size: .88rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar-contact { display: flex; gap: 20px; }
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 640px) { .topbar-inner > span:first-child { display: none; } .topbar-inner { justify-content: flex-end; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.logo b { font-weight: 750; }
.logo svg { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .97rem; color: var(--navy-2); }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: block; font: inherit; font-weight: 700; background: transparent; border: 2px solid var(--ink); border-radius: 6px; padding: .3em 1em; cursor: pointer; color: var(--ink); }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: .5rem var(--gutter) 1.25rem; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -12px rgba(0,0,0,.2); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--mist); }
  .nav .btn { margin-top: 1rem; }
}

/* ---------- hero ---------- */
/* Výšku úvodu určuje ilustrace (celý dům je vždy vidět), text leží přes její levou část. */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; display: flex; flex-direction: column; }
.hero-art { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 530; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,27,40,.94) 0%, rgba(11,27,40,.8) 30%, rgba(11,27,40,0) 52%);
}
.hero-inner { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-text { max-width: 520px; }
.hero .eyebrow { color: #F7C98B; }
.lead { font-size: 1.18rem; color: #D2DDE5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.hero-caption { position: absolute; z-index: 2; right: 0; bottom: 10px; margin: 0; padding: 0 var(--gutter); font-size: .82rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9); }

@media (max-width: 1000px) {
  .hero::before { display: none; }
  .hero-inner { position: static; order: -1; padding-top: 36px; padding-bottom: 32px; }
  .hero-caption { position: static; padding-top: 10px; padding-bottom: 16px; color: #C3CFD8; text-shadow: none; }
}

/* ---------- úvod / fakta ---------- */
.intro { background: var(--navy-2); color: #DCE5EB; padding: clamp(48px, 7vw, 88px) 0; }
.intro h2 { color: #fff; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.18); }
.facts div { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts div:nth-child(even) { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.18); }
.facts dt { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; color: #fff; line-height: 1.2; }
.facts dd { margin: 4px 0 0; font-size: .93rem; color: #B9C8D3; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---------- sekce ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; margin-bottom: 2.6rem; }
.note { font-size: .9rem; color: var(--muted); margin-top: 1.5rem; }

/* ---------- balíčky ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.pkg { position: relative; background: var(--paper); border-radius: var(--r); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.pkg img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--i0); }
.pkg-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.pkg-main { border: 2px solid var(--navy); box-shadow: 0 24px 48px -28px rgba(14,34,48,.55); }
.pkg-badge { position: absolute; top: 12px; left: 12px; z-index: 1; margin: 0; background: var(--hot); color: var(--ink); font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.pkg-price { color: var(--muted); margin-bottom: .8em; }
.pkg-price b { font-family: var(--serif); font-size: 2.1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.pkg ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.pkg li { padding: 9px 0 9px 26px; border-top: 1px solid var(--mist); position: relative; font-size: .97rem; }
.pkg li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--navy-2); border-bottom: 2px solid var(--navy-2); transform: rotate(-45deg); }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- služby ---------- */
.services { background: var(--paper); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: 36px 0; border-bottom: 1px solid var(--mist); }
.svc:first-of-type { padding-top: 8px; }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--i0); }
.svc-rev img { order: 2; }
.svc p { color: #354754; }
.more { font-weight: 700; color: var(--navy-2); text-underline-offset: 4px; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } .svc-rev img { order: 0; } }

.fve { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); background: var(--navy); color: #DCE5EB; border-radius: var(--r); overflow: hidden; }
.fve img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.fve > div { padding: clamp(24px, 4vw, 44px); }
.fve h3 { color: #fff; font-size: 1.6rem; }
.fve .eyebrow { color: #F7C98B; }
@media (max-width: 760px) { .fve { grid-template-columns: 1fr; } }

/* ---------- formulářové prvky ---------- */
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font-family: var(--serif); font-weight: 650; font-size: 1.3rem; margin-bottom: 14px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
.field small { font-weight: 400; color: var(--muted); margin-left: .3em; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); width: 100%;
  padding: .7em .85em; background: var(--paper); border: 1.5px solid #B7C5D0; border-radius: 6px;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(247,147,30,.4); }
textarea { resize: vertical; }
.input-unit { position: relative; display: block; }
.input-unit input { padding-right: 3.2em; }
.input-unit i { position: absolute; right: .9em; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); pointer-events: none; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; cursor: pointer; font-size: 1rem; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--navy-2); }

/* ---------- kalkulačka ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 40px); }
.calc-result { position: sticky; top: 92px; background: var(--navy); color: #fff; border-radius: var(--r); padding: clamp(22px, 3vw, 32px); }
.r-label { margin: 0; color: #B9C8D3; font-weight: 600; }
.r-big { margin: 4px 0 2px; font-family: var(--serif); font-size: clamp(2.5rem, 5.5vw, 3.6rem); font-weight: 700; line-height: 1.05; color: var(--i5); font-variant-numeric: tabular-nums; }
.r-range { color: #B9C8D3; font-size: .93rem; min-height: 1.5em; }
.r-bars { margin: 18px 0 6px; display: grid; gap: 10px; }
.r-bar { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px; font-size: .9rem; }
.r-bar span { color: #B9C8D3; }
.r-bar i { display: block; height: 12px; border-radius: 6px; width: 0; transition: width .4s ease; }
#bar-now { background: linear-gradient(90deg, var(--i2), var(--i3), var(--i4), var(--i5)); }
#bar-after { background: linear-gradient(90deg, var(--i1), var(--i2), var(--i3)); }
.r-bar b { font-variant-numeric: tabular-nums; min-width: 7.5em; text-align: right; }
@media (prefers-reduced-motion: reduce) { .r-bar i { transition: none; } }
.r-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 22px; border-top: 1px solid rgba(255,255,255,.16); }
.r-stats div { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.r-stats div:nth-child(odd) { padding-right: 12px; }
.r-stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.16); }
.r-stats dt { font-size: .84rem; color: #B9C8D3; }
.r-stats dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.r-note { font-size: .8rem; color: #9FB1BE; margin: 14px 0 0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-result { position: static; } }

/* ---------- postup ---------- */
.steps-section { background: var(--mist); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: s; background: var(--paper); border-radius: var(--r); padding: 26px 22px 22px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: #354754; font-size: .97rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- o nás ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.4em 0 0; }
.ticks li { padding: 10px 0 10px 30px; border-top: 1px solid var(--mist); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--navy-2); border-bottom: 2px solid var(--navy-2); transform: rotate(-45deg); }
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; max-width: 440px; margin: 0 auto; }
.certs a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(14,34,48,.5); transition: transform .15s; }
.certs a:nth-child(2) { margin-top: 28px; }
.certs a:hover { transform: translateY(-3px); }
.certs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.faq-list { border-top: 2px solid var(--navy); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.08rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--navy-2); }
details[open] summary::after { content: "−"; }
details p { padding: 0 40px 18px 0; margin: 0; color: #354754; max-width: 42em; }
@media (max-width: 760px) { .faq-wrap { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- kontakt ---------- */
.contact { background: var(--navy); color: #DCE5EB; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info p { font-size: 1.1rem; max-width: 30em; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); }
.contact-list span { font-size: .85rem; color: #9FB1BE; }
.contact-list a, .contact-list b { font-family: var(--serif); font-size: 1.4rem; font-weight: 650; color: #fff; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-form { background: var(--paper); color: var(--ink); padding: clamp(22px, 3vw, 36px); border-radius: var(--r); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.consent { font-size: .92rem; margin: 6px 0 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.calc-attached { background: var(--bg); border-left: 4px solid var(--hot); padding: 10px 14px; font-size: .93rem; border-radius: 0 6px 6px 0; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #1E7A43; }
.form-status.err { color: #B3261E; }
.contact-form.sent .field, .contact-form.sent .form-row, .contact-form.sent .consent, .contact-form.sent button { opacity: .5; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- patička ---------- */
.site-footer { background: #091821; color: #9FB1BE; padding: 36px 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; }
.footer-grid p { margin: 0 0 .35em; }
.footer-logo { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.site-footer a { color: #DCE5EB; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- podstránky ---------- */
.page { padding: clamp(40px, 7vw, 80px) 0; }
.page .wrap { max-width: 820px; }
.page h2 { font-size: 1.6rem; margin-top: 1.6em; }
