:root {
  --brand: #10395c;
  --brand-dark: #0a2740;
  --brand-light: #e8f0f7;
  --accent: #b4531a;
  --accent-dark: #8c3f13;
  --ink: #1b2430;
  --ink-soft: #4a5666;
  --ink-muted: #6d798a;
  --line: #dfe4ea;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --radius: 8px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.25; color: var(--brand-dark); margin: 0 0 16px; font-weight: 700; }
h1 { font-size: 2.35rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }

/* zarovnani textu do bloku vcetne deleni slov */
p, li, .prose, .section-intro, dd {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* kratke popisky a ovladaci prvky zustavaji vlevo */
.crumb, .hero-note, .form-note, .footer-bottom, .footer-bottom span,
.card .price, .card a.more, .nav a, .btn, .trust li, .site-footer li,
.field label, .consent label, .contact-box dt, .contact-box dd,
.ref-list li, details.faq summary {
  text-align: left;
  hyphens: manual;
}

/* na uzkych displejich by blok delal v textu velke mezery */
@media (max-width: 640px) {
  p, li, .prose, .section-intro, dd { text-align: left; }
}

@media (max-width: 700px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  body { font-size: 16px; }
}

/* --- hlavicka --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brand); }
.nav a.active { color: var(--brand-dark); border-bottom-color: var(--accent); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tel-link {
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
  white-space: nowrap;
}
.tel-link:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 1080px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .header-cta .btn { display: none; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .header-inner { gap: 8px; min-height: 60px; }
  .logo { font-size: 0.98rem; }
  .tel-link { font-size: 0.94rem; }
  .menu-toggle { padding: 6px 10px; font-size: 0.85rem; }
}

/* --- tlacitka --- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-light); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }

/* --- hero --- */
.hero {
  background: var(--brand-dark);
  color: #fff;
  padding: 64px 0 56px;
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead {
  font-size: 1.15rem;
  color: #cddced;
  max-width: 60ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { color: #9fb6cd; font-size: 0.92rem; margin: 20px 0 0; }

.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 36px;
}
.page-head .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 68ch; margin-bottom: 0; }
.crumb { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 10px; }
.crumb a { color: var(--ink-muted); }

/* --- pruh duvery --- */
.trust {
  background: var(--brand);
  color: #fff;
  padding: 18px 0;
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust li { font-size: 0.95rem; color: #dbe7f2; }
.trust strong { display: block; color: #fff; font-size: 1.05rem; }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust ul { grid-template-columns: 1fr; } }

/* --- sekce --- */
section { padding: 56px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 68ch; color: var(--ink-soft); margin-bottom: 32px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card .price {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.97rem;
}
.card a.more { font-weight: 600; text-decoration: none; margin-top: 10px; }
.card a.more:hover { text-decoration: underline; }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 28px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.steps { margin-top: 26px; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 12px;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.ref-list { list-style: none; padding: 0; margin: 0; }
.ref-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.ref-list li:first-child { border-top: 1px solid var(--line); }
.ref-list strong { color: var(--ink); font-weight: 600; }

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #fff;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-dark);
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: " +"; color: var(--accent); font-weight: 700; }
details.faq[open] summary::after { content: " –"; }
details.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* --- CTA pruh --- */
.cta-band {
  background: var(--brand-dark);
  color: #fff;
  padding: 48px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cddced; max-width: 60ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* --- formular --- */
.form-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-muted); font-size: 0.88rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9d1da;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.consent input { width: auto; margin-top: 4px; flex: none; }
.form-note { font-size: 0.88rem; color: var(--ink-muted); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: #e7f4ec; border: 1px solid #b7dcc5; color: #1c5433; }
.form-status.err { display: block; background: #fdeceb; border: 1px solid #f3c2be; color: #8c2c25; }

.contact-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-box dl { margin: 0; }
.contact-box dt { font-size: 0.85rem; color: var(--ink-muted); margin-top: 14px; }
.contact-box dt:first-child { margin-top: 0; }
.contact-box dd { margin: 2px 0 0; font-weight: 600; }
.contact-box a { text-decoration: none; }
.contact-box a:hover { text-decoration: underline; }

/* --- paticka --- */
.site-footer {
  background: var(--brand-dark);
  color: #b9cadb;
  padding: 44px 0 28px;
  font-size: 0.93rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 12px; }
.site-footer a { color: #dbe7f2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: #8ea6bd;
  font-size: 0.86rem;
}

/* --- lista souhlasu --- */
.cookiebar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 28px rgba(16,57,92,.18);
  border-radius: var(--radius);
  padding: 20px;
  display: none;
}
.cookiebar.show { display: block; }
.cookiebar p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; }
.cookiebar .actions { display: flex; flex-wrap: wrap; gap: 10px; }

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

.prose { max-width: 72ch; }
.prose h2 { margin-top: 34px; }
.prose ul { color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
