/* ==========================================================================
   Hodinový manžel – Dalibor Bartoš
   Společný styl pro všechny stránky
   ========================================================================== */

:root {
  --navy-900: #0b1a30;
  --navy-800: #102542;
  --navy-700: #183358;
  --navy-600: #24476f;
  --accent: #f59e0b;
  --accent-dark: #d98705;
  --accent-light: #fde7b8;
  --text: #1c2533;
  --text-muted: #5a6577;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --border: #e2e7ef;
  --success: #15803d;
  --error: #c62828;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(11, 26, 48, 0.08);
  --shadow: 0 8px 24px rgba(11, 26, 48, 0.10);
  --shadow-lg: 0 18px 40px rgba(11, 26, 48, 0.16);

  --container: 1160px;
  --header-h: 72px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & základ ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  color: var(--navy-800);
  font-weight: 750;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--navy-900);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.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;
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn-primary { background: var(--accent); color: var(--navy-900); box-shadow: 0 6px 18px rgba(245, 158, 11, .35); }
.btn-primary:hover { background: var(--accent-dark); color: var(--navy-900); }

.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }

.btn-block { width: 100%; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 26, 48, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.logo:hover { color: #fff; }
/* Logo má průhledné pozadí, takže ho nic nerámuje ani nezmenšuje. */
.logo-mark { display: block; flex-shrink: 0; line-height: 0; }
.logo-mark img {
  display: block;
  height: 48px;
  width: auto;
  max-width: none;
  object-fit: contain;
  /* bílý obrys, aby tmavě modrá část domečku vystoupila nad tmavou lištou */
  filter: drop-shadow(0 0 1.5px #ffffff) drop-shadow(0 0 2px rgba(255, 255, 255, 0.85));
}
.main-nav .nav-cta { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1100px) {
  .logo-text span { display: none; }
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo-text strong { font-size: 1.05rem; font-weight: 750; white-space: nowrap; }
.logo-text span { font-size: .8rem; color: rgba(255,255,255,.7); white-space: nowrap; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 600;
  font-size: .97rem;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.main-nav a[aria-current="page"] { color: var(--accent); }
.main-nav .nav-cta {
  margin-left: 8px;
  background: var(--accent);
  color: var(--navy-900);
  border-radius: 999px;
  padding: 10px 18px;
}
.main-nav .nav-cta:hover { background: var(--accent-dark); color: var(--navy-900); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(245,158,11,.22), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(36,71,111,.9), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  padding-block: clamp(64px, 10vw, 120px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245,158,11,.14);
  color: var(--accent);
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.eyebrow svg { width: 16px; height: 16px; }

.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 .accent { color: var(--accent); }
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: rgba(255,255,255,.82);
  max-width: 36em;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-card h2 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.hero-card > p { color: rgba(255,255,255,.7); font-size: .95rem; }
.hero-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-card .price-row span { color: rgba(255,255,255,.85); }
.hero-card .price-row strong { color: var(--accent); font-size: 1.3rem; white-space: nowrap; }
.hero-card .btn { margin-top: 12px; }

/* Podstránky – menší hero */
.page-hero {
  color: #fff;
  background:
    radial-gradient(800px 360px at 90% -20%, rgba(245,158,11,.2), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  padding-block: clamp(48px, 8vw, 88px);
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 42em; font-size: 1.12rem; margin: 0; }
.breadcrumb {
  font-size: .88rem;
  margin-bottom: 14px;
  color: rgba(255,255,255,.6);
}
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Sekce ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--navy-800); color: rgba(255,255,255,.85); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.72); }

.kicker {
  display: block;
  font-size: .85rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.section-dark .kicker { color: var(--accent); }

/* ---------- Karty služeb ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-muted); font-size: .98rem; }
.card .card-link {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card .card-link:hover { color: var(--accent-dark); }
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(3px); }

.icon-box {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--navy-800);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.icon-box svg { width: 28px; height: 28px; }

/* ---------- Proč já ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px 32px;
}
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item .num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy-900);
  font-weight: 800;
  flex-shrink: 0;
}
.why-item h3 { font-size: 1.1rem; margin-bottom: .3em; }
.why-item p { margin: 0; font-size: .98rem; }

/* ---------- Postup ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  border: 1px solid var(--border);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .35em; }
.steps p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- CTA pruh ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent) 0%, #fbbf24 100%);
  color: var(--navy-900);
  padding-block: clamp(40px, 6vw, 64px);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-inner h2 { color: var(--navy-900); margin-bottom: .2em; }
.cta-inner p { margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Rychlý kontakt ---------- */
.quick-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.contact-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  min-width: 0;
}
a.contact-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.contact-tile .icon-box { margin: 0; width: 48px; height: 48px; }
.contact-tile .icon-box svg { width: 24px; height: 24px; }
.contact-tile small { display: block; color: var(--text-muted); font-size: .85rem; }
.contact-tile strong { display: block; font-size: 1.05rem; color: var(--navy-800); overflow-wrap: anywhere; }

/* ---------- Detail služeb ---------- */
.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-nav a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: var(--navy-700);
  font-weight: 600;
  font-size: .95rem;
  transition: border-color .2s, background-color .2s;
}
.service-nav a:hover { border-color: var(--accent); background: var(--accent-light); color: var(--navy-900); }

.service-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: 48px;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: 0; }
.service-aside .icon-box { width: 64px; height: 64px; }
.service-aside .icon-box svg { width: 32px; height: 32px; }
.service-aside h2 { font-size: 1.6rem; }
.rate-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
}
.rate-badge.pro { background: var(--accent); color: var(--navy-900); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 24px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102542' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.note {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: .97rem;
  color: var(--text-muted);
  margin: 0;
}
.note strong { color: var(--navy-800); }

/* ---------- Ceník ---------- */
.rate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.rate-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.rate-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}
.rate-card h2 { font-size: 1.35rem; margin-bottom: .25em; }
.rate-card .rate-desc { color: var(--text-muted); font-size: .97rem; }
.rate-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 20px;
  color: var(--navy-800);
}
.rate-price strong { font-size: clamp(2.4rem, 6vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.rate-price span { color: var(--text-muted); font-weight: 600; }
.rate-card .check-list { grid-template-columns: 1fr; margin-bottom: 24px; }
.rate-card .btn { margin-top: auto; }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.price-table thead th {
  background: var(--navy-800);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.price-table td:last-child { white-space: nowrap; font-weight: 700; color: var(--navy-800); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.info-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.info-box h3 { display: flex; align-items: center; gap: 12px; }
.info-box h3 .icon-box { width: 42px; height: 42px; margin: 0; border-radius: 10px; }
.info-box h3 .icon-box svg { width: 22px; height: 22px; }
.info-box p:last-child, .info-box ul:last-child { margin-bottom: 0; }
.info-box ul { color: var(--text-muted); }

.small-print { font-size: .9rem; color: var(--text-muted); margin-top: 24px; }

/* ---------- Kontakt ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-details {
  background: var(--navy-800);
  color: rgba(255,255,255,.85);
  border-radius: 18px;
  padding: 32px 28px;
}
.contact-details h2 { color: #fff; font-size: 1.4rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  min-width: 0;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-list small { display: block; color: rgba(255,255,255,.55); font-size: .82rem; }
.contact-list a, .contact-list strong { color: #fff; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }

.area-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.area-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: .88rem;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.5rem; margin-bottom: .3em; }
.form-card > p { color: var(--text-muted); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 650; font-size: .95rem; color: var(--navy-800); }
.form-field label .req { color: var(--accent-dark); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input[type="file"] { padding: 9px 12px; cursor: pointer; font-size: .95rem; }
.form-field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 650; margin-right: 12px; padding: 7px 14px;
  border: 0; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--navy-800); cursor: pointer;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(36,71,111,.15);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--error); }
.field-error {
  color: var(--error);
  font-size: .85rem;
  min-height: 1.2em;
}
.hint { color: var(--text-muted); font-size: .85rem; }

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .93rem;
  color: var(--text-muted);
}
.checkbox input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--navy-700); }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.form-status.success { background: #e8f6ec; color: var(--success); border: 1px solid #b9e2c5; }
.form-status.error { background: #fdecec; color: var(--error); border: 1px solid #f4c3c3; }

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

/* ---------- Patička ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.7);
  padding-top: 56px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo { margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Mobilní volací tlačítko ---------- */
.call-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  place-items: center;
}
.call-fab svg { width: 26px; height: 26px; }

/* ---------- Právní stránky (GDPR) ---------- */
.legal { max-width: 800px; margin-inline: auto; }
.legal h2 { font-size: 1.35rem; margin: 2em 0 .5em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 1.02rem; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .35em; }
.legal-contact {
  list-style: none;
  padding: 18px 22px !important;
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.legal-contact li { margin-bottom: .2em; }
.legal-updated { margin-top: 2.5em; color: var(--text-muted); font-size: .92rem !important; }
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--accent); }
.form-legal { display: block; margin-top: 8px; }

/* ---------- Hodnocení z Firmy.cz ---------- */
.firmy-badge { display: inline-block; margin-top: 12px; line-height: 0; border-radius: 4px; }
.firmy-badge img { display: block; max-height: 44px; width: auto; max-width: 100%; }

.rating-section { padding-block: clamp(36px, 5vw, 56px); }
.rating-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}
.rating-badge { flex-shrink: 0; line-height: 0; }
.rating-badge a { display: inline-block; border-radius: 6px; box-shadow: 0 0 0 1px var(--border); }
.rating-badge img { display: block; width: 249px; max-width: 100%; height: auto; }
.rating-text { flex: 1 1 260px; min-width: 0; }
.rating-text h2 { font-size: 1.35rem; margin-bottom: .3em; }
.rating-text p { margin: 0; color: var(--text-muted); }

/* ---------- Reference ---------- */
.btn-outline-dark { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline-dark:hover { background: var(--navy-800); color: #fff; }

.ref-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.ref-filter {
  font: inherit;
  font-weight: 650;
  font-size: .95rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--navy-700);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.ref-filter:hover { border-color: var(--accent); background: var(--accent-light); }
.ref-filter[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.ref-count { color: var(--text-muted); font-size: .92rem; margin: 0 0 24px; min-height: 1.4em; }
.ref-empty {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.ref-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.ref-card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--bg-soft);
  overflow: hidden;
}
.ref-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ref-card:hover .ref-card-media img { transform: scale(1.04); }

.ref-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--navy-900);
  font-size: .8rem;
  font-weight: 750;
}
.ref-tag-static { position: static; display: inline-block; margin-bottom: 14px; }
.ref-photos {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 26, 48, .8);
  color: #fff;
  font-size: .8rem;
}

