/* ANO 2026. Barevnost a typografie podle dodaného manuálu.
   Logo má vlastní oficiální barvu #29266B, zachovanou v originálním SVG. */
@font-face {
  font-family: Bungee;
  src: url("../assets/fonts/bungee-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #28337c;
  --green: #aeffae;
  --cyan: #19fff4;
  --pink: #e42b5e;
  --black: #000000;
  --white: #ffffff;
  /* Původní světle šedá plocha portrétů z dodaného letáku, RGB převod. */
  --portrait-background: #e0dde2;
  --gradient: linear-gradient(180deg, var(--green), var(--cyan));
  --line: rgb(40 51 124 / 22%);
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: Bungee, "Helvetica Neue", sans-serif;
  --text-body: 1.125rem;
  --text-small: 1rem;
  --text-meta: 0.875rem;
  --text-section: 1.625rem;
  --text-person: 1.125rem;
  --text-subheading: 1.25rem;
  --page-gutter: clamp(20px, 5vw, 84px);
  --column-gap: 48px;
  --heading-offset: calc(var(--text-meta) * 1.5 + 20px);
  --header-offset: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-section: 4rem;
  --radius-control: 2px;
  --duration-state: 160ms;
  --duration-enter: 280ms;
  --reveal-distance: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 20px);
}
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font: 400 var(--text-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
img {
  display: block;
  max-width: 100%;
}
figure,
blockquote,
p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
}
h2 {
  font-size: var(--text-section);
  line-height: 1.23;
  text-wrap: balance;
}
h3 {
  font-size: 21px;
  line-height: 1.3;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}
::selection {
  color: var(--navy);
  background: var(--green);
}
section[id] {
  scroll-margin-top: 16px;
}
.container {
  width: min(100% - var(--page-gutter) * 2, 1280px);
  margin-inline: auto;
}
.section {
  padding-block: var(--space-section);
}
.eyebrow {
  font-size: var(--text-meta);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
}
.section__head {
  position: relative;
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
  padding-top: var(--space-lg);
}
.section__head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}
.section__head.reveal-pending::before {
  transform: scaleX(0);
}
.section__head > p {
  max-width: 38ch;
}
.section__end {
  padding-top: 30px;
}
.arrow {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 1.3em;
  line-height: 1;
  transition: transform var(--duration-state) var(--ease);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 52px;
  padding: 14px 22px;
  border: 2px solid var(--navy);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-control);
  transition:
    background var(--duration-state),
    color var(--duration-state);
}
.button--primary {
  background: var(--navy);
  color: var(--white);
}
.button--primary:focus-visible {
  outline-offset: 5px;
}
.button--primary:active {
  color: var(--navy);
  background: var(--white);
}
.text-link:active {
  text-decoration-color: currentColor;
}
.text-link {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding-block: 7px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 180ms;
}
.text-link__label {
  min-width: 0;
  text-wrap: pretty;
}
.download-meta {
  display: inline-block;
  margin-inline-start: 6px;
  font-weight: 400;
  font-size: 14px;
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 100;
  transform: translateY(-180%);
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus {
  transform: none;
  outline-color: var(--pink);
}

/* Pevná, neprůhledná hlavička. Mobilní menu zůstane použitelné i bez JS. */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms;
}
.header.is-scrolled {
  border-color: var(--line);
}
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 76px;
  width: min(100% - var(--page-gutter) * 2, 1440px);
  margin-inline: auto;
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
}
.brand__logo {
  width: 116px;
  height: auto;
}
.brand__locality {
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}
.brand__locality > span {
  display: block;
  color: var(--black);
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
}
.menu-toggle {
  display: none;
  flex-shrink: 0;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 0 8px 12px;
  gap: 12px;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-size: 16px;
  font-weight: 700;
}
.menu-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 22px;
  height: 24px;
}
.menu-toggle__icon > span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon > span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon > span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
.nav {
  width: 100%;
}
.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: block;
  position: relative;
  padding-block: 14px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.nav__link::after {
  position: absolute;
  content: "";
  inset: auto auto 5px 0;
  width: 28px;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms var(--ease);
}
.nav__link[aria-current="location"]::after {
  transform: scaleX(1);
}

