/* ==========================================================================
   petrbernadic.cz · styles.css · v10.3 (říjen 2026)
   --------------------------------------------------------------------------
   Jeden soubor bez záplat. Pořadí:
   1 tokeny · 2 základ · 3 rozvržení · 4 hlavička · 5 tlačítka · 6 hero ·
   7 komponenty · 8 formuláře · 9 patička · 10 mobilní lišta · 11 stránky ·
   12 menší šířky · 13 pohyb a tisk

   Tři pravidla, která drží web pohromadě:
   · rozestupy jen ze stupnice --s-* (žádné style="margin-top…" v HTML)
   · boxy (karty, poznámky, formuláře) stojí vždy na sloupcích mřížky
   · souvislý text je nejvýš --measure široký

   Značka: tyrkys #2ABBB5 · hluboká #115C59 · tmavá #083A38 · teplá #FFBC7D
   Písmo: Figtree (nadpisy, tlačítka) + Mulish (text)
   ========================================================================== */

/* 1. TOKENY ============================================================== */
:root {
  --teal: #2ABBB5;
  --deep: #115C59;
  --ink: #083A38;
  --mint: #D3EBEA;
  --tint: #F0FAF9;
  --warm: #FFBC7D;
  --warm-strong: #F5AD66;
  --warm-bg: #FFF7EE;
  --warm-line: #F3D9BF;
  --white: #FFFFFF;
  --text: #17201F;
  --muted: #51605F;
  --line: #DCEAE9;
  --field: #C9DCDA;

  --font-head: 'Figtree', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* rozestupy: jedna stupnice */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 56px;
  --s-9: 72px;

  --section-y: clamp(56px, 7.5vw, 96px);
  --section-y-compact: clamp(40px, 5vw, 56px);
  --gutter: clamp(20px, 4vw, 32px);
  --container: 1120px;
  --measure: 680px;   /* souvislý text */
  --wide: 780px;      /* nadpisy sekcí a širší bloky */
  --grid-gap: 24px;
  --card-pad: 28px;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(8, 58, 56, 0.05), 0 8px 24px rgba(8, 58, 56, 0.05);
  --shadow-lift: 0 2px 4px rgba(8, 58, 56, 0.06), 0 16px 36px rgba(8, 58, 56, 0.10);
  --header-h: 72px;
}

/* 2. ZÁKLAD ============================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0;
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }

/* nadpisy se lámou vyváženě, odstavce bez osamoceného slova na konci */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.3rem + 3vw, 3.125rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.25rem); line-height: 1.18; font-weight: 700; letter-spacing: -0.018em; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.nw { white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm);
  font: 700 0.9375rem/1 var(--font-head); text-decoration: none; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* 3. ROZVRŽENÍ =========================================================== */