.ref-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.ref-card-title { font-size: 1.15rem; margin-bottom: .4em; }
.ref-card-text { color: var(--text-muted); font-size: .97rem; }
.ref-card-btn { margin-top: auto; align-self: flex-start; padding: .7em 1.25em; font-size: .95rem; }

.ref-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: .88rem;
}
.ref-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ref-meta svg { width: 15px; height: 15px; color: var(--accent-dark); flex-shrink: 0; }

.ref-detail { max-width: 880px; margin-inline: auto; }
.ref-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy-700);
}
.ref-back svg { width: 18px; height: 18px; }
.ref-detail-title { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.ref-detail-title:focus { outline: none; }
.ref-detail .ref-meta { font-size: .95rem; margin-bottom: 24px; }
.ref-text p { font-size: 1.06rem; }
.ref-lead { font-size: 1.2rem !important; font-weight: 600; color: var(--navy-800); }
.ref-gallery-title { margin-top: 36px; }
.ref-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.ref-thumb {
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-soft);
  aspect-ratio: 3 / 2;
  display: block;
}
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ref-thumb:hover img { transform: scale(1.05); }

/* Lightbox */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 12, 24, .94);
  padding: 56px 12px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 6px; background: #fff; }
.lb-figure figcaption { color: rgba(255,255,255,.8); font-size: .92rem; text-align: center; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s;
  z-index: 2;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lightbox { padding: 64px 8px 80px; }
  .lb-figure img { max-height: calc(100dvh - 220px); }
  .ref-filter { padding: 9px 14px; }
}

