:root {
  --navy: #0d2b45;
  --navy-deep: #061c31;
  --navy-soft: #183f5e;
  --green: #2e7d32;
  --sage: #d9e7d1;
  --sage-deep: #9fb88d;
  --sky: #dbe9f2;
  --paper: #f7f8f5;
  --white: #ffffff;
  --ink: #17232e;
  --muted: #586775;
  --line: rgba(13, 43, 69, 0.16);
  --amber: #c98732;
  --coral: #b35242;
  --shadow: 0 24px 70px rgba(6, 28, 49, 0.14);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 40px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
summary {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-180%);
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 245, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: var(--container);
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 9px 22px rgba(13, 43, 69, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--sage);
  color: var(--navy-deep);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(6, 28, 49, 0.9), rgba(6, 28, 49, 0.48) 55%, rgba(6, 28, 49, 0.1)),
    url("hostenice-watercolor.webp") center / cover no-repeat;
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(6, 28, 49, 0.05), rgba(6, 28, 49, 0.18)),
    radial-gradient(circle at 18% 18%, rgba(217, 231, 209, 0.22), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(219, 233, 242, 0.18), transparent 28%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 44px;
  padding-block: 92px 72px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow,
.closing .eyebrow {
  color: var(--sage);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
}

.hero-ticket {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-slogan {
  max-width: 760px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4.6vw, 4.7rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2.6rem, 5vw, 4.9rem);
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

h4 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.46;
}

.hero-actions,
.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--sage);
  color: var(--navy);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #eff7eb;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.vote-card,
.closing-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.vote-card {
  padding: 24px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.vote-card p,
.closing-card p {
  margin-bottom: 7px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--coral);
}

.vote-card strong,
.closing-card strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--navy);
}

.vote-card span,
.closing-card span {
  display: block;
  color: var(--navy-soft);
  font-weight: 700;
  line-height: 1.35;
}

.section {
  padding-block: 92px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-team {
  background:
    linear-gradient(180deg, var(--paper), #ffffff 36%),
    url("fade-soft.webp") top right / 58vw auto no-repeat;
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.candidate-card {
  grid-column: span 3;
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(13, 43, 69, 0.08);
}

.candidate-card:nth-child(n + 5) {
  grid-column: span 2;
}

.candidate-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  background: var(--sky);
}

.candidate-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.candidate-number,
.vision-number {
  color: var(--coral);
  font-weight: 800;
}

.candidate-number {
  margin-bottom: 4px;
}

.candidate-role {
  min-height: 2lh;
  margin-bottom: 14px;
  color: var(--green);
  font-weight: 800;
  line-height: 1.3;
}

.candidate-body > p:not(.candidate-number):not(.candidate-role) {
  color: var(--muted);
}

details {
  margin-top: auto;
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.candidate-card summary,
.vision-card summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 16px;
  padding: 11px 48px 11px 14px;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 800;
}

.candidate-card summary::after,
.vision-card summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-size: 1.1rem;
  line-height: 1;
}

details[open] > summary::after {
  content: "−";
}

.candidate-detail {
  padding: 18px 2px 4px;
  color: var(--muted);
}

.candidate-detail p {
  margin-bottom: 16px;
}

.pending-copy {
  color: #7a6570;
  font-style: italic;
}

.section-vision {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef4ea 100%);
  position: relative;
  overflow: hidden;
}

.section-vision::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("fade-warm.webp") bottom left / 54vw auto no-repeat;
  opacity: 0.48;
}

.section-vision .container {
  position: relative;
}

.principles-grid,
.vision-grid {
  display: grid;
  gap: 18px;
}

.principles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.principles-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(13, 43, 69, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.principles-grid span {
  display: block;
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.9;
  color: var(--coral);
}

.principles-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.vision-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vision-card {
  min-width: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(13, 43, 69, 0.08);
}

.vision-card summary {
  min-height: 112px;
  margin: 0;
  padding: 24px 62px 24px 22px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.vision-card summary strong,
.vision-card summary em {
  display: block;
}

.vision-card summary strong {
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.12;
}

.vision-card summary em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.32;
}

.vision-number {
  flex: 0 0 auto;
  font-size: 1rem;
}

.vision-content {
  padding: 0 24px 24px;
  color: var(--muted);
}

.vision-content blockquote {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: #f1f7ee;
  color: var(--navy);
  font-weight: 800;
}

.vision-content ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.vision-content li {
  margin-bottom: 8px;
}

.vision-content strong {
  color: var(--navy);
}

.vision-kicker {
  color: var(--coral);
  font-weight: 800;
}

.section-calculator {
  background:
    linear-gradient(180deg, #f8faf8, #ffffff),
    url("hostenice-watercolor-alt.webp") center / cover no-repeat;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  align-items: start;
  gap: 34px;
}

.calculator-intro {
  position: sticky;
  top: 100px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(13, 43, 69, 0.08);
}

.calculator-intro p:not(.eyebrow) {
  color: var(--muted);
}

.calculator-shell {
  min-width: 0;
}

.progress-card,
.question-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(13, 43, 69, 0.08);
}

.progress-card {
  position: sticky;
  top: 86px;
  z-index: 4;
  margin-bottom: 16px;
  padding: 16px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--navy);
  font-weight: 800;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebdf;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--sage-deep));
  transition: width 260ms ease;
}

