/* =========================================================
   posouzenishody.cz — statický web
   Barvy a písma převzaty z původního webu (Figtree / Barlow)
   ========================================================= */

:root {
  --brand: #0B4FD8;
  --brand-dark: #0940AE;
  --navy: #10275E;
  --navy-2: #18337A;
  --tint: #F2F6FE;
  --tint-2: #EAF1FE;
  --paper: #FFFFFF;
  --ink: #191919;
  --text: #333333;
  /* ztmaveno z #6A7382 — na bílé mělo kontrast 4,42, což je pod normou 4,5 */
  --muted: #5C6675;
  --line: #DCE4F2;
  --line-dark: rgba(255, 255, 255, 0.18);
  --sky: #8FB4F5;

  --wrap: 1080px;
  --radius: 6px;
  --shadow: 0 14px 40px rgba(16, 39, 94, 0.12);

  --f-head: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Safari na iPhonu jinak sám zvětšuje text při otočení na šířku */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  accent-color: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 16px;
}
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(25px, 3.4vw, 33px); font-weight: 800; line-height: 1.16; }
h3 { font-size: 18px; font-weight: 600; margin-bottom: 7px; letter-spacing: -0.01em; }

p { margin: 0 0 15px; }
p:last-child { margin-bottom: 0; }
.measure { max-width: 64ch; }
.lead { font-size: 18px; }