/* ---------- Animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responzivita ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .service-block { grid-template-columns: 1fr; padding-block: 40px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  /* Menu je absolutně umístěné pod lištou. Nesmí být position: fixed, protože
     backdrop-filter na .site-header z lišty dělá "containing block" a fixed menu
     by se kvůli tomu smrsklo na nulovou výšku. */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--navy-900);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
    padding: 12px 20px 28px;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 16px 14px; min-height: 52px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .main-nav .nav-cta { margin: 20px 0 0; padding: 16px 18px; text-align: center; border-radius: 999px; border: 0; }

  body.nav-open { overflow: hidden; }

  .call-fab { display: grid; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { padding-inline: 16px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-text span { display: none; }
  .logo-mark img { height: 46px; }
  .hero-card { padding: 22px; }
  .rate-card { padding: 26px 22px; }
}

.table-title { margin: 44px 0 16px; font-size: 1.35rem; color: var(--navy-800); }

/* --- Kalkulačka ceny ------------------------------------------------------ */
.calc-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.calc-form { padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.calc-form h2 { font-size: 1.6rem; margin: 0; }
.calc-lead { color: var(--text-muted); margin: 0; }
.calc-stepper { display: flex; align-items: center; gap: 8px; }
.calc-stepper input { text-align: center; max-width: 120px; }
.calc-step {
  flex: 0 0 auto; width: 46px; height: 46px; font: inherit; font-size: 1.4rem; font-weight: 700; line-height: 1;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--navy-800); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.calc-step:hover { border-color: var(--accent); background: var(--accent-light); }
.calc-unit { font-weight: 650; color: var(--navy-800); }
.form-field .calc-range { width: 100%; accent-color: var(--accent-dark); margin-top: 6px; padding: 0; border: 0; box-shadow: none; background: none; }
.calc-note {
  margin-top: 8px; padding: 14px 16px; font-size: .93rem; color: var(--navy-900);
  background: var(--accent-light); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.calc-note[hidden] { display: none; }
.calc-loc { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc-loc legend { font-weight: 650; font-size: .95rem; color: var(--navy-800); padding: 0; margin-bottom: 8px; }
.calc-loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-opt { position: relative; display: block; cursor: pointer; }
.calc-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.calc-opt span {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s, background .2s;
}
.calc-opt strong { color: var(--navy-800); font-size: .95rem; }
.calc-opt small { color: var(--text-muted); font-size: .82rem; }
.calc-opt input:checked + span { border-color: var(--accent); background: #fffaf0; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.calc-opt input:focus-visible + span { outline: 2px solid var(--navy-600); outline-offset: 2px; }
.calc-km { margin-top: 14px; max-width: 260px; }
.calc-km[hidden] { display: none; }
.calc-result { background: var(--navy-800); color: #fff; padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.calc-result-label { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-light); }
.calc-total { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; line-height: 1.1; color: #fff; }
.calc-break { margin: 0; display: grid; gap: 6px; }
.calc-break div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.calc-break dt { color: #c9d4e4; }
.calc-break dd { margin: 0; font-weight: 700; }
.calc-min { margin: 0; font-size: .88rem; color: var(--accent-light); }
.calc-min[hidden] { display: none; }
.calc-disclaimer { margin: 0; font-size: .9rem; color: #c9d4e4; }
.calc-result .btn { margin-top: auto; }
@media (max-width: 860px) {
  .calc-card { grid-template-columns: 1fr; }
  .calc-loc-grid { grid-template-columns: 1fr; }
}