/* =========================================================
   DownHouse — rezidenční finanční analytika
   Paleta: noční fasáda (studené nebe + teplá okna)
   ========================================================= */

:root {
  --ink: #070b12;
  --ink-2: #0b111b;
  --slab: #0e1522;
  --slab-2: #131c2c;
  --line: rgba(140, 170, 210, 0.14);
  --line-strong: rgba(140, 170, 210, 0.28);
  --cold: #6fa8ff;
  --cold-dim: rgba(111, 168, 255, 0.14);
  --warm: #ffb86b;
  --warm-dim: rgba(255, 184, 107, 0.16);
  --text: #e6ecf5;
  --muted: #93a3ba;
  --danger: #ff8f8f;
  --ok: #7ee0b0;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --r: 4px;
  --r-lg: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: var(--cold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--warm);
  color: #14100a;
  padding: 10px 16px;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cold);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cold);
  opacity: 0.7;
}

.lede { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 13px 22px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-warm { background: var(--warm); color: #16110a; }
.btn-warm:hover { background: #ffc98d; }

.btn-cold { background: var(--cold); color: #05101f; }
.btn-cold:hover { background: #8fbcff; }

.btn-line {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-line:hover { border-color: var(--cold); color: var(--cold); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand span small {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--warm); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
}
.header-phone:hover { color: var(--warm); text-decoration: none; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger i {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.burger i:nth-child(1) { top: 15px; }
.burger i:nth-child(2) { top: 21px; }
.burger i:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 58px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.75) contrast(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(111, 168, 255, 0.22), transparent 58%),
    radial-gradient(90% 80% at 8% 90%, rgba(255, 184, 107, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.72) 0%, rgba(7, 11, 18, 0.94) 72%, var(--ink) 100%);
}

.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--warm);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 38px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.hero-stats div { background: rgba(11, 17, 27, 0.86); padding: 16px 18px; }
.hero-stats b {
  display: block;
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--warm);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero-stats small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; display: block; margin-top: 4px; }

/* ---------- Signature: fasáda ---------- */
.facade {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(19, 28, 44, 0.92), rgba(9, 14, 23, 0.96));
  padding: 22px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}
.facade-roof {
  height: 26px;
  background:
    linear-gradient(135deg, transparent 49.4%, var(--cold) 49.4%, var(--cold) 51.5%, transparent 51.5%),
    linear-gradient(-135deg, transparent 49.4%, var(--cold) 49.4%, var(--cold) 51.5%, transparent 51.5%);
  background-size: 52% 100%;
  background-position: left top, right top;
  background-repeat: no-repeat;
  opacity: 0.85;
  margin-bottom: 14px;
}
.facade-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
}
.facade-grid span {
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  background: #1a2740;
  border: 1px solid rgba(140, 170, 210, 0.12);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.facade-grid span.lit {
  background: var(--warm);
  border-color: rgba(255, 184, 107, 0.6);
  box-shadow: 0 0 14px rgba(255, 184, 107, 0.42);
}
.facade-legend {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.facade-legend b { color: var(--warm); font-weight: 500; font-size: 1.02rem; }

/* ---------- Karty služeb ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--slab);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.62;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.card:hover .card-img img { transform: scale(1.05); opacity: 0.8; }
.card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.15), var(--slab) 96%);
}
.card-body { padding: 22px; flex: 1; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cold);
  display: block;
  margin-bottom: 10px;
}

/* ---------- Postup ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step { background: var(--ink-2); padding: 28px 24px 30px; }
.step-no {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--warm);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Kalkulačka ---------- */
.calc {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(22px, 3.4vw, 40px);
  align-items: start;
}
.panel {
  background: var(--slab);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
}
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.field label output {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--warm);
  font-size: 0.95rem;
}

.input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}
.input:focus { border-color: var(--cold); outline: none; }

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 3px;
  background: linear-gradient(90deg, var(--cold) var(--fill, 40%), rgba(140, 170, 210, 0.2) var(--fill, 40%));
  border-radius: 3px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--warm);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 1px var(--warm);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--warm);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 1px var(--warm);
  cursor: grab;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 20px;
}
.result-grid div { background: var(--ink-2); padding: 16px 18px; }
.result-grid span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
  margin-bottom: 6px;
}
.result-grid b {
  font-family: var(--mono);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
.result-grid div.hi b { color: var(--warm); }

.calc-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
}
.calc-alert {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--danger);
  min-height: 1.2em;
}