.container {
  width: 100%; max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section-compact { padding-block: var(--section-y-compact); }
.section-tint { background: var(--tint); }
.section-warm { background: var(--warm-bg); }

/* Svislý rytmus uvnitř sekce: nadpis → obsah 40 px, bloky mezi sebou 24 px */
.section > .container > * + * { margin-top: var(--s-5); }
.section > .container > .section-header + * { margin-top: var(--s-7); }
/* větší odstup mezi dvěma různými skupinami v jedné sekci */
.section > .container > .block-gap { margin-top: var(--s-7); }

.section-header { max-width: var(--wide); }
.sub { margin-top: var(--s-4); color: var(--muted); max-width: var(--measure); }
.sub + .sub { margin-top: var(--s-3); }
/* nadpisek sekce: teplá tečka + verzálky (žádná vodorovná linka, ta se čte jako pomlčka) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 700 0.75rem/1.2 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--deep); margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warm-strong); }

/* Mřížky: boxy vždy na sloupcích, nikdy „na střed“ pod nadpisem vlevo */
.cards, .steps, .stats, .cases, .testimonials, .notes {
  display: grid; gap: var(--grid-gap); grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cards-2, .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps, .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* samostatný box přes dva ze tří sloupců (pravá hrana sedí na mřížce) */
.span-2of3 { max-width: calc((100% - 2 * var(--grid-gap)) / 3 * 2 + var(--grid-gap)); }

/* 4. HLAVIČKA ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.93); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--deep) 55%, var(--warm) 100%);
}
.header-inner { display: flex; align-items: center; gap: var(--s-4); min-height: calc(var(--header-h) - 4px); }
.brand { flex: none; margin-right: auto; display: block; padding-block: 8px; border-radius: 6px; }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a {
  font: 600 0.9375rem/1 var(--font-head); color: var(--ink); text-decoration: none;
  padding: 13px 14px; border-radius: 8px; transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-links > a:hover { background: var(--tint); color: var(--deep); }
/* aktuální stránka: tyrkysová linka pod textem */
.nav-links > a[aria-current="page"] {
  color: var(--deep);
  background: linear-gradient(var(--teal), var(--teal)) no-repeat 14px calc(100% - 6px) / calc(100% - 28px) 2px;
}
.nav-cta { display: none; }
.header-cta { display: flex; align-items: center; gap: var(--s-2); margin-left: var(--s-2); }
.header-cta .btn[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--ink); }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 14px;
  border: 1.5px solid var(--field); border-radius: 999px; background: var(--white);
  font: 700 0.9375rem/1 var(--font-head); color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 14px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* pod 960 px: odkazy se schovají pod tlačítko Menu, obě hlavní tlačítka zůstávají vidět
   (od 960 px mají čtyři odkazy a dvě tlačítka vedle loga pohodlný odstup) */
@media (max-width: 959px) {
  :root { --header-h: 64px; }
  .brand img { height: 30px; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-2) var(--gutter) var(--s-5);
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(8, 58, 56, 0.14);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links > a { padding: 17px 4px; font-size: 1.0625rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links > a[aria-current="page"] { background: none; box-shadow: inset 3px 0 0 var(--teal); padding-left: 14px; }
  /* bez JavaScriptu zůstanou odkazy vidět pod logem; vyšší hlavička pak nedrží nahoře, aby nezakrývala cíl kotvy */
  .no-js .site-header { position: static; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: var(--s-2); }
  .no-js .menu-toggle { display: none; }
  .no-js .nav-links { position: static; display: flex; flex-direction: row; flex-wrap: wrap; width: 100%; padding: 0; box-shadow: none; border: 0; }
  .no-js .nav-links > a { border: 0; padding: 12px 10px 12px 0; }
}
/* pod 640 px: tlačítka z hlavičky se přesunou do menu a do spodní lišty */
@media (max-width: 639px) {
  :root { --header-h: 60px; }
  .header-cta { display: none; }
  .nav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-5); }
}

/* 5. TLAČÍTKA ============================================================ */
/* Tři role: plné tmavé = hlavní akce · obrys = druhá možnost · teplé = diagnostika */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px; border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--font-head); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--deep); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); box-shadow: 0 8px 20px rgba(8, 58, 56, 0.2); }
.btn-ghost { background: var(--white); color: var(--deep); border-color: var(--teal); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); border-color: var(--deep); }
.btn-diag { background: var(--warm); color: var(--ink); }
.btn-diag:hover { background: var(--warm-strong); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 9px 20px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
/* textový odkaz se šipkou (10 px nahoře a dole kvůli pohodlnému klepnutí na mobilu) */
.card-link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font: 700 0.9375rem/1.3 var(--font-head); color: var(--deep); text-decoration: none; padding-block: 10px;
}
.card-link::after { content: "→"; transition: transform 0.15s ease; }
.card-link:hover { color: var(--ink); text-decoration: underline; }
.card-link:hover::after { transform: translateX(4px); }

