/*
 * Moderní střecha – styly webu (MVP)
 * Tokeny: 05_DESIGN_SYSTEM/tokens.css (build je kopíruje do assets/css/tokens.css)
 * Pohyb: 05_DESIGN_SYSTEM/MOTION.md – animace jen s třídou .motion na <html>,
 *        tu nastaví skript v <head> a nikdy při prefers-reduced-motion.
 */

/* Doplňkové hodnoty, které v tokenech nejsou */
:root {
  --input-border: #85908b;   /* hrana polí, kontrast 3,3 : 1 */
  --on-dark-muted: #c9dad6;  /* text v patičce, 8 : 1 */
  --focus-on-dark: #ffd3b8;
  --todo-bg: #fff4c2;
  --todo-text: #6b5300;
  --header-height: 68px;
  --section-y: clamp(56px, 2.5rem + 5vw, 112px);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: var(--text-lg); line-height: var(--leading-body); } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; color: var(--color-ink); font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--text-h1); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); line-height: var(--leading-title); }
h3 { font-size: var(--text-h3); line-height: 1.25; font-weight: 700; }
p, ul, ol, figure { margin: 0; }
a { color: var(--color-brand); text-underline-offset: .18em; }
a:hover { color: var(--color-brand-strong); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tel { white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--color-surface); font-weight: 700;
}
.skip-link:focus { top: 12px; }
mark.todo {
  padding: 0 4px; border: 1px dashed currentColor; border-radius: var(--radius-xs);
  background: var(--todo-bg); color: var(--todo-text);
  font-size: .85em; font-weight: 700;
}

/* ---------- Rozvržení ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter-mobile); }
@media (min-width: 768px) { .container { padding-inline: var(--gutter-desktop); } }
.section { padding-block: var(--section-y); }
.section--white { background: var(--color-surface); border-block: 1px solid var(--color-line); }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 1rem + 2vw, 44px); }
.section-head p { margin-top: 12px; color: var(--color-muted); }
.section-foot { margin-top: 32px; }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--color-muted); }
.text-muted { color: var(--color-muted); }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 40px; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }

/* ---------- Tlačítka a odkazy ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--button-height); padding: 12px 22px;
  border: 2px solid transparent; border-radius: var(--radius-md);
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
.btn--primary { background: var(--color-action); color: #fff; }
.btn--primary:hover { background: var(--color-action-strong); color: #fff; }
.btn--secondary { background: var(--color-surface); color: var(--color-brand); border-color: var(--color-brand); }
.btn--secondary:hover { background: var(--color-brand-soft); color: var(--color-brand-strong); }
.btn--ghost { background: transparent; color: var(--color-brand); padding-inline: 12px; }
.btn--ghost:hover { color: var(--color-brand-strong); text-decoration: underline; }
.btn--lg { min-height: 52px; padding-inline: 26px; }
@media (max-width: 479px) { .btn { white-space: normal; text-align: center; } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform var(--duration-fast) var(--ease-standard); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--color-surface); border-bottom: 1px solid var(--color-line);
  transition: box-shadow var(--duration-fast) var(--ease-standard);
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-height); }
.logo { margin-right: auto; color: var(--color-ink); font-size: 1.25rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--color-brand); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone, .header-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--color-line); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-brand);
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.nav { display: none; }
.nav.is-open {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - var(--header-height)); overflow: auto;
  padding: 4px var(--gutter-mobile) calc(24px + var(--mobile-bar-height));
  background: var(--color-surface); border-bottom: 1px solid var(--color-line); box-shadow: var(--shadow-card);
}
.nav-list { list-style: none; padding: 0; }
.nav-list a {
  display: flex; align-items: center; min-height: 52px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink); font-weight: 700; text-decoration: none;
}
.nav-list a[aria-current="page"] { color: var(--color-brand); }
.nav-contact { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 768px) {
  .header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--color-brand); font-weight: 800; text-decoration: none; white-space: nowrap; }
  .header-cta { display: inline-flex; }
  .nav.is-open { padding-inline: var(--gutter-desktop); padding-bottom: 24px; }
}
@media (min-width: 1180px) {
  .logo { margin-right: 0; }
  .nav, .nav.is-open {
    display: block; position: static; margin-inline: auto; padding: 0;
    max-height: none; overflow: visible; background: none; border: 0; box-shadow: none;
  }
  .nav-list { display: flex; gap: 26px; }
  .nav-list a { position: relative; min-height: 0; padding-block: 8px; border: 0; font-weight: 600; }
  .nav-list a:hover { color: var(--color-brand); }
  .nav-list a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    border-radius: 2px; background: var(--color-brand);
  }
  .nav-extra { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-contact, .nav-toggle { display: none; }
}

/* ---------- Hero úvodní stránky ---------- */
.hero { padding-block: clamp(28px, 1rem + 3vw, 72px) var(--section-y); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; } }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 16px; max-width: 34rem; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
@media (min-width: 480px) { .hero-ctas { flex-direction: row; flex-wrap: wrap; } }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.hero-points li {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border-radius: var(--radius-sm); background: var(--color-brand-soft);
  color: var(--color-brand-strong); font-size: var(--text-xs); font-weight: 700;
}
.hero-points .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.hero-visual {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line); border-radius: var(--radius-md); background: #fbfaf7;
}
@media (min-width: 1024px) { .hero-visual { aspect-ratio: 5 / 4; } }
.hero-visual img, .hero-visual .water { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual img { object-fit: cover; object-position: 100% 50%; }


/* ---------- Hero podstránek ---------- */
.page-hero { padding-block: clamp(24px, 1rem + 2.5vw, 64px) clamp(40px, 2rem + 3vw, 80px); }
.page-hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 16px; max-width: 40rem; }
.page-hero .hero-ctas { margin-top: 24px; }
.page-hero .havarie { margin-top: 28px; max-width: 40rem; }
.breadcrumbs { margin-bottom: 16px; font-size: var(--text-xs); color: var(--color-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--color-line); }
.breadcrumbs a { color: var(--color-muted); }

