
/* ==========================================================================
   Prostějovští demokraté — vizuální styl webu
   Vychází z tištěného letáku: fialová stuha se šipkou, modrá obloha,
   těžké verzálky. Barvy jsou vedeny jako proměnné, takže se dají změnit
   na jednom místě (blok :root níže).
   ========================================================================== */

:root{
  color-scheme: light;

  --bg:            #F4F3FB;
  --surface:       #FFFFFF;
  --surface-2:     #EFEDFA;
  --text:          #1C0B45;
  --text-muted:    #56527A;
  --border:        #DFDCEF;

  --accent:        #4B21A8;
  --accent-strong: #2E1470;

  --ribbon-bg:     #4B21A8;
  --ribbon-bg-2:   #34168A;
  --ribbon-fg:     #FFFFFF;
  --badge-bg:      #6B3FD4;

  --sky-1:         #7FD6F5;
  --sky-2:         #BCE8FA;
  --sky-3:         #E8F6FD;
  --sky-ink:       #0B4F6C;

  --chip-ods:      #4B21A8;
  --chip-nk:       #0E6F94;

  --footer-bg:     #240F5C;
  --footer-fg:     #E8E3FA;
  --footer-muted:  #A79BD4;

  --shadow-sm: 0 1px 2px rgba(28,11,69,.06), 0 2px 8px rgba(28,11,69,.05);
  --shadow-md: 0 4px 10px rgba(28,11,69,.08), 0 12px 28px rgba(28,11,69,.09);

  --arrow: 20px;            /* hloubka hrotu stuhy */
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);

  --f-display: "Anton", "Arial Narrow", "Haettenschweiler", sans-serif;
  --f-ui:      "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme: dark;
    --bg:            #0D0820;
    --surface:       #171034;
    --surface-2:     #1F1743;
    --text:          #F1EDFF;
    --text-muted:    #ACA4CC;
    --border:        #2E2358;

    --accent:        #BCA4FF;
    --accent-strong: #D8CBFF;

    --ribbon-bg:     #5B2ECB;
    --ribbon-bg-2:   #3E1C9A;
    --ribbon-fg:     #FFFFFF;
    --badge-bg:      #7A46E0;

    --sky-1:         #14405E;
    --sky-2:         #0F2C46;
    --sky-3:         #0D1F36;
    --sky-ink:       #C6E9F9;

    --chip-ods:      #BCA4FF;
    --chip-nk:       #6FD0F0;

    --footer-bg:     #0A0619;
    --footer-fg:     #DCD5F7;
    --footer-muted:  #8E85B8;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 6px 16px rgba(0,0,0,.45);
  }
}

:root[data-theme="dark"]{
  color-scheme: dark;
  --bg:            #0D0820;
  --surface:       #171034;
  --surface-2:     #1F1743;
  --text:          #F1EDFF;
  --text-muted:    #ACA4CC;
  --border:        #2E2358;

  --accent:        #BCA4FF;
  --accent-strong: #D8CBFF;

  --ribbon-bg:     #5B2ECB;
  --ribbon-bg-2:   #3E1C9A;
  --ribbon-fg:     #FFFFFF;
  --badge-bg:      #7A46E0;

  --sky-1:         #14405E;
  --sky-2:         #0F2C46;
  --sky-3:         #0D1F36;
  --sky-ink:       #C6E9F9;

  --chip-ods:      #BCA4FF;
  --chip-nk:       #6FD0F0;

  --footer-bg:     #0A0619;
  --footer-fg:     #DCD5F7;
  --footer-muted:  #8E85B8;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 16px rgba(0,0,0,.45);
}

/* --- základ --------------------------------------------------------------- */

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0938rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; height: auto; }

a{ color: var(--accent); text-underline-offset: .18em; }
a:hover{ color: var(--accent-strong); }

