/* =========================================================================
   /reference — izolované styly (namespace ref__).
   Tokeny, typografie, tlačítka a mřížka (obsah 1140 px) shodné s homepage,
   /eu-strategicke-reporty a /medialni-analyzy. Sdílené soubory nepřepisuje.
   Charakter stránky: důkaz + důvěryhodnost + šíře využití (typografie, bez log).
   ========================================================================= */

.ref {
  --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;
}
.ref * { box-sizing: border-box; }
:where(.ref) :where(ul, ol, dl, dd) { list-style: none; margin: 0; padding: 0; }
:where(.ref) :where(h1, h2, h3, p) { margin: 0; }
.ref [id] { scroll-margin-top: 72px; }
.ref__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 ---------- */
.ref__section { padding: 56px 20px; }
.ref__section--white { background: #fff; }
.ref__section--pale { background: var(--bl-pale2); }
.ref__section--hero { background: #fff; padding-top: 40px; }
.ref__section--navy { background: var(--nv); color: #fff; }
.ref__wrap { max-width: var(--wrap); margin: 0 auto; }

/* ---------- typografie ---------- */
.ref h1 { font-size: 31px; line-height: 1.14; font-weight: 800; color: var(--nv); margin-bottom: 20px; letter-spacing: -.01em; max-width: 20ch; }
.ref h2 { font-size: 25px; line-height: 1.22; font-weight: 800; color: var(--nv); margin-bottom: 14px; max-width: 34ch; }
.ref__kicker { color: var(--bl); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.ref__lead { font-size: 16px; line-height: 1.6; color: var(--gy); max-width: 58ch; }
.ref__hero-strong { margin-top: 18px; font-size: 17px; font-weight: 800; color: var(--nv); }
.ref__body { font-size: 15.5px; line-height: 1.65; color: var(--gy); max-width: 64ch; }
.ref__intro { max-width: 760px; margin-bottom: 30px; }

/* ---------- tlačítka ---------- */
.ref__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;
}
.ref__btn--ghost { background: #fff; color: var(--bl); border-color: var(--bl); }
.ref__btn--ghost:hover { background: var(--bl-pale); }
.ref__btn--light { background: #fff; color: var(--bl); }
.ref__btn--light:hover { background: var(--bl-pale); }
.ref a:focus-visible { outline: 3px solid var(--bl); outline-offset: 3px; }
.ref__section--navy a:focus-visible { outline-color: #fff; }
.ref__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* =========================== 1 · HERO =========================== */
.ref__hero { display: flex; flex-direction: column; gap: 32px; }
/* střídmý typografický podpůrný prvek */
.ref__hero-stack { border-left: 3px solid var(--bl); padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.ref__hero-stack li { font-size: 22px; line-height: 1.25; font-weight: 800; color: #6f7bb5; }
.ref__hero-stack li:last-child { color: var(--bl); }

/* =========================== 2 · TRUST =========================== */
.ref__section--trust { border-top: 1px solid var(--bd); }
.ref__trust h2 { font-size: 28px; max-width: 22ch; }

/* =========================== 3 · REGISTR SMLUV =========================== */
.ref__section--registr { background: #fff; padding-top: 0; }
.ref__registr {
  background: var(--bl-pale2); border: 1px solid #dde2f0; border-radius: 16px; padding: 24px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.ref__registr h2 { font-size: 21px; margin-bottom: 8px; }

/* =========================== 4 · INFORMAČNÍ POTŘEBY =========================== */
.ref__needs { display: grid; grid-template-columns: 1fr; border-top: 1px solid #dde2f0; }
.ref__need { padding: 16px 0; border-bottom: 1px solid #dde2f0; }
.ref__need dt { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--nv); margin-bottom: 6px; }
.ref__need dd { font-size: 15px; line-height: 1.55; color: var(--gy); }

/* =========================== 5 · ODVĚTVÍ =========================== */
.ref__sectors-wrap { display: flex; flex-direction: column; gap: 28px; }
.ref__sectors { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #dde2f0; border-left: 1px solid #dde2f0; }
.ref__sectors li {
  padding: 16px 14px; border-right: 1px solid #dde2f0; border-bottom: 1px solid #dde2f0;
  font-size: 15px; font-weight: 700; color: var(--nv); background: #fff;
}

/* =========================== 6 · EKOSYSTÉM =========================== */
.ref__eco { border-top: 1px solid #dde2f0; }
.ref__eco-row { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid #dde2f0; }
.ref__eco-name { font-size: 13.5px; font-weight: 800; letter-spacing: .06em; color: var(--bl); text-decoration: none; align-self: flex-start; }
.ref__eco-name:hover { text-decoration: underline; }
.ref__eco-arrow { display: none; color: #6f7bb5; }
.ref__eco-row p { font-size: 15px; line-height: 1.55; color: var(--gy); }

/* =========================== 7 · FINAL CTA =========================== */
.ref__final h2 { color: #fff; max-width: 32ch; }
.ref__final > p { color: rgba(255, 255, 255, .8); font-size: 15.5px; line-height: 1.65; max-width: 60ch; }

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

@media (min-width: 768px) {
  .ref__section { padding: 72px 32px; }
  .ref__section--hero { padding-top: 48px; }
  .ref__section--registr { padding-top: 0; }
  .ref h1 { font-size: 40px; }
  .ref h2 { font-size: 28px; }
  .ref__trust h2 { font-size: 34px; }
  .ref__registr { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; gap: 32px; }
  .ref__needs { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .ref__eco-row { display: grid; grid-template-columns: 260px 28px 1fr; align-items: baseline; gap: 0 12px; }
  .ref__eco-arrow { display: inline; }
}

@media (min-width: 1024px) {
  .ref__sector-cards { grid-template-columns: repeat(3, 1fr); }
  .ref__section { padding-top: 80px; padding-bottom: 80px; }
  .ref__section--hero { padding-top: 56px; padding-bottom: 72px; }
  .ref__section--registr { padding-top: 0; }
  .ref h1 { font-size: 44px; }
  .ref h2 { font-size: 31px; max-width: 40ch; }
  .ref__lead { font-size: 17px; }
  .ref__body { font-size: 16px; }

  .ref__hero { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 64px; }
  .ref__hero-text { flex: 1 1 0; max-width: 720px; }
  .ref__hero-stack { flex: 0 0 300px; padding-left: 24px; }
  .ref__hero-stack li { font-size: 28px; }

  .ref__trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; align-items: start; }
  .ref__trust h2 { font-size: 38px; margin-bottom: 0; }
  .ref__trust .ref__body { font-size: 17px; padding-top: 6px; }

  .ref__sectors-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
}

/* =========================== 3b · VYBRANÉ REFERENCE ===========================
   Původní loga jsou bílá/barevná pro tmavé pozadí (stejně jako na staré homepage),
   proto střídmý modrý pás. Loga nejsou překreslena ani přebarvena. */
.ref__section--logos { background: #fff; padding-top: 0; }
.ref__sector-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; list-style: none; padding: 0; }
.ref__sector-card {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px;
  background: var(--bl-pale2); border: 1px solid var(--bd); font-weight: 700; font-size: 14.5px; color: var(--nv);
}
.ref__sector-icon { width: 24px; height: 24px; min-width: 24px; color: var(--bl); flex-shrink: 0; }
.ref__sector-icon svg { display: block; width: 100%; height: 100%; }
.ref__sector-card--accent { background: var(--nv); border-color: var(--nv); color: #fff; }
.ref__sector-card--accent .ref__sector-icon { color: #fff; }
.ref__logos-wrap { display: flex; flex-direction: column; gap: 18px; }
.ref__logos-text h2 { font-size: 21px; margin-bottom: 6px; }
.ref__logos {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  background: var(--bl); border-radius: 16px; padding: 14px;
}
.ref__logos li { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 10px 12px; }
.ref__logos img { display: block; width: auto; height: auto; max-width: 130px; max-height: 40px; }
@media (min-width: 640px) {
  .ref__logos { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .ref__section--logos { padding-top: 0; }
}
@media (min-width: 1024px) {
  .ref__section--logos { padding-top: 0; }
  .ref__logos-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px; align-items: center; }
  .ref__logos { grid-template-columns: repeat(4, 1fr); padding: 16px 18px; }
  .ref__logos li { min-height: 76px; }
  .ref__logos img { max-width: 140px; max-height: 42px; }
}