/* ---------- Karty ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .cards--2, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px;
  border: 1px solid var(--color-line); border-radius: var(--radius-md);
  background: var(--color-surface); box-shadow: var(--shadow-soft);
  transition: transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}
.card h3 { font-size: 1.25rem; }
.card p { color: var(--color-muted); }
.card-icon { width: 56px; height: 56px; }
.card--link:hover, .card--link:focus-within { transform: translateY(-4px); border-color: var(--color-brand); box-shadow: var(--shadow-card); }
.card-link { margin-top: auto; padding-top: 4px; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link:focus-within { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.card--link .card-link:focus-visible { outline: none; }
.feature-icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--radius-md); background: var(--color-brand-soft); color: var(--color-brand);
}
.feature-icon--action { background: var(--color-action-soft); color: var(--color-action-strong); }

/* Odhalení při vstupu do obrazovky (karty, kroky…) */
.motion [data-reveal] {
  opacity: 0; translate: 0 12px;
  transition: opacity 360ms var(--ease-emphasized) calc(var(--i, 0) * 80ms),
              translate 360ms var(--ease-emphasized) calc(var(--i, 0) * 80ms),
              transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}
.motion [data-reveal].is-visible { opacity: 1; translate: none; }

/* ---------- Seznamy s ikonou ---------- */
.checklist { display: grid; gap: 12px; padding: 0; list-style: none; }
@media (min-width: 768px) { .checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; } }
.checklist li { display: flex; align-items: flex-start; gap: 12px; }
.check-dot {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-top: 1px;
  border-radius: 50%; background: var(--color-brand-soft); color: var(--color-brand);
}
.check-dot .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.panel {
  padding: clamp(20px, 1rem + 2vw, 36px);
  border: 1px solid var(--color-line); border-radius: var(--radius-md);
  background: var(--color-surface); box-shadow: var(--shadow-soft);
}
.note {
  margin-top: 24px; padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--color-brand-soft); color: var(--color-brand-strong); font-weight: 600;
}

