/* =====================================================================
   ČPP Servis — web
   Etapa 1: foundation (tokeny, typografie, shell, header, footer, hero)
   Barvy jsou převzaty z reálného loga (cpp-servis-mark.svg):
     červená #E40511, modrá #005090
   Písmo: brand = Frutiger LT Pro (komerční licence). Dokud není webfont
   licence, jede fallback (Source Sans 3 / systémový humanist sans).
   Swap na Frutiger = doplnit @font-face a je už první ve stacku.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --c-red:        #E40511;
  --c-red-dark:   #B70410;
  --c-blue:       #005090;
  --c-blue-dark:  #003C6E;
  --c-blue-tint:  #E8F0F7;

  /* Neutrály */
  --c-ink:        #16232E;   /* hlavní text */
  --c-muted:      #5A6672;   /* sekundární text */
  --c-line:       #E1E6EC;   /* jemné linky, ohraničení */
  --c-surface:    #F5F7FA;   /* světlé střídavé sekce */
  --c-white:      #FFFFFF;

  /* Typografie */
  --font-brand: "Frutiger LT Pro", "Frutiger", "Source Sans 3",
                -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-base: 1.0625rem;      /* 17px */
  --lh-base: 1.6;
  --lh-tight: 1.15;

  /* Rozměry / rytmus */
  --container: 1160px;
  /* Texty přes fotku (hero s fotkou, photo-band): do --veil-solid je pozadí plně neprůhledné,
     textový sloupec (--text-col) končí vždy před touto hranicí → text nikdy neleží na fotce. */
  --veil-solid: 52%;
  --veil-end: 62%;
  --text-col: calc(52vw - max(0px, (100vw - var(--container)) / 2) - var(--gutter) - 1.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3rem, 7vw, 6rem);
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(22,35,46,.06), 0 2px 8px rgba(22,35,46,.05);
  --shadow-md: 0 6px 24px rgba(22,35,46,.10);

  /* Header */
  --header-h: 84px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-brand);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--c-blue); text-underline-offset: 2px; }
