/* ==========================================================================
   Lednické sdružení demokratů — volby 2026
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonty (self-hosted, podmnožina latin + latin-ext)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/baloo2-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/baloo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/caveat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/caveat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/worksans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/worksans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Proměnné a základ
   -------------------------------------------------------------------------- */
:root {
  --green: #5B8B53;
  --green-head: #5B8A53;
  /* --sage: #c1debc;*/
  --sage: #a9bca6;
  --cream: #FBFAF7;
  --ink: #111111;
  /*--amber: #e7ac36;*/
  --amber: #ddb957;
  --olive: #5E7359;
  --forest: #3F4B3C;
  --green-pale: #EDF3EB;
  --green-muted: #C7D4C4;
  --green-dim: #9AAE97;
  --grey: #6C6A64;

  --font-head: 'Baloo 2', system-ui, cursive;
  --font-hand: 'Caveat', cursive;
  --font-body: 'Work Sans', system-ui, sans-serif;

  --wrap: 1200px;
  --pad-x: 28px;

  /* ručně kreslené "blob" rámečky */
  --blob-a: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --blob-b: 15px 225px 15px 255px / 225px 15px 255px 15px;
  --blob-c: 225px 15px 255px 15px / 15px 255px 15px 225px;
  --blob-d: 15px 255px 15px 225px / 255px 15px 225px 15px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
}

img { max-width: 100%; }

a {
  color: var(--olive);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

.page { max-width: 100%; overflow-x: hidden; }

/* --------------------------------------------------------------------------
   Postupné odkrývání při scrollu
   Skrývá se JEN když běží JavaScript (třída .js na <html>) — bez něj a pro
   roboty, kteří JS nespouštějí, je obsah normálně v dokumentu i viditelný.
   Při zapnutém "omezit pohyb" v systému se nic neanimuje.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* nadpisy, které byly dřív <div> — zachovat vzhled */
h3.record__title,
h3.step__title,
h3.hours__title,
h4.priority__name,
h4.candidate__name {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--pad-x);
}

.section { border-top: 3px solid var(--ink); }
.section--sage { background: var(--sage); }

.section-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.section--sage .section-title { color: var(--ink); }

.section-lead {
  margin: 0 0 44px;
  font-size: 18px;
  line-height: 1.6;
  max-width: 56ch;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   3. Navigace
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  color: var(--cream);
}

.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.nav__logo {
  display: block;
  line-height: 0;
}
.nav__logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
}
.nav__links a {
  color: var(--cream);
  text-decoration: none;
}
.nav__links a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.nav__toggle {
  display: none;
  background: none;
  border: 2px solid var(--cream);
  border-radius: 6px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--green);
  color: var(--cream);
}

.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--pad-x) 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero__badge {
  align-self: flex-start;
  border: 3px solid var(--cream);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.hero__perex {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  max-width: 30em;
  text-wrap: pretty;
  color: var(--green-pale);
}

.hero__facts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: stretch;
}

.fact {
  border: 4px solid var(--ink);
  background: #FFFFFF;
  color: var(--ink);
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.fact--number { border-radius: var(--blob-a); }
.fact--date {
  border-radius: var(--blob-b);
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 4px;
}

.fact__big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 62px;
  line-height: 0.85;
  color: var(--amber);
}
.fact__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  max-width: 10em;
}
.fact__date {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
}
.fact__year {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__art { display: grid; place-items: center; }
.hero__art img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  animation: lsd-float 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes lsd-float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-14px) rotate(0.6deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__art img { animation: none; }
}

/* --------------------------------------------------------------------------
   5. Dopis voličům
   -------------------------------------------------------------------------- */
.letter { background: var(--sage); }
.letter .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px;
}

.letter__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--green-head);
}

.letter__hand {
  margin-top: 22px;
  font-family: var(--font-hand);
  font-size: 26px;
  line-height: 1.3;
  color: var(--forest);
}

.letter__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  line-height: 1.65;
  max-width: 62ch;
  text-wrap: pretty;
}
.letter__body p { margin: 0; }
.letter__body p.is-strong { font-weight: 600; }

.letter__sign {
  margin-top: 6px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   6. Fotopás
   -------------------------------------------------------------------------- */
.photoband {
  position: relative;
  background: var(--sage);
}
.photoband__img {
  width: 100%;
  /* height:auto musí být — jinak atribut height="1200" v HTML přebije
     aspect-ratio a z pásu se stane vysoký ořez. */
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}
.photoband__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 0 var(--pad-x);
}
.photoband__caption > div {
  max-width: var(--wrap);
  width: 100%;
  display: flex;
}
.photoband__box {
  background: var(--green);
  color: var(--cream);
  padding: 18px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 30em;
}
.photoband__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
}
.photoband__sub {
  font-family: var(--font-hand);
  font-size: 24px;
  line-height: 1.2;
  color: var(--green-muted);
}

/* --------------------------------------------------------------------------
   6a. Akce, za kterými stojíme
   Zatím jen přehled. Styly odložených podstránek a prokliků z karet jsou
   v podklady/akce-odlozene/styly-podstranek.css.
   -------------------------------------------------------------------------- */