/* Statický kampaňový vizuál. Jen portrét má na desktopu depth do 6 px. */
.hero {
  padding: 28px clamp(12px, 2.2vw, 40px) 36px;
}
.hero__canvas {
  position: relative;
  isolation: isolate;
  background: var(--gradient);
}
.hero__copy {
  position: relative;
  z-index: 2;
  padding: 32px 24px 0;
}
.hero__eyebrow {
  font-size: 0.75rem;
  margin-bottom: 22px;
  letter-spacing: 0.045em;
}
.hero__meta-desktop {
  display: none;
}
.hero__meta-desktop > span {
  margin-inline: 8px;
}
.hero__title {
  font-size: clamp(2rem, 1rem + 5.4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.hero__slogan {
  font: 400 clamp(1.125rem, 0.8rem + 1.6vw, 1.875rem)/1.35 var(--font-display);
  margin-top: 20px;
  max-width: 620px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}
.hero__actions .text-link {
  font-size: 16px;
  line-height: 1.35;
}
.hero__link-line {
  display: block;
}
.hero__actions .button {
  min-height: 48px;
  padding: 10px 18px;
  gap: 20px;
  font-size: 1rem;
  line-height: 1.4;
}
.hero__date {
  display: none;
  margin-top: 48px;
  font-size: 19px;
  line-height: 1.45;
}
.hero__date-label {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}
.hero__portrait {
  position: relative;
  margin-top: 8px;
  padding-top: 0;
}
.hero__portrait > img {
  width: auto;
  height: 410px;
  margin-left: auto;
  object-fit: contain;
  object-position: bottom right;
}
.hero__caption {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding: 18px 20px;
  color: var(--navy);
  background: var(--white);
  font-size: var(--text-small);
  line-height: 1.4;
}
.hero__caption strong {
  flex: 0 0 auto;
  font-size: 1.375rem;
}
.hero__caption > span {
  max-width: none;
}
.hero__ballot {
  position: absolute;
  z-index: 3;
  left: 22px;
  bottom: 302px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
}
.hero__ballot .ballot-number {
  width: 94px;
  height: 94px;
  font-size: 61px;
}
.ballot-number {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 5px solid var(--pink);
  border-radius: 50%;
  color: var(--pink);
  background: var(--white);
  font: 400 49px/1 var(--font-display);
}

/* Úvod a program: střídání výrazné typografie s klidným čitelným textem. */
.intro {
  display: grid;
  gap: 24px;
  padding-block: 36px 48px;
}
.intro > .eyebrow {
  margin: 0;
}
.intro__aside {
  max-width: 38ch;
}
.intro__aside .text-link {
  margin-top: 16px;
}
.priorities {
  padding-block: clamp(40px, 4vw, 64px);
}
.priority {
  border-top: 1px solid var(--line);
}
.priority:last-child {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.priority > summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px 14px;
  padding-block: 26px;
  color: var(--navy);
}
.priority__number {
  grid-column: 1;
  grid-row: 1 / 3;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.priority h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--text-subheading);
  font-weight: 700;
}
.priority__teaser {
  grid-column: 2;
  grid-row: 2;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--black);
  margin-top: 0;
  max-width: 58ch;
}
.priority > summary > .disclosure-icon {
  grid-column: 3;
  grid-row: 1 / 3;
}
.disclosure-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  color: var(--navy);
  flex-shrink: 0;
}
.disclosure-icon::before,
.disclosure-icon::after {
  content: "";
  position: absolute;
  inset: 11px 3px auto;
  height: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease);
}
.disclosure-icon::after {
  transform: rotate(90deg);
}
details[open] > summary .disclosure-icon::after {
  transform: rotate(0);
}
.priority[open] > summary .priority__number {
  color: var(--black);
}
.priority[open] > summary {
  border-top: 3px solid var(--pink);
  padding-top: 23px;
}
.priority__content {
  padding: 0 0 32px 42px;
}
.priority__content ul {
  display: grid;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.priority__content li {
  min-width: 0;
  font-size: var(--text-body);
  line-height: 1.6;
}
.priority__content strong {
  display: block;
  margin-bottom: 7px;
  font-size: var(--text-body);
  color: var(--navy);
}
.priority__content span {
  display: block;
}

/* Kandidáti: originální výřezy, číslování, žádné výplňové siluety. */
.team {
  background: var(--white);
  color: var(--black);
  padding-top: 40px;
}
.team h2,
.team .eyebrow,
.team h3,
.team .text-link,
.team .disclosure-icon {
  color: var(--navy);
}
.team__leads,
.team__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.candidate {
  min-width: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 6px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.candidate--lead {
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 20px;
  padding-block: 28px;
}
.candidate--lead .candidate__photo img {
  aspect-ratio: 112 / 136;
  object-fit: cover;
  object-position: center top;
}
.candidate__photo {
  position: relative;
  background: var(--portrait-background);
  overflow: hidden;
  grid-row: 1 / 3;
  align-self: center;
  border-bottom: 1px solid var(--line);
}
.candidate__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 88 / 104;
  object-fit: cover;
  object-position: center top;
}
.candidate__number {
  position: absolute;
  bottom: 0;
  left: 0;
  min-width: 30px;
  padding: 4px;
  text-align: center;
  background: var(--white);
  color: var(--navy);
  font: 400 1rem/1.2 var(--font-display);
  border-top: 2px solid var(--pink);
}
.candidate h3 {
  grid-column: 2;
  align-self: end;
  font-size: var(--text-person);
  line-height: 1.35;
}
.candidate p {
  grid-column: 2;
  font-size: var(--text-small);
  line-height: 1.6;
}
.candidate .candidate__statement {
  grid-column: 1 / -1;
  margin-top: 18px;
  max-width: 58ch;
  font-size: var(--text-body);
  line-height: 1.6;
  text-align: left;
}
.candidate__degree {
  font-size: 0.85em;
}
.team__more {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 44px;
}
.team__more > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 25px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}
.team__more small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-top: 5px;
}
.team__more .when-open,
.team__more[open] .when-closed {
  display: none;
}
.team__more[open] .when-open {
  display: inline;
}
.team__expanded {
  padding-block: 16px 32px;
}
.roster {
  display: grid;
  gap: 0 48px;
  list-style-position: outside;
  padding-left: 38px;
  margin-block: 44px 28px;
}
.roster li {
  padding: 18px 0 18px 8px;
  border-bottom: 1px solid var(--line);
}
.roster li::marker {
  font-size: 16px;
  font-weight: 700;
}
.roster h3 {
  font-size: var(--text-person);
}
.roster p {
  font-size: var(--text-small);
  margin-top: 5px;
}