/* 6. HERO ================================================================ */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 80px);
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(42, 187, 181, 0.16), transparent 62%),
    linear-gradient(180deg, var(--white) 0%, var(--tint) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
/* stránky s delším úvodním textem: širší sloupec textu, užší fotka */
.hero-grid.hero-grid-copy { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
.hero-copy { max-width: 800px; }
.hero-grid .hero-copy { max-width: none; }
.hero-copy > * + * { margin-top: var(--s-4); }
.hero-copy > .eyebrow { margin-bottom: 0; }
.hero-copy > h1 + * { margin-top: var(--s-5); }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); line-height: 1.6; color: var(--muted); max-width: var(--measure); }
.lead strong { color: var(--ink); }
.lead ~ .lead { font-size: 1.0625rem; }
.lead.punch { font: 700 1.125rem/1.4 var(--font-head); color: var(--ink); }
/* tlačítka stojí hned za úvodním odstavcem, další text pokračuje pod nimi */
.hero-copy > .hero-actions { margin-top: var(--s-6); }
.hero-copy > .hero-actions + .lead { margin-top: var(--s-6); }
.hero-diag-link { display: inline-block; font: 600 0.9375rem/1.4 var(--font-head); color: var(--ink); padding-block: 10px; }
.hero-copy > .hero-diag-link { margin-top: var(--s-2); }
.hero-copy > .hero-diag-link + .lead { margin-top: var(--s-5); }
.hero-copy > .note { margin-top: var(--s-6); max-width: var(--measure); }

/* portrét s tyrkysovým obloukem */
.hero-photo { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hero-photo::before {
  content: ""; position: absolute; inset: 6% 2% 4% 2%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42, 187, 181, 0.26), rgba(42, 187, 181, 0) 100%);
}
.hero-photo img {
  position: relative; width: 100%;
  /* oblouk na okrajích fotky doznívá do ztracena místo ostrého řezu */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
/* fotka z akce v rámečku */
.hero-media { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.hero-media::before {
  content: ""; position: absolute; right: -16px; bottom: -16px; width: 62%; height: 58%; z-index: 0;
  border-radius: 28px; background: var(--mint);
}
.hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: 0 28px 56px -22px rgba(8, 58, 56, 0.45); }

@media (max-width: 899px) {
  .hero-grid, .hero-grid.hero-grid-copy { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 340px; }
  .hero-media { max-width: 380px; }
  .hero-media img { aspect-ratio: 1 / 1; object-position: 50% 12%; }
}

/* 7. KOMPONENTY ========================================================== */

/* Čísla pod hero: čtyři stejné sloupce, obsah na střed, mezi sloupci tenká svislá linka.
   Jednotka (mld Kč) je menší než číslo, aby všechna čtyři čísla měla podobnou váhu. */
.stats { gap: 0; }
.stat { padding: var(--s-1) var(--s-5); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font: 800 clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem)/1.05 var(--font-head); color: var(--deep); letter-spacing: -0.02em; white-space: nowrap; }
.stat .unit { font-size: 0.6em; letter-spacing: -0.01em; }
.stat .label { margin: var(--s-2) auto 0; max-width: 20ch; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; text-wrap: balance; }

/* Loga klientů: celý pás na střed, jedna osa.
   Šířku každého loga určuje --w v HTML (různé poměry stran, podobná optická váha). */
.section-logos { border-top: 1px solid var(--line); }
.section-logos .section-header { max-width: none; text-align: center; }
.section-logos h2 { font-size: 1.375rem; letter-spacing: -0.01em; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px clamp(28px, 4.5vw, 56px); max-width: 880px; margin-inline: auto; }
.logos img {
  width: calc(var(--w, 130) * 1px); height: auto; max-width: none;
  filter: grayscale(1); opacity: 0.62; mix-blend-mode: multiply; transition: filter 0.2s ease, opacity 0.2s ease;
}
.logos img:hover { filter: none; opacity: 1; }