a:hover { color: var(--c-blue-dark); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--c-blue);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.45rem); color: var(--c-ink); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Přístupnost: viditelný focus */
:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip link */
.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--c-blue); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius); z-index: 200; transition: top .15s ease;
}
.skip-link:focus { top: 8px; color:#fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight-top { padding-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.section--tint { background: var(--c-surface); }
.section--blue { background: var(--c-blue); color: #fff; }
.section--blue h1, .section--blue h2, .section--blue h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: .9rem;
}
.lead { font-size: 1.15rem; color: var(--c-muted); max-width: 60ch; }
.measure { max-width: 62ch; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 700;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-red); color: #fff; }
.btn--primary:hover { background: var(--c-red-dark); color:#fff; }
.btn--secondary { background: transparent; color: var(--c-blue); border-color: var(--c-blue); }
.btn--secondary:hover { background: var(--c-blue); color: #fff; }
.btn--ghost-light { background: transparent; color:#fff; border-color: rgba(255,255,255,.65); }
.btn--ghost-light:hover { background:#fff; color: var(--c-blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* ---------- Header / navigace ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }

.nav__toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: .5rem; color: var(--c-blue);
}
.nav__toggle svg { width: 28px; height: 28px; }

.nav__list {
  display: flex; align-items: center; gap: .35rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: .55rem .85rem;
  font-weight: 600; color: var(--c-ink); text-decoration: none;
  border-radius: var(--radius);
}
.nav__link:hover { color: var(--c-blue); background: var(--c-blue-tint); }
.nav__link[aria-current="page"] { color: var(--c-blue); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem;
  height: 3px; background: var(--c-red);
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav[data-open="true"] { max-height: 70vh; }
  .nav__list { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1rem; gap: 0; }
  .nav__link { padding: .85rem .5rem; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav__link[aria-current="page"] { border-bottom-color: var(--c-red); }
  .nav__link[aria-current="page"]::after { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--c-white); }

/* fotka na pozadí (~60 % vpravo), doleva se vytrácí do průhledna za text */
.hero__bg {
  position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: 0;
  background-size: cover; background-position: center right;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.7) 34%, #000 62%);
          mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.7) 34%, #000 62%);
}
/* bílý závoj vlevo → texty jsou vždy čitelné */
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, #fff var(--veil-solid), rgba(255,255,255,0) var(--veil-end));
}

/* Hero, kde má být osoba na fotce výrazně vidět (Domů — operátorka):
   kratší přechod, fotka se vytrácí jen u samého okraje textu. */
.hero__bg--subject {
  width: 56%; background-position: center top;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
          mask-image: linear-gradient(to right, transparent 0, #000 30%);
}

.hero__inner { position: relative; z-index: 2; padding-block: clamp(2.75rem, 6vw, 5rem); }
.hero__body { max-width: 34rem; }
.hero h1 { margin-bottom: .3em; }
.hero__claim { display: inline-block; margin-top: 1.5rem; font-weight: 700; color: var(--c-red); font-size: 1.05rem; }

/* hero s fotkou: text zarovnaný nahoru (stejná výška startu jako interiérové hero),
   min-height drží plochu pro fotku, přebytek jde pod text — sekce tak nepřerůstá obsah */
.hero--photo .hero__inner {
  min-height: clamp(300px, 38vw, 430px);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-block: clamp(2rem, 4vw, 3.25rem);
}
.hero--photo .hero__body { max-width: min(38rem, var(--text-col)); }

@media (max-width: 820px) {
  /* fotka jako pruh nahoře, text pod ní */
  .hero__bg {
    position: relative; width: 100%; height: clamp(180px, 44vw, 260px);
    -webkit-mask-image: none; mask-image: none;
  }
  .hero--photo::before { display: none; }
  .hero--photo .hero__inner { min-height: 0; display: block; }
  .hero--photo .hero__body { max-width: none; }
}

/* ---------- Slot pro fotografii (placeholder, snadno vyměnit za <img>) ---------- */
.photo-slot {
  position: relative; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--c-blue-tint) 0%, #ffffff 55%, rgba(228,5,17,.07) 100%);
  border: 1px dashed rgba(0,80,144,.4);
  border-radius: var(--radius-lg);
  color: var(--c-blue); overflow: hidden;
  aspect-ratio: 4 / 3;
}
/* reálná fotka: <div class="photo-slot"><img src="…" alt="…"></div> */
.photo-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* jemný brand gradient přes fotku – aktivní jen když je vložen <img> */
.photo-slot:has(img)::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(150deg, rgba(0,80,144,.32) 0%, rgba(0,80,144,0) 48%, rgba(228,5,17,.2) 100%);
  mix-blend-mode: multiply;
}
.photo-slot:has(img) { border-color: transparent; }
.photo-slot--oval { aspect-ratio: 3 / 4; border-radius: 50%; }
.photo-slot__inner { position: relative; z-index: 2; display: grid; place-items: center; gap: .5rem; padding: 1rem; }
.photo-slot__inner svg { width: 40px; height: 40px; opacity: .65; }
.photo-slot__label { font-size: .85rem; font-weight: 600; opacity: .85; }
.photo-slot--portrait { aspect-ratio: 3 / 4; }
.photo-slot--circle { aspect-ratio: 1; border-radius: 50%; }

/* ---------- Mluvčí (text vlevo na hraně, portrét vpravo) ---------- */
.speaker {
  display: grid; grid-template-columns: 1fr 220px;
  gap: clamp(1.5rem, 4vw, 2.75rem); align-items: start;
}
.speaker__text { order: 1; max-width: 62ch; }
.speaker__photo { order: 2; }
@media (max-width: 640px) {
  .speaker { grid-template-columns: 1fr; }
  .speaker__photo { order: 2; max-width: 180px; }
}

/* ---------- Hero: interiérové stránky (jen text, jasně zarovnaný vlevo) ---------- */
.hero--interior .hero__inner { display: block; padding-block: clamp(2rem, 4vw, 3.25rem); }
.hero--interior .hero__body { max-width: 60ch; }

/* ---------- Karty / grid (základ pro další etapy) ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #cfd8e2; }
.card__icon {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--c-blue-tint); color: var(--c-red);
  margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card .btn-row { margin-top: auto; padding-top: 1.25rem; }

/* ---------- Patička ---------- */
.site-footer { background: var(--c-blue-dark); color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top {
  display: grid; gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 820px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } }

.footer-col h4 {
  color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  opacity: .85; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-mark { height: 46px; width:auto; margin-bottom: 1rem; }
/* logo v modré patičce – provedeme přes CSS filtr na bílou, aby drželo kontrast */
.footer-mark--invert { filter: brightness(0) invert(1); }

.footer-doc-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; padding: .7rem 1.1rem;
  border: 2px solid rgba(255,255,255,.6); border-radius: var(--radius);
  text-decoration: none;
}
.footer-doc-link:hover { background:#fff; color: var(--c-blue) !important; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
  font-size: .92rem;
}
.claim { font-weight: 700; }
.claim--service { color: #fff; }

/* Utility */
.visually-hidden {
  position:absolute!important; width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.stack > * + * { margin-top: 1rem; }
.text-muted { color: var(--c-muted); }

/* ---------- Citace / slovo člena sboru ---------- */
.quote {
  border-left: 4px solid var(--c-red);
  padding: .25rem 0 .25rem 1.5rem;
  max-width: 68ch;
}
.quote p { font-size: 1.1rem; }
.quote__author { margin-top: 1.25rem; font-weight: 700; color: var(--c-ink); }
.quote__role { color: var(--c-muted); }

/* ---------- Legal: základní údaje (definiční seznam) ---------- */
.data-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .65rem 1.75rem;
  margin: 0;
  align-items: baseline;
}
.data-list dt { font-weight: 700; color: var(--c-blue); }
.data-list dd { margin: 0; color: var(--c-ink); }
@media (max-width: 560px) {
  .data-list { grid-template-columns: 1fr; gap: .1rem 0; }
  .data-list dd { margin-bottom: .75rem; }
}

/* ---------- Legal: statutární orgány ---------- */
.org__title { color: var(--c-ink); font-size: 1.05rem; margin-bottom: 1rem; }
.org-list { list-style: none; margin: 0; padding: 0; }
.org-list li { margin-bottom: 1rem; }
.org-list .name { font-weight: 700; }
.org-list .role { color: var(--c-muted); font-size: .95rem; }

/* ---------- Kontaktní blok (kariéra / o nás) ---------- */
.contact-inline a { font-weight: 700; }

/* ---------- Formulář ---------- */
.form { max-width: 40rem; }
.form__row { margin-bottom: 1.15rem; }
.form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 520px) { .form__row--split { grid-template-columns: 1fr; } }

.form label { display: block; font-weight: 600; margin-bottom: .4rem; }
.form .req { color: var(--c-red); }

.form input,
.form select,
.form textarea {
  width: 100%; font: inherit; color: var(--c-ink);
  padding: .7rem .85rem;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none; border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(0,80,144,.15);
}
.form [aria-invalid="true"] { border-color: var(--c-red); }
.form [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(228,5,17,.15); }

.field-error { display: none; color: var(--c-red); font-size: .85rem; margin-top: .35rem; }
.field-error.is-visible { display: block; }

.form__check { display: flex; align-items: flex-start; gap: .6rem; }
.form__check input { width: auto; margin-top: .25rem; flex: 0 0 auto; }
.form__check label { font-weight: 400; margin: 0; }

.form__success {
  display: none;
  background: var(--c-blue-tint); border: 1px solid rgba(0,80,144,.25);
  border-left: 4px solid var(--c-blue);
  border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: 1.25rem;
  color: var(--c-ink);
}
.form__success.is-visible { display: block; }
.form__error {
  display: none;
  background: #FDECEC; border: 1px solid rgba(228,5,17,.25);
  border-left: 4px solid var(--c-red);
  border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: 1.25rem;
  color: var(--c-ink);
}
.form__error.is-visible { display: block; }
.form button[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Kontaktní stránka: údaje + formulář */
.contact-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-facts { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.contact-facts li { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.1rem; }
.contact-facts svg { width: 22px; height: 22px; color: var(--c-red); flex: 0 0 auto; }
.contact-facts a { font-weight: 700; }

/* Sociální odkazy v patičce */

/* ---------- Dokumenty: akordeon + verze ---------- */
.accordion { border-top: 1px solid var(--c-line); }
.acc-item { border-bottom: 1px solid var(--c-line); }
.acc-head {
  list-style: none; cursor: pointer;
  font-weight: 700; color: var(--c-blue); font-size: 1.15rem;
  padding: 1.15rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.acc-head::-webkit-details-marker { display: none; }
.acc-head::marker { content: ""; }
.acc-head:hover { color: var(--c-blue-dark); }
.acc-icon { flex: 0 0 auto; transition: transform .2s ease; }
details[open] > .acc-head .acc-icon { transform: rotate(180deg); }
.acc-panel { padding-bottom: 1.25rem; }

.doc { padding: 1rem 0; border-top: 1px dashed var(--c-line); }
.doc:first-child { border-top: 0; }
.doc__name { font-weight: 700; color: var(--c-ink); margin-bottom: .6rem; }
.doc__versions { display: grid; gap: .5rem; }
.doc-ver {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  padding: .6rem .85rem; background: var(--c-surface); border-radius: var(--radius);
}
.doc-ver__badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 4px; flex: 0 0 auto;
}
.badge-current { background: var(--c-blue); color: #fff; }
.badge-prev { background: #dfe5ec; color: var(--c-ink); }
.doc-ver__meta { color: var(--c-muted); font-size: .9rem; }
.doc-ver__dl { margin-left: auto; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.doc-ver__dl svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .doc-ver__dl { margin-left: 0; } }

.doc-note {
  background: var(--c-blue-tint); border-left: 4px solid var(--c-blue);
  border-radius: var(--radius); padding: .9rem 1.1rem; margin-top: 1.25rem;
  font-size: .92rem; color: var(--c-ink);
}

/* ---------- Kariéra: oddělení ---------- */
.dept { max-width: 68ch; }

/* ---------- Pruh s klíčovými fakty ---------- */
.stats { border-block: 1px solid var(--c-line); background: #fff; }
.stats__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
}
.stat { display: flex; gap: .9rem; align-items: flex-start; }
.stat__icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-blue-tint); color: var(--c-red);
  display: grid; place-items: center;
}
.stat__icon svg { width: 24px; height: 24px; }
.stat__title { font-size: 1.3rem; font-weight: 700; color: var(--c-red); line-height: 1.1; }
.stat__text { color: var(--c-blue); margin-top: .25rem; font-size: .95rem; }
@media (max-width: 640px) {
  .stats__grid { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* ---------- Detaily z revize ---------- */
.section__head--center { text-align: center; max-width: 60ch; margin-inline: auto; }

.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; }
.footer-contact svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; color: rgba(255,255,255,.85); }
.footer-contact a, .footer-contact span { color: #fff; }

/* Odsazení kotev pod lepkavou hlavičku (plynulý scroll na #kontakt apod.) */
section[id], [id]:target { scroll-margin-top: calc(var(--header-h) + 14px); }

/* ---------- Karta pozice: podsekce + zakončení ---------- */
.card-sub + .card-sub { margin-top: 1.1rem; }
.card-sub__label {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--c-blue); font-size: .95rem;
  margin-bottom: .35rem;
}
.card-sub__label svg { width: 18px; height: 18px; color: var(--c-red); flex: 0 0 auto; }
.card-sub p { margin: 0; }

.card-foot { margin-top: auto; padding-top: 1.4rem; }
.card-foot__note { font-weight: 700; color: var(--c-ink); margin: 0 0 .6rem; }

/* ---------- Inline logo (SVG přímo v HTML) ---------- */
.brand__logo { height: 58px; width: auto; display: block; }
@media (max-width: 820px) { :root { --header-h: 72px; } .brand__logo { height: 48px; } }
.footer-mark-wrap { display: inline-block; }
.footer-mark--svg { height: 46px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }

/* ---------- Jemné zobrazování sekcí (aktivní jen když JS přidá .has-reveal) ---------- */
.has-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.has-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .has-reveal .reveal, .has-reveal .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sekce s fotkou na pozadí (osoby apod.) ---------- */
.photo-band { position: relative; overflow: hidden; --band-scrim: #ffffff; }
.photo-band__bg {
  position: absolute; top: 0; right: 0; bottom: 0; width: 56%; z-index: 0;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.7) 36%, #000 66%);
          mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.7) 36%, #000 66%);
}
.photo-band::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, var(--band-scrim) var(--veil-solid), transparent var(--veil-end));
}
.photo-band > .container { position: relative; z-index: 2; }
.band__body { max-width: min(44rem, var(--text-col)); }