/* Důvěra stojí na konkrétním člověku a původním vyjádření, ne na smyšlených číslech. */
.trust {
  padding-block: var(--space-xl);
  background: var(--navy);
  color: var(--white);
}
.trust h2,
.trust .eyebrow {
  color: var(--white);
}
.trust :focus-visible {
  outline-color: var(--white);
}
.trust__inner {
  display: grid;
  gap: 32px;
}
.trust blockquote {
  max-width: 62ch;
  font-size: clamp(1.125rem, 0.9rem + 0.55vw, 1.375rem);
  line-height: 1.5;
}
.trust__author {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid rgb(255 255 255 / 35%);
  font-size: var(--text-meta);
}
.trust__author strong {
  font-size: var(--text-small);
}
.trust__author span {
  display: block;
}
.election {
  padding-block: 64px 80px;
}
.election__layout {
  display: grid;
  gap: 52px;
}
.election__intro h2 {
  font-size: clamp(2.75rem, 6.2vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.election__identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}
.election__identity strong,
.election__identity div > span {
  display: block;
}
.election__identity div > span {
  font-size: var(--text-meta);
  margin-top: 4px;
}
.election__info h3 {
  max-width: 430px;
  color: var(--navy);
  font-size: var(--text-subheading);
}
.election__hours {
  margin-block: 28px;
  border-top: 1px solid var(--line);
}
.election__hours > div {
  display: grid;
  grid-template-columns: minmax(76px, 0.6fr) minmax(max-content, 1fr);
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.election__hours dt {
  font-weight: 700;
}
.election__hours dt span {
  display: block;
  font-size: 14px;
  font-weight: 400;
}
.election__hours dd {
  align-self: center;
  color: var(--navy);
  font-size: 25px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}
.election__city {
  display: flex;
  width: fit-content;
}

.footer {
  padding-block: 0 28px;
}
.footer__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 36px;
  padding-block: 32px;
  border-top: 2px solid var(--navy);
}
.footer__brand {
  display: inline-flex;
}
.footer__organisation {
  min-width: 0;
  font-size: 16px;
}
.footer__organisation > p {
  color: var(--navy);
}
.footer__organisation > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  color: var(--navy);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  font-size: 14px;
}
.footer__bottom > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