/* Karty: nadpis nahoře, text hned pod ním (všude stejných 12 px), odkaz nebo tlačítko u spodní hrany */
.card, .step, .case, .testimonial, .price-card, .spotlight {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--card-pad); box-shadow: var(--shadow);
}
.card { display: flex; flex-direction: column; }
.card > * + * { margin-top: var(--s-3); }
.card h3 + .check-list { margin-top: var(--s-4); }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
/* popis se natáhne, takže vše pod ním (bonus, odkaz, tlačítko) sedí v řadě karet ve stejné výšce */
.card > p:not(.tool-bonus) { flex: 1 0 auto; }
.card > .card-link { margin-top: 0; padding-top: var(--s-5); margin-bottom: -10px; }   /* −10 px vyrovnává spodní okraj odkazu */
.card > .btn { margin-top: var(--s-5); }
/* celá karta s odkazem je klikací */
.card > .card-link::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:has(> .card-link) { transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.card:has(> .card-link):hover { border-color: var(--teal); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card a:not(.card-link):not(.btn) { position: relative; z-index: 1; }
/* zvýraznění bez posunu obsahu (rámeček se kreslí dovnitř) */
.card-featured, .price-card.featured { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal), var(--shadow); }
.card-impact { box-shadow: inset 0 4px 0 var(--warm), var(--shadow); }

/* Seznam s odškrtnutím (a varianta s křížkem pro „není pro Vás“) */
.check-list { display: grid; gap: var(--s-3); align-content: start; }
.check-list li { position: relative; padding-left: 36px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.16em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3l2.4 2.3 4.8-5' fill='none' stroke='%23083A38' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list strong { color: var(--ink); }
.check-list.is-no li::before {
  background-color: #FFE9D3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.2 3.2l5.6 5.6M8.8 3.2L3.2 8.8' fill='none' stroke='%238C4A0F' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Štítky */
.price-tag, .step-meta {
  display: inline-block; align-self: flex-start;
  font: 700 0.75rem/1.2 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.price-tag { background: var(--warm); color: var(--ink); }
.step-meta { background: var(--warm-bg); color: var(--ink); border: 1px solid var(--warm-line); }

/* Cesta ve čtyřech krocích */
.steps { counter-reset: step; }
.step { display: flex; flex-direction: column; counter-increment: step; padding: var(--s-5); }
.step::before {
  content: counter(step); display: flex; align-items: center; justify-content: center; align-self: flex-start;
  width: 36px; height: 36px; border-radius: 50%; background: var(--deep); color: var(--white);
  font: 800 0.9375rem/1 var(--font-head);
}
.step h3 { margin-top: var(--s-4); font-size: 1.125rem; }
.step p { flex: 1; margin-top: var(--s-2); color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.step .step-meta { margin-top: var(--s-4); }
@media (min-width: 1100px) {
  .steps > .step:not(:last-child)::after {
    content: "→"; position: absolute; top: 28px; right: calc(var(--grid-gap) / -2 - 13px); z-index: 2;
    display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--warm); color: var(--ink); font: 800 0.875rem/1 var(--font-head);
  }
}

/* Časová osa (počet kroků bere z data-steps v HTML) */
.timeline { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-7); counter-reset: tl; }
.timeline[data-steps="6"] { --n: 6; }
.tl-item { position: relative; counter-increment: tl; padding-top: 58px; }
.tl-item::before {
  content: counter(tl); position: absolute; top: 0; left: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--deep); color: var(--white); font: 800 1rem/1 var(--font-head);
}
.tl-item::after { content: ""; position: absolute; top: 19px; left: 52px; right: calc(var(--grid-gap) * -1 + 12px); height: 2px; border-radius: 2px; background: var(--mint); }
.tl-item:last-child::after { display: none; }
.tl-item h3 { font-size: 1.0625rem; }
.tl-item p { margin-top: var(--s-2); color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 1199px) {
  /* šest kroků ve dvou řadách po třech */
  .timeline[data-steps="6"] { --n: 3; }
  .timeline[data-steps="6"] .tl-item:nth-child(3)::after { display: none; }
}
@media (max-width: 899px) {
  /* svislá osa */
  .timeline, .timeline[data-steps="6"] { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); }
  .tl-item { padding: 0 0 0 58px; min-height: 40px; }
  .tl-item::after, .timeline[data-steps="6"] .tl-item:nth-child(3)::after { display: block; top: 46px; bottom: calc(var(--s-5) * -1 + 6px); left: 19px; right: auto; width: 2px; height: auto; }
  .tl-item:last-child::after, .timeline[data-steps="6"] .tl-item:last-child::after { display: none; }
}

/* Situace z praxe */
.case { box-shadow: inset 5px 0 0 var(--warm), var(--shadow); padding-left: calc(var(--card-pad) + 5px); }
.case-num { font: 800 clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem)/1.05 var(--font-head); color: var(--deep); letter-spacing: -0.02em; }
.case p { margin-top: var(--s-3); font-size: 1rem; }