@media (max-width: 820px) {
  /* fotka jako pruh nahoře, text pod ní */
  .photo-band__bg {
    position: relative; width: 100%; height: clamp(160px, 42vw, 230px);
    -webkit-mask-image: none; mask-image: none; margin-bottom: 1.5rem;
  }
  .photo-band::before { display: none; }
  .band__body { max-width: none; }
}

/* ---------- Právní text (Zásady ochrany osobních údajů) ---------- */
.legal { max-width: 52rem; }
.legal h2 { margin-top: 2.5rem; font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
.legal h2:first-of-type { margin-top: 1.75rem; }
.legal h3 { margin-top: 1.6rem; font-size: 1.08rem; color: var(--c-ink); }
.legal p, .legal li { margin-top: .75rem; line-height: 1.65; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal__updated { margin-top: 2.5rem !important; color: var(--c-muted); font-size: .92rem; }
.table-wrap { overflow-x: auto; margin-top: 1rem; -webkit-overflow-scrolling: touch; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-table th, .legal-table td { padding: .65rem .8rem; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.legal-table thead th { background: var(--c-surface); color: var(--c-ink); font-weight: 700; }
.legal-table--kv { max-width: 40rem; }
.legal-table--kv th { width: 11rem; background: var(--c-surface); font-weight: 600; color: var(--c-ink); }
.legal-table--small { font-size: .85rem; min-width: 46rem; }
.legal-table__group th { background: var(--c-surface); color: var(--c-blue); font-weight: 700; }

/* Zalomení řádku jen na desktopu (na mobilu text teče přirozeně) */
@media (max-width: 820px) { .br-desktop { display: none; } }