/* ---------- Text + ilustrace ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.split .lead, .split p + p { margin-top: 16px; }
.split .link-arrow { margin-top: 20px; }


/* ---------- Postup zakázky ---------- */
.timeline { position: relative; display: grid; padding: 0; list-style: none; counter-reset: krok; }
.timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 24px; }
.timeline li::before {
  counter-increment: krok; content: counter(krok);
  position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--color-brand); color: #fff; font-weight: 800;
  transition: background-color 300ms var(--ease-standard) calc(var(--i, 0) * 150ms),
              color 300ms var(--ease-standard) calc(var(--i, 0) * 150ms);
}
.timeline li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--color-line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { padding-top: 8px; font-size: 1.125rem; }
.timeline p { margin-top: 4px; color: var(--color-muted); font-size: var(--text-sm); }
.motion .timeline li::before { background: var(--color-brand-soft); color: var(--color-brand); }
.motion .timeline.is-visible li::before { background: var(--color-brand); color: #fff; }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(var(--kroky, 6), minmax(0, 1fr)); gap: 24px; }
  .timeline li { grid-template-columns: 1fr; gap: 14px; padding-bottom: 0; }
  .timeline li::after { display: none; }
  .timeline h3 { padding-top: 0; }
  .timeline::before, .timeline::after {
    content: ""; position: absolute; left: 20px; right: 20px; top: 19px; height: 2px;
  }
  .timeline::before { background: var(--color-line); }
  .timeline::after { background: var(--color-brand); transform-origin: left center; }
  .motion .timeline::after { transform: scaleX(0); transition: transform 1200ms var(--ease-emphasized); }
  .motion .timeline.is-visible::after { transform: none; }
}
.timeline--detail li { padding-bottom: 32px; }
.timeline--detail h3 { font-size: 1.25rem; }
.timeline--detail p { font-size: inherit; max-width: 40rem; }
@media (min-width: 1024px) { .timeline--detail { grid-template-columns: 1fr; gap: 0; max-width: 760px; } .timeline--detail::before, .timeline--detail::after { display: none; } .timeline--detail li { grid-template-columns: 40px 1fr; gap: 20px; padding-bottom: 32px; } .timeline--detail li::after { display: block; } .timeline--detail h3 { padding-top: 7px; } }

/* ---------- Kontaktní osoba a havárie ---------- */
.duo { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }
.person-card {
  display: flex; align-items: center; gap: 20px; padding: 24px;
  border: 1px solid var(--color-line); border-radius: var(--radius-md);
  background: var(--color-surface); box-shadow: var(--shadow-soft);
}
.avatar {
  display: grid; place-items: center; flex: none; width: 76px; height: 76px;
  border-radius: 50%; background: var(--color-brand-soft); color: var(--color-brand);
  font-size: 1.5rem; font-weight: 800;
}
@media (max-width: 479px) { .person-card { flex-direction: column; align-items: flex-start; } }
.person-name { font-size: 1.25rem; font-weight: 800; }
.person-role { color: var(--color-muted); }
.person-contacts { display: grid; gap: 6px; margin-top: 12px; padding: 0; list-style: none; }
.person-contacts a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; word-break: break-word; }
.person-contacts a:hover { text-decoration: underline; }
.havarie {
  display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px;
  border-left: 4px solid var(--color-action); border-radius: var(--radius-md);
  background: var(--color-action-soft);
}
.havarie > div { flex: 1; min-width: 0; }
.havarie-icon { width: 26px; height: 26px; margin-top: 2px; color: var(--color-action-strong); }
.havarie-title { font-size: 1.25rem; font-weight: 800; }
.havarie p { margin-top: 6px; color: var(--color-ink); }
.havarie .btn { margin-top: 16px; }
@media (max-width: 479px) { .havarie .btn { width: 100%; white-space: normal; } }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px; padding: 4px clamp(18px, 1rem + 1vw, 28px);
  border: 1px solid var(--color-line); border-radius: var(--radius-md);
  background: var(--color-surface); box-shadow: var(--shadow-soft);
}
.faq details + details { border-top: 1px solid var(--color-line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px 0; font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--color-brand); transition: transform var(--duration-fast) var(--ease-standard); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq-answer { max-width: 640px; padding-bottom: 20px; color: var(--color-muted); }

/* ---------- Poptávka a formulář ---------- */
.section--poptavka { background: var(--color-brand-soft); }
.poptavka-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .poptavka-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; } }
.poptavka-info .lead { margin-top: 12px; }
.contact-list { display: grid; gap: 12px; margin-block: 24px; padding: 0; list-style: none; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: 10px; color: var(--color-ink); font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--color-brand); text-decoration: underline; }
.contact-list .icon { color: var(--color-brand); }
.form-card {
  position: relative; padding: clamp(20px, 1rem + 2vw, 36px);
  border: 1px solid var(--color-line); border-radius: var(--radius-md);
  background: var(--color-surface); box-shadow: var(--shadow-card);
}
.form-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-honeypot { position: absolute; left: -9999px; }
.form-progress { margin-bottom: 6px; color: var(--color-brand); font-size: var(--text-xs); font-weight: 700; }
.form-step + .form-step { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--color-line); }
.js-form .form-step + .form-step { margin-top: 0; padding-top: 0; border: 0; }
.form-step-title { margin-bottom: 20px; padding: 0; font-size: 1.375rem; font-weight: 800; }
.form-card .choice-group { margin-bottom: 20px; }
.choice-group legend, .field label:not(.upload) { display: block; margin-bottom: 8px; padding: 0; font-size: var(--text-sm); font-weight: 700; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--input-border); border-radius: var(--radius-md);
  background: var(--color-surface); font-size: var(--text-sm); font-weight: 600;
  transition: border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}