/* Reference */
.testimonial { display: flex; flex-direction: column; }
.testimonial p { flex: 1; font-size: 1rem; line-height: 1.6; }
.testimonial p::before { content: "„"; margin-right: 1px; color: var(--teal); font: 800 1.625rem/0 var(--font-head); }
.testimonial cite { margin-top: var(--s-5); font: 700 0.9375rem/1.35 var(--font-head); font-style: normal; color: var(--ink); }
.testimonial cite > span { display: block; margin-top: 2px; font: 400 0.875rem/1.4 var(--font-body); color: var(--muted); }

/* Citát přes celou šířku */
.quote-band { position: relative; overflow: hidden; padding-block: var(--section-y); background: var(--ink); color: var(--white); }
.quote-band::before {
  content: ""; position: absolute; top: -140px; right: -140px; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 187, 181, 0.28), transparent 70%);
}
.quote-band .container { position: relative; }
.quote-band blockquote { max-width: 900px; font: 800 clamp(1.625rem, 1.1rem + 2.2vw, 2.5rem)/1.2 var(--font-head); letter-spacing: -0.02em; text-wrap: balance; }
.quote-band .mark { color: var(--warm); }
.quote-sub { margin-top: var(--s-5); max-width: var(--measure); color: rgba(226, 245, 244, 0.88); }

/* Poznámky */
.note {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: inset 4px 0 0 var(--teal), var(--shadow); padding: var(--s-4) var(--s-5) var(--s-4) calc(var(--s-5) + 4px);
  font-size: 0.9375rem; line-height: 1.6; color: var(--text);
}
.note strong { color: var(--ink); }
.note-warm { box-shadow: inset 4px 0 0 var(--warm), var(--shadow); }

