/* =========================================================================
   Homepage TOXIN.cz — izolované styly (namespace hp__).
   Tokeny, typografie, tlačítka a mřížka shodné s /eu-strategicke-reporty
   (obsah 1140 px = obsahová šířka sdíleného headeru). Globální třídy
   nepřepisuje; sdílené .mm-complist / .mm-phoneframe
   jen doplňuje vnořenými selektory pod .hp.
   ========================================================================= */

.hp {
  --nv: #021128;
  --bl: #27348b;
  --bl-dark: #202a70;
  --bl-pale: #eef2fc;
  --bl-pale2: #f6f8fd;
  --gy: #5a6478;
  --bd: #e6e9f2;
  --wrap: 1140px;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0b1830;
}
.hp * { box-sizing: border-box; }
:where(.hp) img { display: block; max-width: 100%; height: auto; }
:where(.hp) figure { margin: 0; }
:where(.hp) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.hp) :where(h1, h2, h3, p) { margin: 0; }
.hp__sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- sekce a mřížka ---------- */
.hp__section { padding: 56px 20px; }
.hp__section--white { background: #fff; }
.hp__section--pale { background: var(--bl-pale2); }
.hp__section--navy { background: var(--nv); color: #fff; }
.hp__section--tight { padding-top: 44px; padding-bottom: 44px; }
.hp__section--hero { padding-top: 40px; }
.hp__wrap { max-width: var(--wrap); margin: 0 auto; }
.hp [id] { scroll-margin-top: 72px; }

/* ---------- typografie ---------- */
.hp h1 { font-size: 31px; line-height: 1.14; font-weight: 800; color: var(--nv); margin-bottom: 20px; letter-spacing: -.01em; }
.hp h2 { font-size: 25px; line-height: 1.22; font-weight: 800; color: var(--nv); margin-bottom: 16px; max-width: 34ch; }
.hp h3 { font-size: 13px; line-height: 1.35; font-weight: 800; color: var(--nv); letter-spacing: .06em; }
.hp__kicker { color: var(--bl); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.hp__kicker--light { color: #aab8f0; }
.hp__lead { font-size: 16px; line-height: 1.6; color: var(--gy); max-width: 56ch; }
.hp__hero-strong { margin-top: 18px; font-size: 17px; font-weight: 800; color: var(--nv); }
.hp__body { font-size: 15.5px; line-height: 1.65; color: var(--gy); max-width: 62ch; }
.hp__body + .hp__body { margin-top: 12px; }
.hp__body--strong { color: var(--nv); font-weight: 800; font-size: 17px; }
.hp__checklist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hp__checklist li { position: relative; padding-left: 24px; color: var(--nv); font-size: 15px; font-weight: 600; }
.hp__checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--bl); font-weight: 800; }
.hp__intro { max-width: 760px; margin-bottom: 36px; }
.hp__strong {
  margin-top: 32px; max-width: 62ch;
  font-size: 18px; line-height: 1.45; font-weight: 800; color: var(--nv);
  border-left: 3px solid var(--bl); padding-left: 18px;
}
.hp__caption { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--gy); }
.hp__caption strong { display: block; color: var(--nv); font-size: 13.5px; }

/* ---------- tlačítka (shodná s eu__btn / mmv2__btn) ---------- */
.hp__btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 14px;
  line-height: 1.3; text-decoration: none; border: 2px solid transparent; text-align: center;
}
.hp__btn--primary { background: var(--bl); color: #fff; }
.hp__btn--primary:hover { background: var(--bl-dark); }
.hp__btn--ghost { background: #fff; color: var(--bl); border-color: var(--bl); }
.hp__btn--ghost:hover { background: var(--bl-pale); }
.hp__btn--light { background: #fff; color: var(--bl); }
.hp__btn--light:hover { background: var(--bl-pale); }
.hp a:focus-visible { outline: 3px solid var(--bl); outline-offset: 3px; }
.hp__section--navy a:focus-visible { outline-color: #fff; }
.hp__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hp__ctas--nomargin { margin-top: 0; }
.hp__closing { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hp__closing .hp__strong { margin-top: 0; }

/* ---------- řetězce (flow) — jeden vzor pro hero, Press.News, EU i ekosystém ---------- */
.hp__chain, .hp__heroflow-row, .hp__eco-row { display: flex; flex-direction: column; gap: 22px; }
.hp__chain li, .hp__heroflow-row li, .hp__eco-row li {
  position: relative; text-align: center; padding: 9px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em; color: var(--nv);
  background: #fff; border: 1px solid #d3d9ee;
}
.hp__chain li:not(:last-child)::after, .hp__heroflow-row li:not(:last-child)::after, .hp__eco-row li:not(:last-child)::after {
  content: '↓'; content: '↓' / ''; position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%);
  color: #a9b1d3; font-weight: 700; font-size: 13px;
}
.hp li.is-main { background: var(--bl); border-color: var(--bl); color: #fff; }
.hp li.is-key { border-color: var(--bl); color: var(--bl); }
.hp__chain { margin-top: 26px; max-width: 420px; }
.hp__chain--band { margin-top: 40px; max-width: none; }

/* =========================== 1 · HERO =========================== */
.hp__hero { display: flex; flex-direction: column; gap: 36px; }

/* ---------- nový hero (CEO fotografie + citát + 3 pilíře) ---------- */
.hp__accent { color: var(--bl); }
.hp__hero2 { display: flex; flex-direction: column; gap: 32px; }
.hp__hero2 h1 { font-size: 32px; line-height: 1.18; font-weight: 800; color: var(--nv); margin: 0 0 18px; }
.hp__hero2-text { max-width: 620px; }

.hp__hero2-photo { margin: 0; position: relative; }
/* vystřižená postava — pouze desktopová dvouvrstvá kompozice, na mobilu se nepoužívá */
.hp__hero2-cutout { display: none; }
.hp__hero2-photo-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: 0 20px 44px rgba(2, 17, 40, .16);
}
.hp__hero2-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 22%; display: block; }
.hp__hero2-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 38%, rgba(2,17,40,.08) 70%, rgba(39,52,139,.22) 100%);
}
.hp__hero2-quote {
  margin: 14px 0 0; background: var(--nv); color: #fff; border-radius: 12px;
  padding: 18px 20px; font-size: 13.5px; line-height: 1.5;
}
.hp__hero2-quote p { margin: 0 0 10px; font-style: italic; color: #e8eaf5; }
.hp__hero2-quote footer { display: flex; flex-direction: column; font-style: normal; }
.hp__hero2-quote footer strong { color: #fff; font-size: 13.5px; }
.hp__hero2-quote footer span { color: #aab1d6; font-size: 12px; }

.hp__pillars { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.hp__pillars a {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px;
  background: var(--bl-pale2); border: 1px solid var(--bd); text-decoration: none; transition: background .15s;
}
.hp__pillars a:hover { background: var(--bl-pale); }
.hp__pillar-icon { width: 26px; height: 26px; min-width: 26px; color: var(--bl); }
.hp__pillar-icon svg { display: block; width: 100%; height: 100%; }
.hp__pillar-text { display: flex; flex-direction: column; gap: 2px; }
.hp__pillar-text strong { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--nv); }
.hp__pillar-text span { font-size: 13px; color: var(--gy); }
/* tři svislé mini-toky vedle sebe — součást hero, ne samostatný diagram v boxu */
/* Grid (ne 3 nezávislé flex sloupce), aby odpovídající řádky napříč všemi
   třemi větvemi měly vždy stejnou výšku a spodní box končil na stejné ose,
   i když se délka textu mezi větvemi liší. */
.hp__heroflow {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, auto);
  grid-auto-flow: column; gap: 20px 12px; align-items: stretch;
}
.hp__heroflow-row { display: contents; }
.hp__heroflow-row li { display: flex; align-items: center; justify-content: center; }
.hp .hp__heroflow-row li { border-radius: 10px; padding: 10px 6px; font-size: 10.5px; line-height: 1.3; letter-spacing: .04em; hyphens: manual; }
.hp .hp__heroflow-row li { min-height: 58px; display: flex; align-items: center; justify-content: center; }
.hp .hp__heroflow-row li:not(:last-child)::after { color: #8a94c4; font-size: 14px; }

/* =========================== 2 · OPENER =========================== */
.hp__opener h2 { max-width: none; }

/* =========================== 3 · MAXIMUS =========================== */
.hp__maximus-head { display: flex; flex-direction: column; gap: 28px; }
.hp__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--bd); border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; }
.hp__kpis li { background: #fff; padding: 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.hp__kpis strong { font-size: 24px; font-weight: 800; color: var(--bl); line-height: 1.1; }
.hp__kpis span { font-size: 12.5px; line-height: 1.35; color: var(--gy); font-weight: 600; }
.hp__maximus-shot { margin-top: 36px; }
.hp__browser {
  background: #fff; border: 1px solid var(--bd); border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(2, 17, 40, .12);
}
.hp__browser-bar { height: 26px; background: #eef0f6; display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.hp__browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: #ccd0e0; }

/* =========================== 4/5 · PRESS.NEWS + EU =========================== */
.hp__split { display: flex; flex-direction: column; gap: 36px; }
.hp__split-visual { width: 100%; }
.hp__split-visual--eu img { border-radius: 12px; }

/* =========================== 6 · EKOSYSTÉM =========================== */
.hp__eco { display: flex; flex-direction: column; gap: 18px; }
.hp__eco-row { padding: 18px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--bd); }

/* =========================== 7 · PRODUKTOVÁ HLOUBKA =========================== */
.hp__depth { display: flex; flex-direction: column; gap: 40px; }
.hp__grid { display: grid; grid-template-columns: 1fr; gap: 22px 32px; margin-top: 32px; }
.hp__item { border-top: 1px solid var(--bd); padding-top: 14px; }
.hp__item h3 { margin-bottom: 6px; }
.hp__item p { font-size: 14.5px; line-height: 1.6; color: var(--gy); }
.hp .hp__depth-phone { width: 200px; margin: 0 auto; }

/* =========================== 8 · PRO KOHO =========================== */
.hp__audiences { border-top: 1px solid #dde2f0; }
.hp__audience { padding: 16px 0; border-bottom: 1px solid #dde2f0; display: flex; flex-direction: column; gap: 6px; }
.hp__audience p { font-size: 15px; line-height: 1.55; color: var(--gy); }

/* =========================== 9 · PROOF =========================== */
.hp__proof h2 { font-size: 30px; max-width: 22ch; }
.hp__proof-body { margin-top: 8px; }

/* =========================== 10 · POROVNÁNÍ =========================== */
.hp__compare { display: flex; flex-direction: column; gap: 32px; }
.hp .hp__complist { margin: 0; max-width: none; gap: 10px; }
.hp .hp__complist h3 { font-size: 13px; letter-spacing: .06em; }
.hp .hp__complist p { font-size: 14px; }

/* =========================== 11 · FINAL CTA =========================== */
.hp__section--navy h2 { color: #fff; max-width: 40ch; }
.hp__paths { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.hp__path {
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 22px 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.hp__path h3 { color: #fff; font-size: 17px; letter-spacing: 0; line-height: 1.35; }
.hp__path p { color: rgba(255, 255, 255, .75); font-size: 14.5px; line-height: 1.55; flex: 1; margin-bottom: 8px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 640px) {
  .hp__kpis { grid-template-columns: repeat(3, 1fr); }
  .hp__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .hp__section { padding: 72px 32px; }
  .hp__section--tight { padding-top: 52px; padding-bottom: 52px; }
  .hp__section--hero { padding-top: 48px; }
  .hp h1 { font-size: 40px; }
  .hp h2 { font-size: 28px; }
  .hp__strong { font-size: 19px; }

  .hp__chain, .hp__eco-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 28px; }
  .hp__chain li:not(:last-child)::after, .hp__eco-row li:not(:last-child)::after {
    content: '→'; content: '→' / ''; left: auto; right: -21px; bottom: auto; top: 50%; transform: translateY(-50%);
  }
  .hp__heroflow { gap: 18px; }
  .hp .hp__heroflow-row li { font-size: 11.5px; padding: 12px 10px; }

  .hp__audience { flex-direction: row; align-items: baseline; gap: 24px; }
  .hp__audience h3 { flex: 0 0 280px; }
  .hp__paths { grid-template-columns: repeat(3, 1fr); }
  .hp__closing { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .hp__proof h2 { font-size: 38px; }
}

@media (min-width: 1024px) {
  .hp__section { padding-top: 88px; padding-bottom: 88px; }
  .hp__section--tight { padding-top: 64px; padding-bottom: 64px; }
  .hp h1 { font-size: 42px; }
  .hp h2 { font-size: 31px; }
  .hp__lead { font-size: 17px; }
  .hp__body { font-size: 16px; }

  /* ---------- Hero: fotografie jako plnokrevná plocha vycházející z pravého
     okraje obrazovky, bezprostředně pod navigací; text přirozeně přechází
     do fotografie bez viditelné hranice. ---------- */
  .hp__section--hero { position: relative; overflow: hidden; padding-top: 0; padding-bottom: 0; min-height: 660px; display: flex; align-items: center; }
  /* POZOR: .hp__hero2 nesmí mít position:relative — jinak se stane kontextem
     pro absolutní pozicování fotografie místo celé sekce a vznikne mezera nad fotografií. */
  .hp__hero2 { position: static; display: block; width: 100%; padding-bottom: 56px; }
  .hp__hero2-text { max-width: 480px; position: relative; z-index: 3; padding-top: 64px; }
  .hp__hero2 h1 { font-size: 40px; }

  .hp__hero2-photo {
    position: absolute; top: 0; bottom: 0; right: calc(50% - 50vw);
    width: 58vw; max-width: 1000px; margin: 0; z-index: 1;
  }
  .hp__hero2-photo-frame { width: 100%; height: 100%; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
  .hp__hero2-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 20%; }

  /* Fotografie se SKUTEČNĚ ztrácí v bílém pozadí (mask-image), ne jen překrytá
     bílým závojem — proto obličej a postava zůstávají plně barevné a kontrastní
     a zároveň levý okraj fotografie opticky neexistuje. Široký, měkký přechod
     bez ostré hrany. Fallback bez podpory mask-image: fotografie zůstane plně
     viditelná (bez efektu), nic se nerozbije. */
  .hp__hero2-photo-frame {
    -webkit-mask-image: linear-gradient(97deg, transparent 0, transparent 2%, rgba(0,0,0,.08) 8%, rgba(0,0,0,.3) 16%, rgba(0,0,0,.6) 24%, rgba(0,0,0,.85) 32%, #000 42%);
    mask-image: linear-gradient(97deg, transparent 0, transparent 2%, rgba(0,0,0,.08) 8%, rgba(0,0,0,.3) 16%, rgba(0,0,0,.6) 24%, rgba(0,0,0,.85) 32%, #000 42%);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  }
  /* jemný doladitelný modro-bílý tón navíc, jen velmi lehký, hlavní práci dělá mask-image výše */
  .hp__hero2-photo::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(97deg, rgba(255,255,255,.5) 0, rgba(255,255,255,.18) 10%, rgba(255,255,255,0) 26%);
  }
  .hp__hero2-overlay {
    background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 30%, rgba(2,17,40,.1) 72%, rgba(39,52,139,.24) 100%);
  }

  /* Postava CEO jako samostatná, PLNĚ kontrastní vrstva nad maskovaným pozadím
     kanceláře — stejný zdrojový snímek (2280×1717) a stejné object-position
     jako pozadí, takže sedí pixel přesně na sebe, žádná maska/zesvětlení zde. */
  .hp__hero2-cutout {
    display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  }
  .hp__hero2-cutout img {
    width: 100%; height: 100%; object-fit: cover; object-position: 72% 20%;
  }

  .hp__hero2-quote {
    position: absolute; z-index: 3; right: 34px; bottom: 34px; left: auto; max-width: 400px;
    background: rgba(2, 17, 40, .88); backdrop-filter: blur(2px); margin: 0; padding: 20px 22px;
  }

  /* pilíře: elegantní horizontální pás pod textem, bez rámečku, s oddělovači
     — šířka omezena na textový sloupec, aby nezasahoval pod fotografii */
  .hp__pillars {
    position: relative; z-index: 3; max-width: 480px;
    display: flex; flex-direction: row; gap: 0; margin: 36px 0 0; padding: 22px 0 0;
    border-top: 1px solid var(--bd);
  }
  .hp__pillars li { flex: 1 1 0; min-width: 0; }
  .hp__pillars li + li { border-left: 1px solid var(--bd); }
  .hp__pillars a {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 0 16px; background: none; border: none; border-radius: 0;
  }
  .hp__pillars li:first-child a { padding-left: 0; }
  .hp__pillars a:hover .hp__pillar-text strong { color: var(--bl); }
  .hp__pillar-icon { width: 22px; height: 22px; min-width: 22px; }
  .hp__pillar-text strong { display: block; font-size: 12.5px; }
  .hp__pillar-text span { font-size: 12.5px; line-height: 1.4; }

  .hp__hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .hp__hero-text { flex: 1 1 0; max-width: 680px; }
  .hp__heroflow { flex: 0 0 420px; }

  .hp__opener { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: end; }
  .hp__opener .hp__kicker { grid-column: 1 / -1; }
  .hp__opener h2 { margin-bottom: 0; }

  .hp__maximus-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 56px; }
  .hp__maximus-text { flex: 1 1 0; max-width: 520px; }
  .hp__kpis { flex: 0 0 560px; }
  .hp__maximus-shot { margin-top: 44px; }

  .hp__split { flex-direction: row; align-items: flex-start; gap: 64px; }
  .hp__chain--band { flex-wrap: nowrap; padding-top: 32px; border-top: 1px solid var(--bd); }
  .hp__section--pale .hp__chain--band { border-top-color: #dde2f0; }
  .hp__chain--band li { flex: 1 1 auto; white-space: nowrap; }
  .hp__split-text { flex: 1 1 0; }
  .hp__split-visual--pn { flex: 0 0 480px; }
  .hp__split-visual--eu { flex: 0 0 520px; }
  .hp__split--reverse .hp__split-visual { order: -1; }

  .hp__depth { flex-direction: row; align-items: center; gap: 72px; }
  .hp__depth-main { flex: 1 1 0; }
  .hp__grid { grid-template-columns: repeat(3, 1fr); }
  .hp .hp__depth-phone { flex: 0 0 220px; width: 220px; margin: 0; }

  .hp__compare { flex-direction: row; align-items: flex-start; gap: 64px; }
  .hp__compare-text { flex: 1 1 0; }
  .hp .hp__complist { flex: 0 0 520px; }
}

/* =========================================================================
   Kompaktní varianty (review 1. 10.): ekosystém = stručné propojení služeb,
   důvěryhodnost = kompaktní trust sekce. Obsah beze změny.
   ========================================================================= */
.hp__section--eco { padding-top: 48px; padding-bottom: 48px; }
.hp__section--eco .hp__intro { margin-bottom: 22px; }
.hp__section--eco .hp__eco { gap: 12px; }
.hp__section--eco .hp__eco-row { padding: 14px 12px; }
.hp__section--eco .hp__strong { margin-top: 22px; }

.hp__section--proof { padding-top: 44px; padding-bottom: 44px; }

@media (min-width: 768px) {
  /* procesní boxy jen tak široké jako jejich obsah */
  .hp__section--eco .hp__eco { align-items: flex-start; }
  .hp__section--eco .hp__eco-row { display: inline-flex; width: auto; max-width: 100%; padding: 12px 16px; gap: 26px; }
}

@media (min-width: 1024px) {
  .hp__section--eco { padding-top: 60px; padding-bottom: 60px; }
  .hp__section--eco .hp__intro { max-width: none; display: flex; align-items: baseline; gap: 40px; margin-bottom: 26px; }
  .hp__section--eco .hp__intro h2 { margin-bottom: 0; flex: 0 0 auto; max-width: 22ch; }
  .hp__section--eco .hp__intro .hp__body { max-width: 52ch; }

  .hp__section--proof { padding-top: 64px; padding-bottom: 64px; }
  .hp__section--proof .hp__proof {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; align-items: start;
  }
  .hp__section--proof .hp__kicker { grid-column: 1 / -1; }
  .hp__section--proof .hp__proof h2 { font-size: 34px; max-width: none; margin-bottom: 0; }
  .hp__section--proof .hp__proof-body { margin-top: 4px; }
  .hp__section--proof .hp__proof-body .hp__body { max-width: none; }
  .hp__section--proof .hp__ctas { margin-top: 22px; }
}