.events-title { margin-bottom: 8px; }

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 24px;
}

.event {
  background: #FFFFFF;
  border: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.event__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}
.event__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.event__name {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
}
.event__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
.events-more {
  margin: 36px 0 0;
  font-family: var(--font-hand);
  font-size: 28px;
  line-height: 1.3;
  color: var(--forest);
}
.events-more a { color: var(--forest); }

/* --------------------------------------------------------------------------
   6b. Transparentní účet
   -------------------------------------------------------------------------- */
.account .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}
.account__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 18px;
  line-height: 1.6;
  max-width: 56ch;
}
.account__text p { margin: 0; }
.account__hand {
  font-family: var(--font-hand);
  font-size: 28px;
  line-height: 1.25;
  color: var(--forest);
}

.account-card {
  background: #FFFFFF;
  border: 4px solid var(--ink);
  border-radius: var(--blob-b);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account-card__label {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}
.account-card__number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1;
  white-space: nowrap;
}
.account-card__bank {
  font-size: 15px;
  line-height: 1.45;
  color: var(--forest);
}
.account-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn--primary,
.btn--primary:hover { background: var(--green); color: var(--cream); }
.btn--amber,
.btn--amber:hover { background: var(--amber); color: var(--ink); }
.btn--big { padding: 13px 24px; font-size: 17px; }
/* tlačítko pro kopírování ukáže až JS, a jen kde prohlížeč umí schránku */
.btn[hidden] { display: none; }

/* --------------------------------------------------------------------------
   7. Priority
   -------------------------------------------------------------------------- */

.priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

.priority {
  border: 3px solid var(--ink);
  background: #FFFFFF;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
}
.priority:nth-child(6n+1) { border-radius: var(--blob-a); }
.priority:nth-child(6n+2) { border-radius: var(--blob-b); }
.priority:nth-child(6n+3) { border-radius: var(--blob-c); }
.priority:nth-child(6n+4) { border-radius: var(--blob-d); }
.priority:nth-child(6n+5) { border-radius: var(--blob-a); }
.priority:nth-child(6n+0) { border-radius: var(--blob-b); }

.priority__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  color: var(--amber);
  line-height: 1;
}
.priority__icon {
  width: 132px;
  height: 132px;
  display: block;
  mix-blend-mode: multiply;
}
.priority__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
}

/* --------------------------------------------------------------------------
   8. Program
   -------------------------------------------------------------------------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 32px;
}

.program {
  background: #FFFFFF;
  border: 3px solid var(--ink);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.program h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
}
.program ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   9. Čtyři roky na radnici
   -------------------------------------------------------------------------- */
.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 24px;
}
.record {
  border-top: 4px solid var(--ink);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.record__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}
.record__text {
  font-size: 16px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   10. Volby do zastupitelstva 2026 a kandidáti
   Ostatní kandidáti, priority a program jsou v <details>: bez JS se dají
   rozbalit taky a obsah je v HTML pro vyhledávače.
   -------------------------------------------------------------------------- */
.elections { background: var(--green); }
.elections .section-title { color: #FFFFFF; }

.elections__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 32px 56px;
  align-items: center;
  margin-bottom: 64px;
}
.elections__head .section-lead { margin: 16px 0 0; }

.elections__subtitle {
  margin: 0 0 28px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  color: #FFFFFF;
}

/* Tlačítko „Zobrazit všechny kandidáty“, text se mění podle stavu */
.more-candidates > summary {
  list-style: none;
  display: flex;
  width: fit-content;
  margin: 32px auto 0;
}
.more-candidates > summary::-webkit-details-marker { display: none; }
.more-candidates > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin: -4px 2px 0 12px;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.more-candidates[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.more-candidates[open] .more-candidates__show,
.more-candidates:not([open]) .more-candidates__hide { display: none; }
.more-candidates > .candidate-grid { margin-top: 32px; }

/* Rozbalovací panely s prioritami a programem */
.panel {
  background: var(--cream);
  border: 3px solid var(--ink);
  margin-top: 24px;
}
.more-candidates + .panel { margin-top: 64px; }

.panel__summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 20px;
}
.panel__summary::-webkit-details-marker { display: none; }
/* kolečko s plusem, po rozbalení s mínusem */
.panel__summary::after {
  content: '';
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 16px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 3px 16px no-repeat;
}
.panel[open] > .panel__summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 16px 3px no-repeat;
}
.panel__summary:hover .panel__title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }

.panel__title {
  margin: 0;
  grid-column: 1;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
}
.panel__hint {
  grid-column: 1;
  font-size: 16px;
  color: var(--olive);
}
.panel__body { padding: 8px 28px 32px; }
.panel__lead {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.6;
  max-width: 56ch;
}
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 24px;
}

.candidate {
  background: #FFFFFF;
  border: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.candidate__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}