.eyebrow {
  font-family: var(--f-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 13px;
}

/* ---------- sekce ---------- */
section { padding: 64px 0; }
section.tint { background: var(--tint); }
section.tint2 { background: var(--tint-2); }
section.dark { background: var(--navy); color: #C7D5F0; }
section.dark h1,
section.dark h2,
section.dark h3 { color: #fff; }
section.dark .eyebrow { color: var(--sky); }
section.dark a { color: #fff; }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-head);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.3;
  padding: 12px 26px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: #B9CCF3;
}
.btn--ghost:hover { background: var(--tint-2); border-color: var(--brand); }
section.dark .btn--ghost { color: #fff; border-color: var(--line-dark); }
section.dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- oznámení nad hlavičkou ---------- */
.announce {
  background: var(--navy);
  color: #C7D5F0;
  font-size: 14px;
  padding: 10px 0;
}
.announce .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.announce .pill {
  font-family: var(--f-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
}
.announce a { color: #fff; margin-left: auto; }

/* ---------- hlavička ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.logo span {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.nav-toggle {
  margin-left: auto;
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 12px;
  font-family: var(--f-head);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a {
  font-family: var(--f-head);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); }
/* pozor: .site-nav a má vyšší specificitu než .btn a přebilo by barvu textu,
   takže tlačítko v menu musí barvu nastavit znovu */
.site-nav a.btn { font-size: 14px; padding: 9px 20px; color: #fff; }
.site-nav a.btn:hover {
  color: #fff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { background: var(--tint); padding: 62px 0 56px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.hero-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-photo img { width: 100%; }
.hero--simple .wrap { display: block; }
.hero--simple h1 { max-width: 17ch; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- pruh se statistikami ---------- */
.stats {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: 26px;
  align-items: center;
}
.stat b {
  display: block;
  font-family: var(--f-head);
  font-size: 33px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.025em;
}
.stat span { font-size: 14px; color: var(--muted); }
.stats .clients {
  font-size: 13.5px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.stats .clients strong {
  display: block;
  font-family: var(--f-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--ink);
}
@media (max-width: 820px) {
  .stats .wrap { grid-template-columns: repeat(3, 1fr); }
  .stats .clients { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}

/* ---------- mřížky ---------- */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 46px;
  align-items: center;
}
.duo--top { align-items: start; }
.duo--flip > :first-child { order: 2; }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; gap: 30px; }
  .duo--flip > :first-child { order: 0; }
}

.photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo img { width: 100%; }
.photo figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 2px 0;
}

/* ---------- seznam situací ---------- */
.trigger-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
  margin-top: 8px;
  list-style: none;
  padding: 0;
}
.trigger-list li {
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 16px;
}
.trigger-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 10px;
  height: 2px;
  background: var(--brand);
}
@media (max-width: 760px) { .trigger-list { grid-template-columns: 1fr; } }

/* ---------- služby ---------- */
.lead-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin-bottom: 18px;
}
.lead-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.lead-card p { max-width: 74ch; }

.five {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.five div {
  border-top: 2px solid var(--line-dark);
  padding-top: 13px;
  font-size: 14px;
  line-height: 1.5;
}
.five b {
  display: block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  margin-bottom: 5px;
}
@media (max-width: 860px) { .five { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .five { grid-template-columns: 1fr; } }

/* ---------- výstupy ---------- */
.deliver {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.deliver li {
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 16px;
}
.deliver li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 13px;
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
}
@media (max-width: 760px) { .deliver { grid-template-columns: 1fr; } }

/* ---------- postup ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 12px;
  list-style: none;
  padding: 0;
}
.steps li { border-top: 2px solid var(--brand); padding-top: 15px; }
.steps .no {
  display: block;
  font-family: var(--f-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 7px;
}
.steps p { font-size: 15px; }
section.dark .steps li { border-top-color: var(--sky); }
section.dark .steps .no { color: var(--sky); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- fakta ---------- */
.facts { display: flex; flex-direction: column; gap: 16px; }
.fact {
  background: var(--paper);
  border-left: 3px solid var(--brand);
  padding: 15px 18px;
  font-size: 15px;
}
.fact b {
  display: block;
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
section.dark .fact {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--sky);
  color: #D6E1F5;
}
section.dark .fact b { color: var(--sky); }

/* ---------- odrážky se šipkou ---------- */
.ticks { list-style: none; margin: 0 0 16px; padding: 0; }
.ticks li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.ticks li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--brand);
}
section.dark .ticks li { border-bottom-color: var(--line-dark); }
section.dark .ticks li::before { color: var(--sky); }

/* ---------- číslovaný seznam náležitostí ---------- */
.reqs { counter-reset: r; list-style: none; margin: 0; padding: 0; }
.reqs li {
  counter-increment: r;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.reqs li::before {
  content: counter(r, decimal-leading-zero);
  font-family: var(--f-head);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  padding-top: 5px;
}

/* ---------- karty chyb ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.cards div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 18px 20px;
  font-size: 15.5px;
}
.cards b { font-family: var(--f-head); color: var(--ink); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 20px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  padding: 15px 34px 15px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 22px;
  font-weight: 400;
  color: var(--brand);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; max-width: 68ch; }

/* ---------- kontaktní blok a formulář ---------- */
.person {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.person img { border-radius: var(--radius); }
.person .who { font-family: var(--f-head); font-weight: 600; color: var(--ink); }
.person p { font-size: 15px; }
@media (max-width: 520px) { .person { grid-template-columns: 100px minmax(0, 1fr); } }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-family: var(--f-head);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
/* pozor: :not() musí vyloučit přepínače a zaškrtávátka — appearance:none
   by je vykreslilo jako prázdné rámečky, ve kterých není vidět volba */
.field input:not([type="radio"]):not([type="checkbox"]),
.field textarea,
.field select {
  width: 100%;
  /* bez tohohle Safari polím přidá vlastní zaoblení a vnitřní stín */
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--f-body);
  /* 16 px je minimum, pod kterým iPhone při psaní přibližuje stránku */
  font-size: 16px;
  color: var(--ink);
  background: #FBFCFE;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field textarea:focus,
.field select:focus { border-color: var(--brand); background: #fff; }
.radios { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.radios label {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.radios input { width: auto; }
.hp { position: absolute; left: -9999px; }
.form .consent { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- nástroj ceprohlaseni.cz ---------- */
.tool {
  background: var(--tint-2);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 760px) { .tool { grid-template-columns: 1fr; } }

/* ---------- patička ---------- */
.site-footer {
  background: var(--navy);
  color: #A9BCE0;
  padding: 44px 0 34px;
  font-size: 14.5px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-dark);
}
.site-footer h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: #8FA5CD; }
.site-footer .bottom {
  padding-top: 18px;
  font-size: 13px;
  color: #8FA5CD;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- drobečková navigace ---------- */
.crumbs {
  font-size: 13.5px;
  color: var(--muted);
  padding: 14px 0 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* ---------- cookie lišta ---------- */
.cookiebar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(16, 39, 94, 0.28);
  padding: 20px 22px;
  font-size: 14.5px;
}
.cookiebar[hidden] { display: none !important; }
.cookiebar h4 { font-size: 16px; margin-bottom: 6px; }
.cookiebar .btns { margin-top: 16px; gap: 10px; }
.cookiebar .btn { font-size: 14px; padding: 9px 18px; }

/* ---------- děkovná stránka ---------- */
.thanks { padding: 90px 0; text-align: center; }
.thanks .wrap { max-width: 640px; }
.thanks .btns { justify-content: center; }

/* ---------- přepínač jazyka ---------- */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.site-nav .lang a {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--muted);
  line-height: 1.2;
  font-size: 13px;
}
.site-nav .lang a:hover { color: var(--brand); }
.site-nav .lang a[aria-current="true"] {
  background: var(--brand);
  color: #fff;
}
@media (max-width: 900px) {
  .site-nav .lang { align-self: flex-start; margin-top: 14px; border-bottom: 0; }
  .site-nav .lang a { border-bottom: 0; padding: 6px 12px; }
}

/* ---------- reference ---------- */
.klienti {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 6px 0 24px;
  list-style: none;
  padding: 0;
}
.klienti li {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 76px;
  padding: 14px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
/* loga: sjednocena vyska, odbarvena, at nerusi barevnost webu */
.klienti img {
  max-height: 42px;
  width: auto;
  max-width: 100%;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.klienti li:hover img { filter: grayscale(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .klienti img { transition: none; } }
@media (max-width: 900px) { .klienti { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .klienti { grid-template-columns: repeat(2, 1fr); } }

.reference { display: grid; gap: 16px; }
.reference blockquote {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  font-size: 16.5px;
}
.reference blockquote p { margin: 0 0 10px; }
.reference cite {
  font-family: var(--f-head);
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.reference cite span { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }

/* ---------- dotyková zařízení: větší plochy na klikání ---------- */
@media (max-width: 760px) {
  .site-footer li a,
  .site-footer .bottom a { display: inline-block; padding: 7px 0; }
  .site-footer li { margin-bottom: 2px; }
  .announce a { display: inline-block; padding: 6px 0; }
  .crumbs a { display: inline-block; padding: 4px 0; }
  p a[href^="tel:"],
  p a[href^="mailto:"] { display: inline-block; padding: 6px 0; }
  .radios { gap: 10px 22px; }
  .radios label { padding: 9px 0; }
  .radios input { width: 20px; height: 20px; }
  .faq summary { padding-top: 18px; padding-bottom: 18px; }
}

/* ---------- textová stránka ---------- */
.prose h2 { margin-top: 34px; font-size: 24px; }
.prose h3 { margin-top: 22px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose { max-width: 70ch; }