/* Ceny */
.price-card { display: flex; flex-direction: column; align-items: flex-start; }
.price-card > * { max-width: 100%; }
.price-card > * + * { margin-top: var(--s-4); }
.price { font: 800 clamp(1.875rem, 1.4rem + 1.6vw, 2.375rem)/1.1 var(--font-head); color: var(--deep); letter-spacing: -0.02em; }
.price small { font: 600 1rem/1.3 var(--font-head); color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.price-note { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.price-note strong { color: var(--ink); }
.price-card .check-list, .price-card .note { align-self: stretch; }
.price-card .note { margin-top: var(--s-5); }
.price-card .contact-form { align-self: stretch; max-width: none; margin: var(--s-4) 0 0; }
.price-card .hero-actions { margin-top: var(--s-5); }
.price-talk p:not(.price-note) { max-width: var(--wide); color: var(--text); font-size: 1rem; }
/* cena vedle formuláře: každý box je vysoký podle svého obsahu, kratší se nenatahuje do prázdna */
.cards:has(> .price-card + .price-card) { align-items: start; }

/* Zvýrazněné téma */
.spotlight { box-shadow: inset 5px 0 0 var(--warm), var(--shadow); padding-left: calc(var(--card-pad) + 5px); }
.spotlight .eyebrow { margin-bottom: var(--s-3); }
.spotlight p { margin-top: var(--s-3); max-width: var(--wide); color: var(--muted); }

/* Výrok pod kartami, doplňující věta, odkaz pod mřížkou */
.statement { font: 700 1.1875rem/1.4 var(--font-head); color: var(--ink); }
.section-note { max-width: var(--measure); color: var(--muted); }
.section > .container > .statement, .section > .container > .section-note { margin-top: var(--s-6); }
.section > .container > .more-link { margin-top: var(--s-5); }

/* Diagnostika: text + ukázka mapy */
.diag-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.diag-band .hero-actions { margin-top: var(--s-6); }
.diag-visual { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-5) var(--s-4) var(--s-4); }
.radar-svg { width: 100%; max-width: 520px; margin-inline: auto; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1.2; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-area { fill: rgba(42, 187, 181, 0.22); stroke: var(--deep); stroke-width: 2.5; stroke-linejoin: round; }
.radar-dot { fill: var(--deep); }
.radar-dot.weak { fill: var(--warm); stroke: #E39A50; stroke-width: 2; }
.radar-label { font: 600 17px var(--font-head); fill: var(--ink); }
.diag-visual-caption { margin-top: var(--s-2); text-align: center; font-size: 0.8125rem; line-height: 1.45; color: var(--muted); text-wrap: balance; }
/* stejná mapa v úvodu stránky Diagnostika */
.hero-grid > .diag-visual { justify-self: center; width: 100%; max-width: 500px; }

/* Ukázka souhrnu týmu (heatmapa) */
.card-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hm { display: grid; gap: 4px; min-width: 720px; font-size: 0.75rem; }
.hm-row { display: grid; grid-template-columns: 110px repeat(9, minmax(0, 1fr)); gap: 4px; align-items: center; }
.hm-head { padding: 4px 0; text-align: center; font: 700 0.6875rem/1.15 var(--font-head); color: var(--ink); }
.hm-name { font: 600 0.8125rem/1.2 var(--font-head); color: var(--muted); }
.hm-cell { display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 6px; font-weight: 700; color: var(--ink); }
.hm-1 { background: #FFD5B3; } .hm-2 { background: #FFE3CB; } .hm-3 { background: #FFF1E2; }
.hm-4 { background: #E4F5F3; } .hm-5 { background: #BFE9E6; } .hm-6 { background: #8FDAD5; }
.hm-avg .hm-cell { background: var(--white); box-shadow: inset 0 0 0 2px var(--deep); }

/* Časté dotazy */
.faq-section .section-header { max-width: var(--wide); margin-inline: auto; text-align: center; }
.faq { display: grid; gap: var(--s-3); max-width: var(--wide); margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 18px var(--s-5); cursor: pointer; list-style: none; border-radius: var(--radius-sm);
  font: 700 1.0625rem/1.35 var(--font-head); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' fill='none' stroke='%23115C59' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-5) var(--s-5); max-width: calc(var(--measure) + 2 * var(--s-5)); color: var(--muted); font-size: 1rem; }

/* 8. FORMULÁŘE =========================================================== */
/* Kontaktní sekce: všechno na jedné středové ose, pole formuláře zarovnaná vlevo */
.contact { background: linear-gradient(180deg, var(--white) 0%, var(--tint) 100%); }
.contact-inner { max-width: calc(720px + 2 * var(--gutter)); text-align: center; }
.contact-inner > .eyebrow { margin-bottom: 0; }
.section > .contact-inner > * + * { margin-top: var(--s-4); }
.contact-inner h2 { max-width: 20em; margin-inline: auto; }
.contact-inner .sub { margin-inline: auto; max-width: 600px; }
.contact-form { display: grid; gap: var(--s-3); max-width: 560px; margin-inline: auto; text-align: left; }
.section > .contact-inner > .contact-form { margin-top: var(--s-6); }
.section > .contact-inner > .contact-alt { margin-top: var(--s-5); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form textarea, .contact-form select {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 1.5px solid var(--field); border-radius: 12px; background: var(--white); color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form textarea { min-height: 132px; resize: vertical; }
.contact-form .textarea-short { min-height: 92px; }
.contact-form select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23115C59' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 14px no-repeat;
}
.contact-form ::placeholder { color: #6B7C7A; opacity: 1; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--deep); box-shadow: 0 0 0 3px rgba(42, 187, 181, 0.28);
}
.contact-form .btn { width: 100%; margin-top: var(--s-1); }
.form-consent { display: flex; align-items: flex-start; gap: 10px; padding-block: 4px; font-size: 0.875rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.form-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--deep); cursor: pointer; }
.form-consent a { color: var(--ink); white-space: nowrap; }
.form-status { font-size: 0.9375rem; }
/* prázdný stav nezabírá místo (zůstává v dokumentu kvůli čtečkám obrazovky) */
.form-status:empty { margin-top: calc(var(--s-3) * -1); }
.form-status.ok { color: var(--deep); font-weight: 700; }
.form-status.err { color: #B3261E; }
.form-booking { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding-top: var(--s-1); }
.form-booking p { font-size: 0.9375rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-alt { font-size: 0.9375rem; color: var(--muted); }
/* odkazy mají větší plochu pro klepnutí, řádkování textu se tím nemění.
   Zůstávají řádkové (ne inline-block): jen tak drží pevná mezera a oddělovač ani předložka neutečou na jiný řádek. */
.contact-alt a { padding-block: 12px; color: var(--ink); font-weight: 600; }
.contact-note { font-size: 0.8125rem; color: var(--muted); }

/* 9. PATIČKA ============================================================= */
.site-footer { background: var(--ink); color: #DFF5F4; padding-block: var(--s-9) var(--s-6); }
/* sloupce s odkazy jsou široké podle obsahu, aby se odkazy nelámaly */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s-7) clamp(40px, 7vw, 96px); }
.footer-logo { height: 34px; width: auto; margin-bottom: var(--s-4); filter: brightness(0) invert(1); opacity: 0.95; }
.site-footer p { max-width: 420px; font-size: 0.9375rem; line-height: 1.6; color: rgba(223, 245, 244, 0.82); }
.site-footer h4 { margin-bottom: var(--s-3); font: 700 0.8125rem/1.2 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.site-footer a { display: inline-block; padding-block: 9px; color: rgba(223, 245, 244, 0.92); text-decoration: none; }
.site-footer li a { font-size: 1rem; white-space: nowrap; }
.site-footer a:hover { color: var(--warm); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2) var(--s-5);
  margin-top: var(--s-8); font-size: 0.875rem; color: rgba(223, 245, 244, 0.66);
}
.footer-bottom::before { content: ""; flex: 0 0 100%; height: 1px; margin-bottom: var(--s-4); background: rgba(223, 245, 244, 0.16); }
@media (max-width: 799px) {
  .footer-grid { grid-template-columns: auto auto; justify-content: start; gap: var(--s-6) clamp(32px, 10vw, 72px); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 10. MOBILNÍ LIŠTA S TLAČÍTKY ============================================ */
.sticky-cta { display: none; }
@media (max-width: 639px) {
  /* místo pro lištu se přičítá k patičce, aby pod ní nezůstal bílý pruh */
  .site-footer { padding-bottom: calc(var(--s-6) + 70px + env(safe-area-inset-bottom)); }
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(8, 58, 56, 0.08);
  }
  .sticky-cta .btn { flex: 1; min-height: 48px; padding-inline: 12px; }
  /* lišta se ukáže až pod úvodem a schová se u formuláře, aby nezakrývala Odeslat (řídí script.js) */
  .js .sticky-cta { transition: transform 0.25s ease, visibility 0s linear 0s; }
  .js .sticky-cta:not(.is-visible) { transform: translateY(110%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s; }
}

/* 11. STRÁNKY ============================================================ */

/* Nástroje */
.badge {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font: 600 0.6875rem/1.2 var(--font-head); letter-spacing: 0.04em; text-transform: uppercase;
  background: #FFF1E0; color: #8C4A0F; padding: 4px 9px; border-radius: 999px;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.note .badge { padding: 2px 8px; font-size: 0.625rem; vertical-align: middle; }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.tool-bonus {
  background: var(--tint); border-radius: 8px; box-shadow: inset 3px 0 0 var(--teal);
  padding: var(--s-3) var(--s-4) var(--s-3) calc(var(--s-4) + 3px);
}
.card .tool-bonus { color: var(--text); font-size: 0.875rem; line-height: 1.5; }
.tool-bonus strong { color: var(--deep); }
.tool-bonus code { background: var(--mint); color: var(--ink); padding: 2px 8px; border-radius: 4px; font: 700 0.8125rem var(--font-head); letter-spacing: 0.02em; }

/* Zásady */
.legal .container > * { max-width: 720px; }
.legal h2 { font-size: 1.375rem; }
.section.legal > .container > h2 { margin-top: var(--s-7); }
.section.legal > .container > h2:first-child { margin-top: 0; }
.section.legal > .container > p { margin-top: var(--s-3); }
.legal .muted { color: var(--muted); font-size: 0.9375rem; }
.section.legal > .container > .muted { margin-top: var(--s-6); }

/* 12. MENŠÍ ŠÍŘKY ======================================================== */
@media (max-width: 1099px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  :root { --card-pad: 24px; }
  .stat { padding-inline: var(--s-3); }
  .cards, .testimonials, .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* lichá poslední karta nezůstane sama v půlce řady */
  .cards > :last-child:nth-child(odd):not(:first-child), .cases > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
  .span-2of3 { max-width: none; }
}
@media (max-width: 899px) {
  .diag-band { grid-template-columns: minmax(0, 1fr); }
  .diag-visual { max-width: 520px; }
  .hero-grid > .diag-visual { max-width: 440px; }
}
/* čísla pod hero: pod 768 px dvě a dvě */
@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .stat:nth-child(odd) { border-left: 0; }
}
@media (max-width: 699px) {
  :root { --grid-gap: 16px; --card-pad: 22px; }
  .cards, .cards-2, .notes, .testimonials, .cases, .steps { grid-template-columns: minmax(0, 1fr); }
  .cards > :last-child:nth-child(odd):not(:first-child), .cases > :last-child:nth-child(odd):not(:first-child) { grid-column: auto; }
  .section > .container > .section-header + * { margin-top: var(--s-6); }
  .hero-actions .btn { flex: 1 1 100%; }
  .logos { gap: 22px 30px; }
  .logos img { width: calc(var(--w, 130) * 0.8px); }
  .radar-label { font-size: 19px; }
  .faq summary { padding: 16px 18px; }
  .faq details p { padding: 0 18px 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom::before { align-self: stretch; }
}

/* 13. POHYB A TISK ======================================================= */
/* Jen opacity a transform (rychlé, nic se nepřeskládává). Tři místa, kde se něco hýbe:
   · úvod stránky po načtení (čisté CSS, funguje i bez JavaScriptu)
   · bloky pod první obrazovkou při scrollu (třídu .reveal přidává script.js)
   · mapa dovedností, která se „nafoukne“, když na ni dojde řada (v úvodu Diagnostiky hned po načtení) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .hero-copy > * { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.15s; }
  .hero-copy > :nth-child(n+5) { animation-delay: 0.2s; }
  .hero-photo, .hero-media, .hero-grid > .diag-visual { animation: fade 0.7s ease 0.1s both; }
  @keyframes radar-in { from { opacity: 0; transform: scale(0.55); } to { opacity: 1; transform: none; } }

  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
  .reveal.visible { opacity: 1; transform: none; }
  /* kotva na blok, který teprve vyjede (je zatím o 14 px níž): po dojetí stojí pod hlavičkou stejně jako ostatní kotvy */
  .reveal[id]:not(.visible) { scroll-margin-top: 14px; }

  .radar-area, .radar-dot { transform-box: fill-box; transform-origin: center; }
  .hero .radar-area { animation: radar-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both; }
  .hero .radar-dot { animation: fade 0.3s ease 0.95s both; }
  .reveal .radar-area { opacity: 0; transform: scale(0.55); }
  .reveal .radar-dot { opacity: 0; }
  .reveal.visible .radar-area { opacity: 1; transform: none; transition: opacity 0.4s ease 0.2s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s; }
  .reveal.visible .radar-dot { opacity: 1; transition: opacity 0.3s ease 0.75s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  *, *::before, *::after { animation: none !important; }
  .reveal, .reveal .radar-area, .reveal .radar-dot { opacity: 1 !important; transform: none !important; }
  .site-header, .sticky-cta, .contact-form, .menu-toggle { display: none !important; }
  .card, .step, .case, .testimonial, .price-card, .note { box-shadow: none; break-inside: avoid; }
}