/* Motion: desktop 12 px / 400 ms; mobil 6 px / 280 ms; stagger do 100 ms.
   Skryté stavy existují výhradně po úspěšném spuštění observeru v JS. */
.reveal-ready {
  transition:
    opacity var(--duration-enter) var(--ease) var(--reveal-delay, 0ms),
    transform var(--duration-enter) var(--ease) var(--reveal-delay, 0ms);
}
.reveal-pending {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
}
.reveal-ready:focus-within {
  opacity: 1;
  transform: none;
}
details[open] > .priority__content,
details[open] > .team__expanded {
  animation: disclosure-in 160ms var(--ease) both;
}
@keyframes disclosure-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (hover: hover) {
  .button--primary:hover {
    color: var(--navy);
    background: var(--white);
  }
  .button:hover .arrow,
  .text-link:hover .arrow {
    transform: translate(2px, -2px);
  }
  a[href^="#"]:hover .arrow,
  a[download]:hover .arrow {
    transform: translateY(3px);
  }
  a[href="#hero"]:hover .arrow {
    transform: translateY(-3px);
  }
  .text-link:hover {
    text-decoration-color: currentColor;
  }
  .nav__link:hover::after {
    transform: scaleX(1);
  }
  .priority > summary:hover h3 {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
  }
  .team__more > summary:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
  }
}