.candidate__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.candidate__placeholder {
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(135deg, #9CB199 0 8px, #A9BCA6 8px 16px);
  display: grid;
  place-items: center;
}
.candidate__placeholder span {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #2E3A2B;
  text-align: center;
  padding: 8px;
}

/* Pořadové číslo v ledničce — kresba z kampaňové grafiky (leták).
   Číslo se sází písmem do dolních dveří; poloha a velikost dveří jsou
   změřené v obrázku: střed 53.6 % / 69.5 %, dveře 39.8 % x 46.5 %.
   U fotek akcí je stejná lednička jako značka, jen bez čísla. */
.candidate__order,
.event__fridge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 68px;
  aspect-ratio: 300 / 319;
  background: url('../assets/img/lednicka-cislo.webp') center / contain no-repeat;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.candidate__order span {
  position: absolute;
  left: 53.6%;
  top: 69.5%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}

/* Štítek „mandát“ u zvolených zastupitelů. Sedí v rohu naproti ledničce,
   aby se s pořadovým číslem nepletl; nakřivo jako razítko. */
.candidate__mandate {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 4px 12px;
  background: var(--amber);
  border: 3px solid var(--ink);
  border-radius: 14px 5px 12px 6px / 6px 12px 5px 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(3deg);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
/* fajfka */
.candidate__mandate::before {
  content: '';
  width: 5px;
  height: 10px;
  margin-top: -3px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.candidate__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.candidate__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.15;
  text-wrap: pretty;
}
.candidate__role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
}

.candidate__meta {
  font-size: 15px;
  line-height: 1.45;
  color: var(--forest);
}

/* --------------------------------------------------------------------------
   11. Jak volit
   -------------------------------------------------------------------------- */
.vote .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px;
  align-items: start;
}

.vote__title { margin-bottom: 32px; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}
.step__num {
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
}
.step__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}
.step__text {
  font-size: 17px;
  line-height: 1.6;
  margin-top: 6px;
}

.hours {
  border: 4px solid var(--ink);
  border-radius: var(--blob-a);
  background: #FFFFFF;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hours__title {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--olive);
}
.hours__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.hours__row--divider {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}
.hours__day {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
}
.hours__time {
  font-size: 18px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. Patička
   -------------------------------------------------------------------------- */
.footer {
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}
.footer a:hover {
  color: var(--green);
}
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--pad-x) 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px;
}
.footer__claim-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer__claim {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.footer__hand {
  font-family: var(--font-hand);
  font-size: 28px;
  line-height: 1.25;
  max-width: 22em;
  color: var(--green-muted);
}
.footer__mark {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.footer__hashtag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.footer__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__label {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dim);
}
.footer__mail,
.footer__account {
  color: var(--cream);
  font-size: 20px;
  font-weight: 600;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer__links a {
  color: var(--cream);
  font-size: 18px;
}
.footer__legal {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px var(--pad-x) 40px;
  font-size: 14px;
  color: var(--green-dim);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid #3A3A3A;
}

/* --------------------------------------------------------------------------
   13. Responzivita
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  :root { --pad-x: 20px; }

  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 8px;
    font-size: 17px;
  }
  .nav__links.is-open { display: flex; }

  .wrap { padding: 56px var(--pad-x); }
  .hero__inner { padding: 56px var(--pad-x) 64px; }
  .hero__inner,
  .letter .wrap,
  .vote .wrap { gap: 40px; }

  .section-title,
  .letter__title { font-size: 34px; }
  .footer__claim { font-size: 32px; }

  /* Na úzkých displejích se fotka celá zmenší místo ořezávání —
     zobrazí se v původním poměru stran 3:2. */
  .photoband__img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }
  /* Popisek zůstává na fotce (jen menší a odsazený od kraje) — pod fotkou
     by nevypadal, že k ní patří. */
  .photoband__caption { padding: 0 14px 14px; }
  .photoband__box { padding: 11px 15px 12px; }
  .photoband__title { font-size: 19px; }
  .photoband__sub { font-size: 17px; }

  .events-more { font-size: 24px; }
  .account .wrap { gap: 40px; }
  .account-card { padding: 24px; }

  .elections__head { margin-bottom: 48px; }
  .elections__subtitle { font-size: 28px; }
  .panel__summary { padding: 18px 18px; }
  .panel__title { font-size: 24px; }
  .panel__summary::after { width: 34px; height: 34px; }
  .panel__body { padding: 4px 14px 20px; }
  .program { padding: 22px; }
}

@media (max-width: 480px) {
  .hero__facts { flex-direction: column; }
  .fact--number,
  .fact--date { width: 100%; }
  .priority__icon { width: 104px; height: 104px; }
  .candidate__order,
  .event__fridge { width: 58px; }
  .candidate__order span { font-size: 19px; }
  .candidate__mandate { font-size: 15px; }

  .photoband__caption { padding: 0 10px 10px; }
  .photoband__box { padding: 9px 12px 10px; }
  .photoband__title { font-size: 17px; }
  .photoband__sub { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   14. Tisk
   -------------------------------------------------------------------------- */
@media print {
  .nav { display: none !important; }
  body { background: #FFFFFF; }
}