/* ---------- Ceník ---------- */
.price-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--slab);
  margin-bottom: 34px;
}
.price-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.price-switch button.on { background: var(--cold); color: #05101f; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plan {
  background: var(--slab);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: var(--warm);
  background: linear-gradient(180deg, rgba(255, 184, 107, 0.07), var(--slab) 42%);
}
.plan-flag {
  position: absolute;
  top: -11px;
  left: 26px;
  background: var(--warm);
  color: #16110a;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.plan h3 { margin-bottom: 4px; }
.plan .plan-for { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }
.plan-price {
  font-family: var(--mono);
  font-size: 2.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.plan-price sup { font-size: 0.9rem; color: var(--muted); top: -0.9em; }
.plan-period { color: var(--muted); font-size: 0.86rem; font-family: var(--mono); margin: 6px 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li {
  position: relative;
  padding-left: 26px;
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 11px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: var(--cold);
}
.plan.featured li::before { background: var(--warm); }

.price-extra {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 26px;
}
.price-extra h3 { margin-bottom: 6px; }
.price-extra p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.price-extra .tag {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--warm);
  white-space: nowrap;
}
.price-terms {
  margin-top: 20px;
  font-size: 0.87rem;
  color: var(--muted);
}

/* ---------- Reference ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
}
.quote {
  border: 1px solid var(--line);
  border-left: 2px solid var(--warm);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: var(--slab);
  padding: 26px;
}
.quote p { font-size: 0.98rem; }
.quote footer {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 14px;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 46px 22px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  color: var(--warm);
  font-size: 1.3rem;
  transition: transform 0.22s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--cold); }
.faq .answer { color: var(--muted); font-size: 0.96rem; padding: 0 40px 24px 0; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(22px, 3.4vw, 40px);
  align-items: start;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.form-field .input { font-family: var(--body); }
textarea.input { resize: vertical; min-height: 118px; }
select.input {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236fa8ff' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
select.input option { background: var(--ink); color: var(--text); }

.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--muted);
  margin: 6px 0 20px;
}
.check input { margin-top: 3px; accent-color: var(--warm); width: 17px; height: 17px; flex: none; }

.form-msg {
  margin-top: 16px;
  font-size: 0.9rem;
  font-family: var(--mono);
  min-height: 1.3em;
}
.form-msg.ok { color: var(--ok); }
.form-msg.bad { color: var(--danger); }
.err { color: var(--danger); font-size: 0.78rem; display: block; margin-top: 5px; min-height: 1em; }
.input.invalid { border-color: var(--danger); }

.contact-side { display: grid; gap: 20px; }
.contact-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.contact-photo img { height: 210px; width: 100%; object-fit: cover; opacity: 0.66; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.info-list li:last-child { border-bottom: 0; }
.info-list span {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: clamp(48px, 6vw, 74px) 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a, .linkish {
  color: var(--muted);
  font-size: 0.92rem;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--body);
  cursor: pointer;
  text-align: left;
}
.footer-grid a:hover, .linkish:hover { color: var(--warm); text-decoration: none; }
.footer-about { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* ---------- Cookies ---------- */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  background: rgba(14, 21, 34, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
  display: none;
  gap: 22px;
  align-items: center;
  max-width: 1000px;
  margin-inline: auto;
  backdrop-filter: blur(10px);
}
.cookie-bar.show { display: flex; flex-wrap: wrap; }
.cookie-bar p { font-size: 0.9rem; color: var(--muted); flex: 1 1 340px; margin: 0; }
.cookie-bar .btn { padding: 11px 18px; font-size: 0.88rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(4, 7, 12, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal.show { display: flex; }
.modal-card {
  background: var(--slab);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px;
}
.modal-card h3 { font-size: 1.4rem; }
.toggle-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.toggle-row:last-of-type { border-bottom: 0; }
.toggle-row div { flex: 1; }
.toggle-row strong { display: block; font-size: 0.98rem; }
.toggle-row p { font-size: 0.86rem; color: var(--muted); margin: 4px 0 0; }
.toggle-row input { width: 19px; height: 19px; accent-color: var(--warm); margin-top: 3px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Právní stránky ---------- */
.legal-hero {
  padding: clamp(52px, 7vw, 88px) 0 clamp(30px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 82% 0%, rgba(111, 168, 255, 0.12), transparent 60%),
    var(--ink-2);
}
.legal-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.legal-hero .updated { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.legal-body { padding: clamp(44px, 6vw, 74px) 0; max-width: 820px; }
.legal-body h2 {
  font-size: 1.42rem;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.legal-body h3 { font-size: 1.06rem; margin-top: 26px; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 0.98rem; }
.legal-body ul, .legal-body ol { padding-left: 20px; margin: 0 0 1.1em; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text); }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 0.92rem;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--line);
  padding: 11px 13px;
  text-align: left;
  color: var(--muted);
  vertical-align: top;
}
.legal-table th { color: var(--text); font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.back-link { display: inline-block; margin-top: 34px; font-family: var(--mono); font-size: 0.86rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivita ---------- */
@media (max-width: 1000px) {
  .hero-in, .calc, .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 22px;
    transform: translateY(-140%);
    transition: transform 0.3s ease;
    z-index: 80;
  }
  .nav.open { transform: none; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .header-cta .btn { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .price-extra { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .info-list li { grid-template-columns: 1fr; gap: 2px; }
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .cookie-actions .btn { flex: 1 1 100%; }
  .facade-grid { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