.choice input:hover + span { border-color: var(--color-brand); }
.choice input:checked + span { border-color: var(--color-brand); background: var(--color-brand-soft); color: var(--color-brand-strong); box-shadow: inset 0 0 0 1px var(--color-brand); }
.choice input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.field { margin-bottom: 16px; }
.req { color: var(--color-action-strong); }
.input {
  width: 100%; min-height: var(--input-height); padding: 10px 14px;
  border: 1px solid var(--input-border); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-ink); font: inherit; font-size: 1rem;
}
.input:focus { outline: 3px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-brand); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input[aria-invalid="true"] { border: 2px solid var(--color-danger); }
.fields-2 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .fields-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field-hint { display: block; margin-top: 6px; color: var(--color-muted); font-size: var(--text-xs); font-weight: 400; }
.field-hint--pair { margin: -8px 0 16px; }
.field-error { margin-top: 6px; color: var(--color-danger); font-size: var(--text-xs); font-weight: 700; }
.field-error--pair { margin: -8px 0 16px; }
.upload {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px;
  border: 2px dashed var(--input-border); border-radius: var(--radius-md);
  background: var(--color-page); cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.upload:hover { border-color: var(--color-brand); }
.upload:focus-within { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-brand-soft); color: var(--color-brand); }
.upload-list { margin-top: 8px; padding: 0; list-style: none; color: var(--color-muted); font-size: var(--text-xs); }
.form-alert {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 14px 16px;
  border-left: 4px solid var(--color-action); border-radius: var(--radius-md);
  background: var(--color-action-soft); font-size: var(--text-sm);
}
.form-alert .icon { color: var(--color-action-strong); margin-top: 2px; }
.form-alert a { color: var(--color-action-strong); font-weight: 800; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.form-note { margin-top: 16px; color: var(--color-muted); font-size: var(--text-xs); }

/* ---------- Patička ---------- */
.site-footer { padding-block: 56px 32px; background: var(--color-brand-strong); color: var(--on-dark-muted); font-size: var(--text-sm); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.logo--light { color: #fff; }
.logo--light:hover { color: #fff; }
.footer-about { margin-top: 12px; max-width: 26rem; }
.footer-title { margin-bottom: 12px; color: #fff; font-size: 1rem; font-weight: 800; }
.footer-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.footer-legal { display: grid; gap: 6px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .18); }
@media (max-width: 767px) { .site-footer { padding-bottom: calc(32px + var(--mobile-bar-height) + env(safe-area-inset-bottom)); } }

/* ---------- Mobilní lišta ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  min-height: var(--mobile-bar-height);
  padding: 8px var(--gutter-mobile) calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-line); background: var(--color-surface);
  box-shadow: 0 -8px 24px rgb(32 37 34 / .08);
}
.mobile-bar .btn { min-height: 48px; padding-inline: 8px; white-space: normal; text-align: center; }
.motion .mobile-bar { animation: bar-in var(--duration-base) var(--ease-emphasized) both; }
@keyframes bar-in { from { transform: translateY(16px); opacity: 0; } }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- Drobnosti ---------- */
.thanks { padding-block: clamp(48px, 2rem + 6vw, 120px); }
.thanks .lead { margin-top: 16px; max-width: 36rem; }
.thanks .havarie { margin-top: 28px; max-width: 36rem; }
.thanks .btn { margin-top: 28px; }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.area-list li { padding: 6px 12px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-surface); font-size: var(--text-sm); font-weight: 600; }
.company-data { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin-top: 16px; }
.company-data dt { color: var(--color-muted); }
.company-data dd { margin: 0; font-weight: 700; }
.card-title-h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.25; }

/* =========================================================
   Obrázky a animace v3 (assets/design/v3)
   ========================================================= */
.media { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius-md); background: var(--color-brand-soft); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Hero úvodu: suchá střecha + mokrá vrstva odkrytá maskou podél toku vody */
.water .voda-cesta { fill: none; stroke: #fff; stroke-width: 120; stroke-linecap: round; stroke-linejoin: round; }
.water .voda-vpust { fill: #fff; transform-box: fill-box; transform-origin: center; }
.water .drain-ring { fill: none; stroke: #fff; stroke-width: 5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.motion .water .wet { mask: url(#voda-maska); }
.motion .water .voda-cesta { stroke-dasharray: 100; animation: voda-tok 8s var(--ease-standard) .5s infinite both; }
.motion .water .voda-vpust { animation: voda-louze 8s ease-out .5s infinite both; }
.motion .water .drain-ring { animation: voda-kruh 8s ease-out .5s infinite; }
@keyframes voda-tok {
  0% { stroke-dashoffset: 100; opacity: 1; }
  42% { stroke-dashoffset: 0; }
  86% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes voda-louze {
  0%, 34% { transform: scale(0); opacity: 1; }
  52% { transform: scale(1); }
  86% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes voda-kruh {
  0%, 40% { opacity: 0; transform: scale(.6); }
  48% { opacity: .85; }
  72%, 100% { opacity: 0; transform: scale(1.6); }
}

/* Hero podstránek s obrázkem */
.page-hero-media { aspect-ratio: 4 / 5; box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .page-hero-media { aspect-ratio: 16 / 10; } }
.motion .page-hero-media img { animation: media-in 1600ms var(--ease-emphasized) both; }
@keyframes media-in { from { transform: scale(1.06); } }

/* Karty s obrázkem */
.card--media { gap: 0; padding: 0; overflow: hidden; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-brand-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-standard); }
.card--link:hover .card-media img, .card--link:focus-within .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }

/* Příznaky s malými obrázky */
.symptoms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
@media (min-width: 900px) { .symptoms { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
.symptom {
  overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-md);
  background: var(--color-surface); box-shadow: var(--shadow-soft);
}
.symptom img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.symptom p { padding: 10px 12px 12px; font-size: var(--text-sm); font-weight: 600; line-height: 1.35; }
@media (max-width: 899px) { .symptom:last-child:nth-child(odd) { grid-column: span 2; } .symptom:last-child:nth-child(odd) img { aspect-ratio: 2 / 1; } }

/* Odkrytí obrázku zleva doprava – jako rozbalení fólie */
.motion .wipe img { clip-path: inset(0 100% 0 0); transition: clip-path 1500ms var(--ease-emphasized) 150ms; }
.motion .wipe.is-visible img { clip-path: inset(0 0 0 0); }

/* Mapa míst zatékání s body */
.spots { display: grid; gap: 24px; }
@media (min-width: 1024px) { .spots { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.spots-media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-card); background: var(--color-brand-soft); }
.spots-media img { display: block; width: 100%; height: auto; }
.spot {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--color-action); box-shadow: 0 0 0 3px #fff, 0 4px 10px rgb(0 0 0 / .25);
  transition: background-color var(--duration-fast) var(--ease-standard), transform 400ms var(--ease-emphasized) calc(var(--i, 0) * 160ms + 200ms);
}
.spot::before { content: ""; position: absolute; inset: -3px; border: 2px solid var(--color-action); border-radius: 50%; opacity: 0; }
.spot-label {
  position: absolute; left: 50%; bottom: calc(100% + 6px); display: block; padding: 2px 6px;
  border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-soft);
  color: var(--color-ink); font-size: .6875rem; font-weight: 700; white-space: nowrap; transform: translateX(-50%);
}
@media (min-width: 768px) { .spot-label { bottom: calc(100% + 8px); padding: 3px 8px; font-size: .8125rem; } }
.spot.is-active { background: var(--color-brand); }
.spot.is-active::before { border-color: var(--color-brand); }
.motion .spots .spot { transform: scale(0); }
.motion .spots.is-visible .spot { transform: none; }
.motion .spots.is-visible .spot::before { animation: spot-pulse 2.6s ease-out calc(var(--i, 0) * 160ms + 700ms) infinite; }
@keyframes spot-pulse { 0% { opacity: .8; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(2.6); } }
.spot-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.spot-list li {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.spot-list li.is-active { border-color: var(--color-action); box-shadow: var(--shadow-soft); }
.spot-dot { flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--color-action); box-shadow: 0 0 0 3px var(--color-action-soft); }
.spot-list li { align-items: center; }
.spot-thumb { position: relative; flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-brand-soft); }
.spot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.spot-thumb .spot-dot { position: absolute; top: 5px; left: 5px; width: 12px; height: 12px; margin: 0; box-shadow: 0 0 0 2px #fff; }
.spot-list h3 { font-size: 1.0625rem; }
.spot-list p { margin-top: 2px; color: var(--color-muted); font-size: var(--text-sm); }

/* Srovnání lokální oprava × rekonstrukce */
.compare .card { border-top: 4px solid var(--color-brand); }
.compare .card--alt { border-top-color: var(--color-action); }
.compare h3 { font-size: 1.25rem; }
.compare .checklist { margin-top: 4px; }
.page-hero-media--wide { aspect-ratio: 16 / 10; }

/* Odkrytí odspodu – vrstvy střechy se „poskládají“ */
.motion .wipe.wipe--up img { clip-path: inset(100% 0 0 0); }
.motion .wipe.wipe--up.is-visible img { clip-path: inset(0 0 0 0); }

/* Posuvník před / po */
.compare-slider {
  --pos: 50%;
  position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius-md); background: var(--color-brand-soft); box-shadow: var(--shadow-card);
}
.compare-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 0 1px rgb(32 37 34 / .15); pointer-events: none;
}
.compare-knob {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: #fff; color: var(--color-brand); box-shadow: var(--shadow-card);
}
.compare-tag {
  position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: var(--radius-sm);
  background: rgb(32 37 34 / .75); color: #fff; font-size: .8125rem; font-weight: 700; pointer-events: none;
}
.compare-tag--before { left: 12px; }
.compare-tag--after { right: 12px; }
.compare-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-slider:focus-within { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* Kroky postupu s obrázkem */
.step-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; }
.step-body h3 { grid-column: 1; grid-row: 1; align-self: center; }
.step-body .step-img { grid-column: 2; grid-row: 1; }
.step-body p { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; }
.step-img { width: 64px; height: 64px; border-radius: var(--radius-md); object-fit: cover; box-shadow: var(--shadow-soft); }
@media (min-width: 768px) {
  .step-img { width: 140px; height: 140px; }
  .step-body h3 { align-self: start; }
  .step-body .step-img { grid-row: 1 / span 2; }
  .step-body p { grid-column: 1; }
}
.motion .timeline .step-img { opacity: 0; transform: scale(.92); transition: opacity 500ms var(--ease-emphasized) calc(var(--i, 0) * 150ms + 200ms), transform 500ms var(--ease-emphasized) calc(var(--i, 0) * 150ms + 200ms); }
.motion .timeline.is-visible .step-img { opacity: 1; transform: none; }

/* Logo (assets/brand – zdroj od uživatele, pozadí odstraněné; poměr 4,44 : 1) */
.logo img { display: block; width: auto; height: 36px; }
@media (min-width: 480px) { .logo img { height: 40px; } }
@media (min-width: 1180px) { .logo img { height: 44px; } }
@media (min-width: 1280px) { .logo img { height: 48px; } }
@media (min-width: 1180px) and (max-width: 1279px) { .nav-list { gap: 20px; } }
.logo--light img { height: 48px; }