@media (max-width: 1099px) {
  .js .menu-toggle {
    display: inline-flex;
  }
  .js .header__inner {
    flex-wrap: nowrap;
  }
  .js .nav {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--page-gutter));
    right: calc(-1 * var(--page-gutter));
    width: auto;
    background: var(--white);
    padding: 18px var(--page-gutter) 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgb(40 51 124 / 5%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity 180ms var(--ease),
      transform 180ms var(--ease),
      visibility 180ms;
    max-height: calc(100dvh - var(--header-offset));
    overflow-y: auto;
  }
  .js .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-duration: 240ms;
  }
  .js .nav__list {
    display: grid;
    gap: 0;
  }
  .js .nav__link {
    padding-block: 16px;
    font-size: 20px;
    border-bottom: 1px solid var(--line);
  }
  .js .nav__link::after {
    bottom: -1px;
    width: 44px;
  }
}
@media (max-width: 399px) {
  .brand {
    gap: 12px;
  }
  .brand__logo {
    width: 92px;
  }
  .brand__locality {
    font-size: 17px;
  }
  .brand__locality > span {
    font-size: 12px;
  }
  .menu-toggle {
    gap: 8px;
    font-size: 14px;
  }
  .hero__copy {
    padding-inline: 18px;
  }
  .hero__caption {
    padding-inline: 18px;
  }
  .hero__portrait > img {
    height: 365px;
  }
  .hero__ballot {
    bottom: 292px;
    left: 16px;
  }
  .ballot-number {
    width: 64px;
    height: 64px;
    font-size: 42px;
    border-width: 4px;
  }
  .hero__ballot .ballot-number {
    width: 80px;
    height: 80px;
    font-size: 52px;
  }
  .text-link {
    gap: 8px;
  }
}
@media (max-width: 349px) {
  .brand__logo {
    width: 84px;
  }
  .brand__locality {
    font-size: 16px;
    white-space: nowrap;
  }
  .brand__locality > span {
    display: none;
  }
}
@media (min-width: 560px) {
  .hero__portrait > img {
    height: 440px;
  }
}
@media (min-width: 700px) {
  :root {
    --space-section: 6rem;
    --duration-enter: 400ms;
    --reveal-distance: 12px;
    --text-section: clamp(1.625rem, 2.5vw, 2.25rem);
    --text-person: 1.375rem;
    --text-subheading: 1.375rem;
  }
  .hero__meta-mobile {
    display: none;
  }
  .hero__meta-desktop {
    display: inline;
  }
  .hero__canvas {
    min-height: 590px;
  }
  .hero__copy {
    width: 66%;
    padding: 40px 30px 52px;
  }
  .hero__title {
    font-size: clamp(2.1875rem, 1rem + 3.3vw, 3.5rem);
  }
  .hero__slogan {
    font-size: clamp(1.1875rem, 0.6rem + 1.75vw, 1.8125rem);
    max-width: 370px;
  }
  .hero__actions {
    max-width: 300px;
    margin-top: 36px;
  }
  .hero__date {
    display: block;
    margin-top: 34px;
  }
  .hero__portrait {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    width: 48%;
    height: 83%;
    margin: 0;
    padding: 0;
  }
  .hero__portrait > img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    height: 100%;
    max-width: none;
  }
  .hero__caption {
    position: absolute;
    z-index: 3;
    bottom: 20px;
    left: 0;
    right: 20px;
    margin: 0;
    width: fit-content;
    max-width: calc(100% - 20px);
    padding: 14px 20px;
  }
  .hero__ballot {
    right: 24px;
    left: auto;
    top: 25px;
    bottom: auto;
  }
  .intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px var(--column-gap);
    padding-block: 64px 48px;
  }
  .intro > .eyebrow {
    grid-column: 1 / -1;
  }
  .intro__aside {
    align-self: start;
  }
  .section__head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--column-gap);
    align-items: start;
    margin-bottom: 52px;
  }
  .section__head > p {
    justify-self: start;
    padding-top: var(--heading-offset);
  }
  .priority > summary {
    grid-template-columns: 58px minmax(0, 1fr) 32px;
    gap: 8px 22px;
    padding-block: 32px;
  }
  .priority[open] > summary {
    padding-top: 29px;
  }
  .priority__content {
    padding: 0 0 40px;
  }
  .priority__content ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px var(--column-gap);
  }
  .priority__content li:nth-child(odd) {
    padding-left: 80px;
    max-width: none;
  }
  .team__leads {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 56px 32px;
  }
  .candidate {
    display: block;
    padding: 0;
    border-bottom: 0;
  }
  .candidate__photo {
    background: transparent;
  }
  .candidate__photo img,
  .candidate--lead .candidate__photo img {
    width: auto;
    height: clamp(220px, 24vw, 330px);
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center bottom;
    margin-inline: auto;
    background: var(--portrait-background);
  }
  .candidate__number {
    min-width: 40px;
    padding: 7px;
    font-size: 1.25rem;
  }
  .candidate h3 {
    margin: 16px 0 8px;
    align-self: auto;
  }
  .team__leads > .candidate {
    grid-column: span 2;
  }
  .team__leads > .candidate:nth-child(-n + 2) {
    grid-column: span 3;
  }
  .team__leads > .candidate:nth-child(-n + 2) .candidate__photo img {
    height: clamp(300px, 34vw, 440px);
  }
  .team__leads > .candidate:nth-child(n + 3) h3 {
    min-height: 2.7em;
  }
  .team__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
  }
  .trust {
    padding-block: 4rem;
  }
  .candidate.reveal-ready {
    --duration-enter: 360ms;
  }
  .team__more {
    margin-top: 56px;
  }
  .team__more > summary {
    padding-block: 30px;
  }
  .team__more small {
    display: inline;
    margin-left: 28px;
  }
  .roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 60px;
  }
  .trust__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--column-gap);
  }
  .trust__label {
    padding-top: 0;
  }
  .trust__copy {
    padding-top: var(--heading-offset);
  }
  .election__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--column-gap);
  }
  .election__info {
    padding-top: 0;
    padding-left: 0;
  }
  .election {
    padding-block: 104px 112px;
  }
  .footer__back {
    margin-left: auto;
  }
}
@media (min-width: 1100px) {
  :root {
    --header-offset: 92px;
    --text-section: 2.25rem;
  }
  .header__inner {
    min-height: 92px;
    flex-wrap: nowrap;
  }
  .brand__logo {
    width: 141px;
  }
  .brand {
    gap: 32px;
  }
  .brand__locality {
    padding-left: 30px;
    border-left: 1px solid var(--line);
    font-size: 20px;
  }
  .brand__locality > span {
    font-size: 12px;
  }
  .nav {
    width: auto;
  }
  .nav__list {
    gap: 42px;
  }
  .hero__canvas {
    min-height: clamp(640px, 49vw, 740px);
  }
  .hero__copy {
    width: 68%;
    padding: clamp(48px, 4.5vw, 72px) 24px clamp(48px, 4.5vw, 72px) clamp(96px, 9vw, 168px);
  }
  .hero__eyebrow {
    font-size: 13px;
    margin-bottom: 34px;
  }
  .hero__title {
    font-size: clamp(4.125rem, 1.1rem + 4.8vw, 6.25rem);
  }
  .hero__slogan {
    font-size: clamp(1.625rem, 0.55rem + 1.95vw, 2.4375rem);
    max-width: 680px;
    margin-top: 28px;
  }
  .hero__actions {
    max-width: none;
    margin-top: 36px;
    gap: 20px 28px;
  }
  .hero__date {
    margin-top: 44px;
  }
  .hero__portrait {
    right: 3.5%;
    width: 44%;
    height: 103%;
    clip-path: inset(-60px -40px 0 -40px);
  }
  .hero__portrait > img {
    right: 0;
    bottom: -6px;
    height: calc(100% + 6px);
    transform: translateY(var(--hero-depth, 0px));
  }
  .hero__caption {
    bottom: 22px;
    right: 0;
    left: auto;
    padding: 12px 22px;
    max-width: 100%;
    font-size: 1.125rem;
  }
  .hero__caption strong {
    font-size: 1.5rem;
  }
  .hero__ballot {
    right: 22px;
    top: 30px;
  }
  .hero__ballot .ballot-number {
    width: 110px;
    height: 110px;
    font-size: 72px;
  }
  .priority > summary {
    grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr) 32px;
    column-gap: 22px;
    align-items: start;
    padding-block: 34px;
  }
  .priority[open] > summary {
    padding-top: 31px;
  }
  .priority__number,
  .priority > summary > .disclosure-icon {
    grid-row: 1;
    margin-top: 5px;
  }
  .priority__teaser {
    grid-column: 3;
    grid-row: 1;
    max-width: 42ch;
  }
  .priority > summary > .disclosure-icon {
    grid-column: 4;
  }
  .team__leads {
    gap: 64px 48px;
  }
  .team__grid {
    gap: 48px;
  }
}
@media (min-width: 1600px) {
  .hero {
    max-width: 1900px;
    margin-inline: auto;
  }
}
@media (max-width: 699px) {
  /* Centrovat jen titulky. Obsahové bloky dědí původní levé zarovnání. */
  .hero__eyebrow,
  .hero__title,
  .hero__slogan,
  .mobile-title,
  .mobile-statement {
    text-align: center;
  }
  .hero__slogan {
    margin-inline: auto;
    max-width: 24ch;
  }
  .hero__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
  }
  .hero__actions .button {
    min-height: 44px;
    padding: 8px clamp(8px, 2.5vw, 12px);
    gap: clamp(6px, 2vw, 12px);
    font-size: clamp(0.9375rem, 4.2vw, 1rem);
    white-space: nowrap;
  }
  .hero__actions .text-link {
    gap: 8px;
    text-align: left;
    flex-wrap: nowrap;
  }
  .hero__actions .text-link > span:first-child {
    flex-shrink: 0;
  }
  .hero__eyebrow {
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: 0;
  }
  .hero__date-range {
    display: block;
    white-space: normal;
    margin-top: 4px;
  }
  .download-meta {
    display: block;
    margin-inline-start: 0;
    margin-top: 2px;
  }
  .section__head > p {
    max-width: 38ch;
    margin-inline: auto;
    text-align: center;
  }
  .intro__aside {
    margin-inline: auto;
    text-align: center;
  }
  .intro__aside .text-link {
    justify-content: center;
  }
  .trust blockquote {
    text-align: center;
    text-wrap: balance;
  }
  .trust__author {
    justify-content: center;
    text-align: center;
  }
  .hero__caption {
    align-items: center;
    text-align: center;
  }
  .election__identity {
    justify-content: center;
  }
  .priority__content {
    padding-left: 0;
  }
  .section__end {
    display: flex;
    justify-content: center;
  }
  .mobile-statement {
    max-width: 24ch;
    margin-inline: auto;
  }
  .reveal-ready {
    --reveal-delay: 0ms !important;
  }
  .candidate.reveal-ready {
    --duration-enter: 240ms;
  }
  details[open] > .priority__content,
  details[open] > .team__expanded {
    animation-duration: 140ms;
  }
  .section__head::before {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
  .hero__portrait > img {
    transform: none !important;
  }
}
@media print {
  html {
    scroll-padding: 0;
  }
  body {
    font-size: 11pt;
  }
  .header {
    position: static;
  }
  .nav,
  .menu-toggle,
  .skip-link,
  .hero__actions,
  .footer__back {
    display: none !important;
  }
  .container {
    width: 100%;
  }
  .section,
  .intro {
    padding: 24px 0;
  }
  .hero {
    padding: 0;
  }
  .hero__canvas {
    min-height: 420px;
  }
  .hero__copy {
    width: 68%;
    padding: 25px;
  }
  .hero__title {
    font-size: 40px;
  }
  .hero__slogan {
    font-size: 22px;
  }
  .hero__portrait {
    position: absolute;
    inset: 0 0 0 auto;
    width: 40%;
    height: 100%;
    margin: 0;
  }
  .hero__portrait > img {
    height: 100%;
  }
  .hero__caption,
  .hero__ballot {
    display: none;
  }
  .team {
    background: white;
    color: black;
  }
  .team h2,
  .team h3,
  .team .eyebrow,
  .team .text-link {
    color: black;
  }
  .team__leads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .candidate,
  .team__leads > .candidate,
  .team__leads > .candidate:nth-child(-n + 2) {
    display: block;
    grid-column: auto;
    grid-row: auto;
  }
  .candidate--lead .candidate__photo img,
  .team__leads > .candidate:nth-child(-n + 2) .candidate__photo img {
    height: 160px;
    object-fit: contain;
  }
  .trust {
    color: black;
    background: white;
  }
  .trust h2,
  .trust .eyebrow {
    color: black;
  }
  .hero__portrait > img {
    transform: none !important;
  }
  .team__more,
  .roster li {
    border-color: black;
  }
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
  .candidate,
  .priority,
  .election__hours {
    break-inside: avoid;
  }
}