:focus-visible{
  outline: 3px solid var(--badge-bg);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip{
  position: absolute; left: -9999px; top: 0;
  background: var(--ribbon-bg); color: #fff;
  padding: .7rem 1.1rem; z-index: 200; font-family: var(--f-ui); font-weight: 700;
}
.skip:focus{ left: .5rem; top: .5rem; }

.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band{ padding-block: clamp(2.6rem, 6vw, 4.8rem); }
.band--surface{ background: var(--surface); }
.band--mist{ background: var(--surface-2); }

h1, h2, h3, h4{ text-wrap: balance; margin: 0; }

/* --- stuha se šipkou (hlavní motiv kampaně) ------------------------------- */

.ribbon{
  display: inline-block;
  background: var(--ribbon-bg);
  color: var(--ribbon-fg);
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .012em;
  line-height: 1.06;
  padding: .5em calc(var(--arrow) + .9em) .55em .85em;
  clip-path: polygon(0 0, calc(100% - var(--arrow)) 0, 100% 50%, calc(100% - var(--arrow)) 100%, 0 100%);
  max-width: 100%;
}

.ribbon--both{
  padding-left: calc(var(--arrow) + .9em);
  clip-path: polygon(var(--arrow) 0, calc(100% - var(--arrow)) 0, 100% 50%,
                     calc(100% - var(--arrow)) 100%, var(--arrow) 100%, 0 50%);
}

.ribbon--sky{ background: var(--ribbon-bg-2); }

.ribbon-h2{ font-size: clamp(1.15rem, 1rem + 1.6vw, 1.85rem); }

.section-head{
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: .75rem 1.25rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.section-head p{
  margin: 0; color: var(--text-muted); max-width: 46ch; font-size: .975rem;
}

/* --- kulatý odznak kandidátky --------------------------------------------- */

.badge{ display: block; height: auto; flex: none; }
.badge--sm{ width: 46px; }
.badge--md{ width: 92px; }
.badge--lg{ width: clamp(104px, 17vw, 150px); }

/* --- hlavička -------------------------------------------------------------- */

.site-head{
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-head__in{
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px; padding-block: .55rem;
}
.brand{
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--text); margin-right: auto;
}
.brand strong{
  font-family: var(--f-ui); font-weight: 700; font-size: 1rem;
  letter-spacing: -.005em; line-height: 1.15;
}
.brand small{
  display: block; font-family: var(--f-body); font-weight: 400;
  font-size: .78rem; color: var(--text-muted); letter-spacing: 0;
}

.nav{ display: flex; align-items: center; gap: .3rem; }
.nav a{
  font-family: var(--f-ui); font-weight: 600; font-size: .94rem;
  text-decoration: none; color: var(--text);
  padding: .5rem .72rem; border-radius: 7px;
}
.nav a:hover{ background: var(--surface-2); color: var(--accent-strong); }
.nav a[aria-current="page"]{ color: var(--ribbon-fg); background: var(--ribbon-bg); }

.vote-pill{
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--ribbon-bg); color: var(--ribbon-fg);
  font-family: var(--f-ui); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .42rem .7rem .42rem .8rem; border-radius: 999px; text-decoration: none;
}
.vote-pill b{
  font-family: var(--f-display); font-size: 1.28rem; line-height: 1;
  letter-spacing: 0; margin-top: -1px;
}
.vote-pill:hover{ background: var(--ribbon-bg-2); color: #fff; }

.nav-toggle{
  display: none; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); border-radius: 8px; padding: .5rem .7rem;
  font-family: var(--f-ui); font-weight: 700; font-size: .9rem; cursor: pointer;
}

@media (max-width: 860px){
  .nav-toggle{ display: block; }
  .nav{
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .6rem var(--gutter) 1rem;
  }
  .nav.is-open{ display: flex; }
  .nav a{ padding: .8rem .6rem; font-size: 1.02rem; }
  .brand small{ display: none; }
}

/* --- hero ------------------------------------------------------------------ */

.hero{
  position: relative;
  background: linear-gradient(178deg, var(--sky-1) 0%, var(--sky-2) 52%, var(--sky-3) 100%);
  padding-block: clamp(1.6rem, 4vw, 2.6rem) 0;
  overflow: hidden;
}
.hero--photo{ background: var(--bg); padding: 0; }
.hero--photo .hero__figure{
  margin: 0 auto; max-width: 1800px; border-radius: 0; min-height: 0;
  background: none; display: block;
}
.hero--photo .hero__figure img{ display: block; width: 100%; height: auto; }

.visually-hidden{
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.cand-list{
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  columns: 1; column-gap: 2.5rem; font-size: .95rem;
}
@media (min-width: 700px){ .cand-list{ columns: 2; } }
@media (min-width: 1040px){ .cand-list{ columns: 3; } }
.cand-list li:first-child{ margin-top: 0; }
.cand-list li{
  break-inside: avoid; padding: .55rem 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: .5rem;
}
.cand-list li > div{ min-width: 0; }
.cand-list b{
  flex: none; width: 1.9rem; text-align: right;
  font-family: var(--f-display); font-weight: 400; color: var(--accent);
  font-size: 1.02rem; font-variant-numeric: tabular-nums;
}
.cand-list strong{ font-family: var(--f-ui); font-weight: 700; }
.cand-list em{ font-style: normal; color: var(--text-muted); font-size: .85em; }
.cand-list span{ display: block; color: var(--text-muted); font-size: .86rem; line-height: 1.35; }
.hero__in{ position: relative; z-index: 1; }

.hero__top{
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 1rem 1.5rem; margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.flag{
  background: var(--surface); color: var(--text);
  border-radius: 4px; box-shadow: var(--shadow-md);
  padding: .6rem .95rem .55rem;
  display: flex; align-items: center; gap: .85rem;
}
.flag__when{
  font-family: var(--f-ui); font-weight: 700; line-height: 1.12;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .03em;
}
.flag__when em{ display: block; font-style: normal; color: var(--text-muted); font-weight: 600; }
.flag__num{
  font-family: var(--f-display); font-size: 2.9rem; line-height: .82;
  color: var(--accent); letter-spacing: -.02em;
}

.hero__kicker{
  font-family: var(--f-ui); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--sky-ink);
  margin: 0; align-self: center;
}

.hero__claim{
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem;
  margin: 0 0 1rem;
}
.hero__claim .ribbon{
  font-size: clamp(1.85rem, .95rem + 5.9vw, 4.05rem);
  padding-block: .32em .36em;
}
.hero__sub{
  display: inline-block;
  background: var(--ribbon-bg-2); color: var(--ribbon-fg);
  font-family: var(--f-ui); font-weight: 700;
  font-size: clamp(.95rem, .82rem + .7vw, 1.4rem);
  text-transform: uppercase; letter-spacing: .01em;
  padding: .5em calc(var(--arrow) + .8em) .55em .85em;
  clip-path: polygon(0 0, calc(100% - var(--arrow)) 0, 100% 50%, calc(100% - var(--arrow)) 100%, 0 100%);
  margin: 0;
}

.hero__figure{
  position: relative; margin: clamp(1.4rem, 3.5vw, 2.4rem) 0 0;
  border-radius: 14px 14px 0 0; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sky-1) 70%, #fff), var(--sky-2));
  min-height: clamp(180px, 34vw, 340px);
  display: grid; place-items: center;
}
.hero__figure img{
  display: block; width: 100%; height: auto; object-fit: cover; grid-area: 1/1;
}
.hero__ph{
  grid-area: 1/1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1rem; padding: clamp(1.4rem, 4vw, 2.6rem) 1rem;
  text-align: center;
}
.hero__ph p{
  margin: 0; color: var(--sky-ink); font-family: var(--f-ui);
  font-weight: 600; font-size: .9rem; max-width: 34ch;
}
.name-chips{ display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.name-chip{
  background: var(--surface); color: var(--accent);
  font-family: var(--f-ui); font-weight: 700; font-size: .82rem;
  padding: .3rem .8rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}

/* --- odpočet --------------------------------------------------------------- */

.countdown{
  background: var(--ribbon-bg); color: var(--ribbon-fg);
}
.countdown__in{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .5rem 1.1rem; padding-block: .85rem; text-align: center;
}
.countdown strong{
  font-family: var(--f-display); font-size: 1.5rem; line-height: 1;
  letter-spacing: .01em; font-weight: 400;
}
.countdown span{ font-family: var(--f-ui); font-weight: 600; font-size: .95rem; }

/* --- obecné karty ---------------------------------------------------------- */

.grid{ display: grid; gap: clamp(.85rem, 1.8vw, 1.25rem); }
.grid--prog{ grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.grid--cand{ grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.grid--five{ grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px){ .grid--five{ grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px){ .grid--five{ grid-template-columns: repeat(5, 1fr); } }
.grid--five .cand__job{ font-size: .84rem; }

.prog{
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.35rem 1.25rem 1.45rem;
  display: flex; flex-direction: column; gap: .8rem;
  border-top: 4px solid var(--ribbon-bg);
}
.prog__n{
  font-family: var(--f-display); font-size: 1.6rem; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.prog__ico{ color: var(--accent); }
.prog__ico svg{ display: block; width: 30px; height: 30px; }
.prog__head{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.prog p{
  margin: 0; font-family: var(--f-ui); font-weight: 600;
  font-size: 1.02rem; line-height: 1.42;
}

.reasons{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .1rem;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}
.reasons li{
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .95rem .4rem; border-bottom: 1px solid var(--border);
}
.reasons b{
  font-family: var(--f-display); font-weight: 400; font-size: 1.22rem;
  line-height: 1.15; color: var(--accent); flex: none; min-width: 1.1em;
  font-variant-numeric: tabular-nums;
}

/* --- slovo lídryně --------------------------------------------------------- */

.leader{ display: grid; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px){ .leader{ grid-template-columns: 1fr minmax(280px, 340px); } }

.leader__text p{ margin: 0 0 1rem; max-width: 62ch; }
.leader__text p:last-child{ margin-bottom: 0; }
.leader__lead{ font-size: 1.1em; }

.leader__card{
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.leader__portrait{
  aspect-ratio: 4/5; display: grid; place-items: center;
  background: linear-gradient(170deg, var(--sky-2), var(--sky-3));
}
.leader__portrait img{ width: 100%; height: 100%; object-fit: cover; grid-area: 1/1; }
.leader__portrait .initials{ grid-area: 1/1; }
.leader__meta{ padding: 1rem 1.15rem 1.2rem; }
.leader__meta strong{ display: block; font-family: var(--f-ui); font-weight: 700; font-size: 1.15rem; }
.leader__meta span{ color: var(--text-muted); font-size: .92rem; }

.initials{
  display: grid; place-content: center;
  font-family: var(--f-display); color: var(--accent);
  letter-spacing: .02em; opacity: .85;
}

/* --- kandidáti ------------------------------------------------------------- */

.filters{
  display: flex; flex-wrap: wrap; gap: .5rem .55rem; align-items: center;
  margin-bottom: 1.5rem;
}
.filter{
  font-family: var(--f-ui); font-weight: 600; font-size: .9rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: .45rem .95rem; cursor: pointer;
}
.filter:hover{ border-color: var(--accent); color: var(--accent); }
.filter[aria-pressed="true"]{
  background: var(--ribbon-bg); border-color: var(--ribbon-bg); color: var(--ribbon-fg);
}
.search{
  font-family: var(--f-body); font-size: .95rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: .5rem 1rem; min-width: 210px; flex: 1 1 210px;
  max-width: 320px;
}
.search::placeholder{ color: var(--text-muted); }

.cand{
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.cand__photo{
  position: relative; aspect-ratio: 1; display: grid;
  background: linear-gradient(165deg, var(--sky-2), var(--sky-3));
}
.cand__photo img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; grid-area: 1/1; }
.cand__photo .initials{ grid-area: 1/1; font-size: clamp(2rem, 6vw, 2.8rem); }
.cand__n{
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--ribbon-bg); color: var(--ribbon-fg);
  font-family: var(--f-display); font-size: 1.1rem; line-height: 1;
  padding: .42rem .95rem .45rem .6rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  font-variant-numeric: tabular-nums;
}
.cand__body{ padding: .85rem .95rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.cand__name{
  font-family: var(--f-ui); font-weight: 700; font-size: 1.04rem; line-height: 1.25;
}
.cand__name em{ font-style: normal; color: var(--text-muted); font-weight: 600; font-size: .82em; }
.cand__job{ font-size: .88rem; line-height: 1.45; color: var(--text-muted); margin: 0; }
.cand__foot{
  display: flex; flex-wrap: wrap; gap: .35rem; align-items: center;
  margin-top: auto; padding-top: .55rem;
}
.tag{
  font-family: var(--f-ui); font-weight: 700; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .05em;
  padding: .22rem .5rem; border-radius: 4px; border: 1px solid currentColor;
}
.tag--ods{ color: var(--chip-ods); }
.tag--nk{ color: var(--chip-nk); }
.tag--plain{ color: var(--text-muted); border-style: dashed; }

.cand--lead{ grid-column: span 2; }
.cand--lead .cand__photo{ aspect-ratio: 3/2; }
@media (min-width: 720px){
  .cand--lead{ flex-direction: row; }
  .cand--lead .cand__photo{ aspect-ratio: 1; width: 46%; flex: none; }
  .cand--lead .cand__body{ justify-content: center; padding: 1.4rem 1.5rem; }
  .cand--lead .cand__name{ font-size: 1.5rem; }
  .cand--lead .cand__job{ font-size: 1rem; }
}
@media (max-width: 519px){
  .cand--lead{ grid-column: span 1; }
}

.empty{
  padding: 2.5rem 1rem; text-align: center; color: var(--text-muted);
  font-family: var(--f-ui); font-weight: 600;
}

.note{
  margin-top: 1.75rem; font-size: .86rem; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 1rem; max-width: 70ch;
}

/* --- výzva ---------------------------------------------------------------- */

.cta{
  background: linear-gradient(140deg, var(--ribbon-bg-2), var(--badge-bg));
  color: #fff; border-radius: 14px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem;
  justify-content: space-between;
}
.cta h2{
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 2.6rem); line-height: 1.05; margin: 0;
}
.cta p{ margin: .5rem 0 0; color: #EBE3FF; max-width: 46ch; }
.cta__num{
  font-family: var(--f-display); font-size: clamp(4rem, 12vw, 7rem); line-height: .8;
  background: #fff; color: var(--accent-strong);
  padding: .1em .22em .14em; border-radius: 10px; flex: none;
}

.btn{
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-ui); font-weight: 700; font-size: .95rem;
  text-decoration: none; border-radius: 999px;
  padding: .7rem 1.35rem; border: 2px solid transparent;
}
.btn--solid{ background: var(--ribbon-bg); color: #fff; }
.btn--solid:hover{ background: var(--ribbon-bg-2); color: #fff; }
.btn--light{ background: #fff; color: #2E1470; }
.btn--light:hover{ background: #EFE9FF; color: #2E1470; }
.btn--ghost{ border-color: currentColor; color: var(--accent); }
.btn--ghost:hover{ background: var(--surface-2); color: var(--accent-strong); }
.btn-row{ display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* --- patička --------------------------------------------------------------- */

.site-foot{
  background: var(--footer-bg); color: var(--footer-fg);
  padding-block: clamp(2.2rem, 5vw, 3.4rem) calc(1.6rem + env(safe-area-inset-bottom, 0px));
}
.site-foot__grid{
  display: grid; gap: 1.8rem 2.5rem; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.site-foot h3{
  font-family: var(--f-ui); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--footer-muted);
  margin: 0 0 .7rem;
}
.site-foot ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-foot a{ color: var(--footer-fg); text-decoration: none; }
.site-foot a:hover{ color: #fff; text-decoration: underline; }
.foot-brand{ display: flex; align-items: center; gap: .8rem; }
.foot-brand strong{ font-family: var(--f-ui); font-size: 1.05rem; line-height: 1.2; }
.foot-brand span{ display: block; font-size: .85rem; color: var(--footer-muted); }
.foot-mail{ font-family: var(--f-ui); font-weight: 600; }
.social{
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-ui); font-weight: 600;
}
.social__ico{
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 50%; background: rgba(255,255,255,.12); color: var(--footer-fg);
}
.social__ico svg{ width: 19px; height: 19px; display: block; }
.social:hover .social__ico{ background: var(--badge-bg); color: #fff; }
.todo{
  display: inline-block; border: 1px dashed var(--footer-muted);
  color: var(--footer-muted); border-radius: 6px; padding: .3rem .6rem;
  font-size: .82rem; font-family: var(--f-ui); font-weight: 600;
}
.site-foot__legal{
  margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: var(--footer-muted);
}
.site-foot__legal p{ margin: 0; }

/* --- záhlaví podstránky ---------------------------------------------------- */

.page-head{
  background: linear-gradient(176deg, var(--sky-1), var(--sky-3));
  padding-block: clamp(2rem, 5vw, 3.4rem);
}
.page-head .ribbon{
  font-size: clamp(1.7rem, 1rem + 4.4vw, 3.2rem);
}
.page-head p{
  margin: 1.1rem 0 0; max-width: 58ch; color: var(--sky-ink);
  font-size: clamp(1rem, .95rem + .35vw, 1.15rem); font-weight: 500;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important; transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
