/* HF Performance — landing page. Barvy a písmo podle IG carouselů (generator/engine.cjs). */
:root {
  --bg: #F2F1EE;
  --ink: #0E0E0E;
  --blue: #3578E5;
  --blue-dark: #2460C8;
  --cta: var(--ink);         /* barva hlavního tlačítka: jediné místo, kde se mění */
  --cta-hover: #2E2E2E;
  --cta-ink: #FFFFFF;
  --muted: #6B6964;
  --line: #DCDAD5;
  --card: #FFFFFF;
  --ok: #156B43;
  --low: #A84510;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
main { overflow: hidden; } /* šikmý pruh v hero nesmí roztáhnout stránku do šířky */

/* Jazyk: obě verze jsou v HTML, zobrazí se jedna. */
html[data-lang="en"] .cs, html[data-lang="cs"] .en { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Hlavička */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo img { width: 190px; }
.top-right { display: flex; align-items: center; gap: 14px; }
.top .btn.small { display: none; }
.lang { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button { font: 700 15px/1 var(--display); letter-spacing: .1em; min-height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Hero */
.hero { position: relative; display: grid; gap: 36px; padding-top: 28px; padding-bottom: 56px; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -30%; bottom: 40px; width: 120%; height: 150px; background: var(--blue); transform: rotate(-9deg); }
.eyebrow { margin: 0 0 14px; font: 700 16px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); text-wrap: balance; }
h1 { margin: 0; font: italic 800 clamp(44px, 15vw, 104px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
h1 > span, h1 b, h1 em { display: block; font: inherit; white-space: nowrap; }
h1 em { color: var(--blue); }
html[data-lang="cs"] h1 { line-height: 1; }
.sub { margin: 20px 0 0; font-size: 22px; font-weight: 500; line-height: 1.35; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 10px; border: 2px solid var(--ink); font: 800 19px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.btn.primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn.outline { background: #fff; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }
.btn.big { min-height: 68px; padding: 0 30px; border-radius: 14px; font-size: 26px; gap: 14px; box-shadow: 0 10px 24px rgba(14, 14, 14, .22); }
.btn.big i { font-style: normal; font-size: 30px; line-height: 1; transform: translateY(-2px); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 16px; border-radius: 999px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
@media (max-width: 859px) {
  .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cta .btn { width: 100%; min-height: 64px; padding: 0 8px; font-size: clamp(17px, 5.4vw, 22px); letter-spacing: .04em; white-space: nowrap; }
}
.btn:focus-visible, .lang button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Ilustrační náhled reportu */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 18px 40px rgba(14, 14, 14, .14); font-size: 13px; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.mock-title { font: 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.mock-tag { color: var(--muted); font-weight: 500; }
.kpis { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 8px; }
.kpis div { background: var(--bg); border-radius: 10px; padding: 10px 8px; min-width: 0; }
.kpis b { display: block; font: 800 24px/1 var(--display); white-space: nowrap; }
.kpis i { display: block; margin-top: 4px; font-style: normal; font-size: 11px; line-height: 1.2; color: var(--muted); }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 120px; margin-top: 16px; padding-bottom: 20px; background: linear-gradient(var(--line), var(--line)) 0 calc(100% - 20px) / 100% 1px no-repeat; }
.bar { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bar u, .bar s { display: block; width: 38%; border-radius: 3px 3px 0 0; text-decoration: none; }
.bar u { height: var(--plan); border: 1.5px dashed #A9A7A1; border-bottom: 0; }
.bar s { height: var(--act); background: var(--blue); }
.bar.match s { background: var(--ink); }
.bar.off u, .bar.off s { display: none; }
.bar i { position: absolute; bottom: -19px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; color: var(--muted); }
.legend { display: flex; align-items: center; gap: 6px; margin: 10px 0 6px; font-size: 11px; color: var(--muted); }
.legend .k { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend .k.plan { border: 1.5px dashed #A9A7A1; }
.legend .k.act { background: var(--blue); margin-left: 10px; }
.mock table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mock th { text-align: right; font-weight: 500; font-size: 11px; color: var(--muted); padding: 6px 4px; }
.mock td { text-align: right; padding: 7px 4px; border-top: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
.mock th:first-child, .mock td:first-child { text-align: left; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.pill.ok { background: #E3F4EB; color: var(--ok); }
.pill.low { background: #FBE9DD; color: var(--low); }

/* Číslované bloky */
.block { display: grid; grid-template-columns: 1fr; gap: 6px; padding-top: 34px; padding-bottom: 34px; background: linear-gradient(var(--ink), var(--ink)) top center / calc(100% - 40px) 1.5px no-repeat; }
.num { font: italic 800 44px/1 var(--display); color: var(--blue); }
h2 { margin: 0 0 14px; font: italic 800 clamp(34px, 9.6vw, 56px)/.95 var(--display); text-transform: uppercase; text-wrap: balance; }
.lead { margin: 0; font-size: 19px; line-height: 1.5; max-width: 34em; }
.points { list-style: none; margin: 0; padding: 0; max-width: 40em; }
.points li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid var(--line); }
.points li:first-child { border-top: 0; padding-top: 2px; }
.points li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 14px; height: 5px; background: var(--blue); transform: skewX(-20deg); }
.points li:first-child::before { top: 11px; }
.points b { font-weight: 600; font-size: 1.08em; }

.compare { display: grid; gap: 12px; margin: 4px 0 20px; max-width: 40em; }
.col { display: flex; flex-direction: column; border-radius: 14px; padding: 18px 20px; border: 1.5px solid var(--line); background: var(--card); }
.col.after { background: var(--ink); border-color: var(--ink); color: #fff; }
.col-h { margin: 0; font: 700 16px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.col.after .col-h { color: #9DBEF5; }
.flow { margin: 10px 0 12px; font-size: 15px; font-weight: 500; }
.time { margin: auto 0 0; font: italic 800 68px/.9 var(--display); }
.time small { font-size: 26px; font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.col.before .time { color: var(--muted); }
.col.after .time { color: #fff; }

/* Kontakt */
.contact { background: var(--ink); color: #fff; margin-top: 20px; padding: 56px 0; }
.contact-in { display: grid; gap: 30px; }
.contact .lead { color: #D7D5D0; }
form { background: var(--card); color: var(--ink); border-radius: 16px; padding: 20px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg label > span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 8px; text-align: center; font: 800 15px/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: -3px; }
.f { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.f small { font-weight: 400; color: var(--muted); }
.f input, .f textarea { display: block; width: 100%; margin-top: 5px; min-height: 48px; padding: 0 12px; border: 1.5px solid #BDBBB5; border-radius: 9px; background: #fff; font: 400 17px var(--text); color: var(--ink); }
.f textarea { padding: 10px 12px; line-height: 1.4; resize: vertical; min-height: 110px; }
.f input[aria-invalid="true"], .f textarea[aria-invalid="true"] { border-color: #C2351A; }
form[data-mode="news"] .not-news, form:not([data-mode="call"]) .only-call, form:not([data-mode="msg"]) .only-msg { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; font-weight: 600; font-size: 15px; }
.status:not(:empty) { margin-top: 12px; }
.status.err { color: #C2351A; }
.status.ok { color: var(--ok); }
.fine { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
form.done .f, form.done .seg, form.done button, form.done .fine { display: none; }
form.done .status { font-size: 19px; margin: 8px 0; }

/* Plovoucí tlačítko na mobilu: vidět pořád, dokud není na obrazovce jiné tlačítko nebo formulář */
.sticky { position: fixed; z-index: 10; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); }
.sticky[hidden] { display: none; }

/* Patička */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 28px; font-size: 13.5px; color: var(--muted); }
.foot img { width: 130px; }

/* Tablet a desktop */
@media (min-width: 860px) {
  body { font-size: 18px; }
  .wrap { padding-left: 32px; padding-right: 32px; }
  .logo img { width: 230px; }
  .top .btn.small { display: inline-flex; }
  .sticky { display: none; }
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 84px; }
  .hero::before { left: 53%; right: calc(50% - 50vw - 40px); width: auto; top: 46%; bottom: auto; height: 190px; }
  h1 { font-size: clamp(60px, 7.6vw, 88px); }
  .sub { font-size: 26px; }
  .mock { padding: 22px; font-size: 14px; }
  .block { grid-template-columns: 120px 1fr; gap: 24px; padding-top: 48px; padding-bottom: 48px; background-size: calc(100% - 64px) 1.5px; }
  .num { font-size: 56px; line-height: .95; }
  .compare { grid-template-columns: 1fr 1fr; }
  .contact { padding: 84px 0; }
  .contact-in { grid-template-columns: 1fr 440px; gap: 64px; align-items: center; }
  form { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