.question-list {
  display: grid;
  gap: 16px;
}

.question-card {
  padding: 20px;
}

.question-card h3 {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 16px;
  font-size: 1.24rem;
}

.question-index {
  color: var(--coral);
  font-weight: 800;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-option {
  width: 100%;
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.answer-option:hover,
.answer-option:focus-visible {
  border-color: rgba(46, 125, 50, 0.5);
  box-shadow: 0 12px 26px rgba(13, 43, 69, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.answer-option.is-selected {
  border-color: var(--green);
  background: #eef7eb;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.13);
}

.answer-option.is-selected[data-choice="B"] {
  border-color: rgba(201, 135, 50, 0.5);
  background: #fbf5ec;
  box-shadow: 0 0 0 3px rgba(201, 135, 50, 0.12);
}

.answer-label {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}

.answer-option[data-choice="B"] .answer-label {
  background: var(--amber);
}


.answer-head {
  min-height: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.answer-note {
  min-width: 0;
  color: #7f8a93;
  font-size: 0.94rem;
  line-height: 1.25;
}

.answer-note-a {
  font-weight: 800;
}

.answer-note-b {
  font-style: italic;
  font-weight: 400;
}

.answer-text {
  display: block;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.36;
}

.calculator-actions {
  margin-block: 18px;
}

.calculator-actions .button-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.calculator-actions .button-secondary:hover,
.calculator-actions .button-secondary:focus-visible {
  background: var(--paper);
}

.result-card {
  padding: 22px;
}

.result-card h3 {
  margin-bottom: 10px;
}

.result-card p {
  color: var(--muted);
}

.result-card .result-highlight {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--sage);
  font-weight: 800;
}

.result-card.is-match {
  border-color: rgba(46, 125, 50, 0.36);
}

.result-card.is-middle {
  border-color: rgba(13, 43, 69, 0.32);
}

.result-card.is-different {
  border-color: rgba(201, 135, 50, 0.48);
}

.result-score {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.score-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.92rem;
}

.closing {
  padding-block: 84px;
  background: var(--navy);
  color: var(--white);
}

.closing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 34px;
}

.closing h2 {
  color: var(--white);
  max-width: 760px;
}

.closing-card {
  padding: 24px;
  background: var(--white);
  color: var(--navy);
}

.closing-card .button {
  width: 100%;
  margin-top: 18px;
}

.site-footer {
  padding-block: 24px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-layout p {
  margin-bottom: 0;
}

.footer-layout p:first-child {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-layout,
  .calculator-layout,
  .closing-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    align-items: center;
  }

  .vote-card,
  .closing-card {
    max-width: 430px;
  }

  .calculator-intro {
    position: static;
  }

  .candidates-grid,
  .vision-grid,
  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-card,
  .candidate-card:nth-child(n + 5) {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 28px, 1120px);
  }

  body {
    font-size: 16px;
  }

  .site-header {
    background: rgba(247, 248, 245, 0.96);
  }

  .nav-shell {
    min-height: 64px;
  }

  .nav-toggle {
    position: relative;
    display: grid;
    place-items: center;
  }

  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    width: 18px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 2px;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    position: absolute;
  }

  .nav-toggle::before {
    transform: translateY(-6px);
  }

  .nav-toggle::after {
    transform: translateY(6px);
  }

  .nav-open .nav-toggle span {
    opacity: 0;
  }

  .nav-open .nav-toggle::before {
    transform: rotate(45deg);
  }

  .nav-open .nav-toggle::after {
    transform: rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    inset: 64px 0 auto;
    display: grid;
    gap: 0;
    padding: 10px 14px 18px;
    background: rgba(247, 248, 245, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(6, 28, 49, 0.12);
    transform: translateY(-130%);
    transition: transform 220ms ease;
  }

  .nav-open .nav-links {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 16px;
    border-radius: var(--radius);
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(6, 28, 49, 0.9), rgba(6, 28, 49, 0.58)),
      url("hostenice-watercolor.webp") center / cover no-repeat;
  }

  .hero-layout {
    padding-block: 72px 48px;
  }

  h1 {
    font-size: 3.6rem;
  }

  .hero-ticket {
    font-size: 1.22rem;
  }

  .hero-slogan {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .section {
    padding-block: 64px;
  }

  .candidates-grid,
  .vision-grid,
  .principles-grid,
  .answer-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid span {
    font-size: 2.4rem;
  }

  .vision-card summary {
    min-height: 96px;
  }

  .progress-card {
    position: static;
  }

  .answer-option {
    min-height: 0;
  }

  .footer-layout {
    display: grid;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    max-width: 132px;
    line-height: 1.05;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-slogan {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; box-shadow: none; }
.button:disabled:hover,
.button:disabled:focus-visible { transform: none; }
