/* =====================================================
   IMPORT FONTS & SYSTEM SETUP
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Barevná paleta */
  --navy: #0E3057;
  --green: #2F8715;
  --blue: #08609B;
  --light-blue: #EDF6FA;
  --light-green: #F1F8EE;
  --white: #FFFFFF;
  --off-white: #F8FAFB;
  --text: #17202A;
  --muted: #647180;
  
  /* Písmo */
  --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Ostatní proměnné */
  --container-width: 1200px;
  --header-height: 90px;
  --header-height-sticky: 70px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(14, 48, 87, 0.05);
  --shadow-md: 0 8px 30px rgba(14, 48, 87, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 48, 87, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* =====================================================
   ZÁKLADNÍ RESET A NASTAVENÍ
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 3rem; /* 48px */
  font-weight: 800;
}

h2 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem; /* 24px */
}

p {
  margin-bottom: 1rem;
}

p.lead {
  font-size: 1.25rem; /* 20px */
  color: var(--navy);
  font-weight: 500;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--green);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

.bg-light-blue {
  background-color: var(--light-blue);
}

.bg-light-green {
  background-color: var(--light-green);
}

.bg-off-white {
  background-color: var(--off-white);
}

.bg-navy {
  background-color: var(--navy);
  color: var(--white);
}

.bg-navy h2, .bg-navy h3, .bg-navy h4 {
  color: var(--white);
}

.hidden {
  display: none !important;
}

/* =====================================================
   TLAČÍTKA A CTA
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--green);
  color: var(--white);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #236610;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 135, 21, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* =====================================================
   HEADER A NAVIGACE
   ===================================================== */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-wrapper.sticky {
  height: var(--header-height-sticky);
  background-color: var(--white);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 54px;
  width: auto;
  transition: var(--transition);
}

.header-wrapper.sticky .logo-img {
  height: 44px;
}

.logo-text {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.logo-subtext {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* Navigace pro Desktop */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--green);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.nav-link:hover, .nav-link:focus {
  color: var(--green);
  outline: none;
}

/* Hamburger menu pro mobil */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1010;
  position: relative;
  width: 44px;
  height: 44px;
}

.menu-btn-box {
  display: block;
  width: 24px;
  height: 18px;
  position: relative;
}

.menu-btn-inner {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19), background-color 0.22s ease;
}

.menu-btn-inner::before,
.menu-btn-inner::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19), top 0.22s ease 0.22s, bottom 0.22s ease 0.22s;
}

.menu-btn-inner::before {
  top: -8px;
}

.menu-btn-inner::after {
  bottom: -8px;
}

/* Aktivní hamburger stav */
.menu-btn[aria-expanded="true"] .menu-btn-inner {
  transform: rotate(225deg);
  transition: transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.menu-btn[aria-expanded="true"] .menu-btn-inner::before {
  top: 0;
  transform: rotate(-90deg);
  transition: top 0.1s ease, transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

.menu-btn[aria-expanded="true"] .menu-btn-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
  transition: bottom 0.1s ease, transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

/* =====================================================
   HERO SEKCE
   ===================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.hero-title {
  margin-bottom: 1rem;
}

.hero-claim {
  font-size: 1.625rem;
  font-style: italic;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-text {
  color: var(--text);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 620px;
}

/* Grafika vpravo */
.hero-graphics-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-logo-bg {
  position: absolute;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(237, 246, 250, 0.8) 0%, rgba(241, 248, 238, 0.3) 60%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
  border-radius: 50%;
}

.hero-logo {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 40px rgba(14, 48, 87, 0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* =====================================================
   VOLEBNÍ LÍSTEK (HLASOVACÍ LÍSTEK) KOMPONENTA
   ===================================================== */
.ballot-ticket {
  background-color: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
  max-width: 500px;
  position: relative;
  overflow: hidden;
}

.ballot-ticket::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background-color: var(--green);
}

.ballot-num-box {
  width: 70px;
  height: 70px;
  border: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  background-color: var(--light-green);
  flex-shrink: 0;
}

.ballot-num-box.empty {
  color: var(--muted);
  background-color: var(--off-white);
  font-size: 1.75rem;
}

.ballot-info {
  display: flex;
  flex-direction: column;
}

.ballot-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.ballot-desc {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.ballot-desc.empty-label {
  font-weight: 500;
  color: var(--muted);
  font-style: italic;
}

/* =====================================================
   SEKCE PROČ KANDIDUJEME
   ===================================================== */
.eyebrow {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.why-content {
  width: 100%;
}

.why-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: flex-start;
  margin-top: 2.5rem;
}

.why-text-column {
  display: flex;
  flex-direction: column;
}

.why-photo-column {
  display: flex;
  flex-direction: column;
}

.why-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--light-green);
  border: 1px solid rgba(14, 48, 87, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.why-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.why-photo-wrapper:hover .why-photo {
  transform: scale(1.02);
}

.why-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-green) 100%);
}

.why-photo-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--blue);
  margin-bottom: 1rem;
}

.why-photo-placeholder span {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.why-photo-placeholder .placeholder-note {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}

.why-text {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.why-quote-box {
  border-left: 6px solid var(--green);
  padding: 1.5rem 2rem;
  background-color: var(--light-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.why-quote {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}

/* =====================================================
   SEKCE PRIORIT
   ===================================================== */
.section-header {
  max-width: 700px;
  margin-bottom: 3.5rem;
}

.priorities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.priority-card {
  background-color: var(--white);
  border: 1px solid rgba(14, 48, 87, 0.08);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.priority-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47, 135, 21, 0.15);
}

.priority-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--light-green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.priority-card:hover .priority-icon-wrapper {
  background-color: var(--green);
  color: var(--white);
}

.priority-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.priority-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.priority-subheading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1rem;
}

.priority-card p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* =====================================================
   SEKCE KANDIDÁTI
   ===================================================== */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.candidate-card {
  background-color: var(--white);
  border: 1px solid rgba(14, 48, 87, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.candidate-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 48, 87, 0.12);
}

.candidate-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--light-blue);
  overflow: hidden;
}

.candidate-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.candidate-card:hover .candidate-photo {
  transform: scale(1.03);
}

.candidate-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Fallback iniciály */
.candidate-initials-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -2px;
}

.candidate-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.candidate-name {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.candidate-meta {
  font-size: 0.9375rem;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.candidate-intro {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Detaily kandidáta pomocí HTML <details> */
.candidate-details {
  border-top: 1px solid rgba(14, 48, 87, 0.08);
  margin-top: auto;
}

.candidate-more-btn {
  list-style: none;
  outline: none;
  cursor: pointer;
  padding: 1rem 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  transition: var(--transition);
}

.candidate-more-btn::-webkit-details-marker {
  display: none;
}

.candidate-more-btn:hover,
.candidate-more-btn:focus {
  color: var(--green);
}

.btn-arrow {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.candidate-details[open] .btn-arrow {
  transform: rotate(180deg);
}

.candidate-bio {
  overflow: hidden;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.candidate-bio-content {
  padding: 1rem 0 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px dashed rgba(14, 48, 87, 0.08);
  margin-top: 0.75rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* =====================================================
   MEZISEKCE / STATEMENT
   ===================================================== */
.statement-section {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
  border-top: 1px solid rgba(14, 48, 87, 0.05);
  border-bottom: 1px solid rgba(14, 48, 87, 0.05);
}

.statement-container {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.statement-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.statement-text {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto;
}

/* =====================================================
   ZÁVĚREČNÁ VOLEBNÍ SEKCE (CTA)
   ===================================================== */
.election-section {
  position: relative;
  overflow: hidden;
}

.election-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.election-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.election-title {
  margin-bottom: 1.5rem;
}

.election-text {
  font-size: 1.125rem;
  color: var(--light-blue);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.election-outro {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

.election-outro-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.election-outro-claim {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Volební lístek v tmavé sekci */
.election-ballot-wrapper {
  display: flex;
  justify-content: center;
}

.election-section .ballot-ticket {
  border-color: var(--white);
  background-color: var(--navy);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 420px;
}

.election-section .ballot-ticket::before {
  background-color: var(--green);
}

.election-section .ballot-num-box {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.election-section .ballot-num-box.empty {
  color: rgba(255, 255, 255, 0.4);
}

.election-section .ballot-title {
  color: rgba(255, 255, 255, 0.5);
}

.election-section .ballot-desc {
  color: var(--white);
}

.election-section .ballot-desc.empty-label {
  color: rgba(255, 255, 255, 0.4);
}

/* =====================================================
   FOOTER (PATIČKA)
   ===================================================== */
.main-footer {
  background-color: var(--off-white);
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid rgba(14, 48, 87, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  height: 50px;
  width: auto;
}

.footer-logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.15;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.footer-nav-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  font-size: 0.9375rem;
  color: var(--muted);
  font-weight: 600;
}

.footer-nav-link:hover,
.footer-nav-link:focus {
  color: var(--green);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-icon {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.footer-contact-icon svg {
  width: 20px;
  height: 20px;
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
}

.footer-contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-contact-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

/* Sociální sítě */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid rgba(14, 48, 87, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.social-link:hover,
.social-link:focus {
  background-color: var(--green);
  color: var(--white);
  border-color: var(--green);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Spodní lišta */
.footer-bottom {
  border-top: 1px solid rgba(14, 48, 87, 0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-author {
  font-size: 0.875rem;
  color: var(--muted);
}

/* =====================================================
   JEMNÉ SCROLL ANIMACE
   ===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Zpoždění pro grids */
.priorities-grid .priority-card:nth-child(1) { transition-delay: 0.05s; }
.priorities-grid .priority-card:nth-child(2) { transition-delay: 0.15s; }
.priorities-grid .priority-card:nth-child(3) { transition-delay: 0.25s; }
.priorities-grid .priority-card:nth-child(4) { transition-delay: 0.35s; }
.priorities-grid .priority-card:nth-child(5) { transition-delay: 0.45s; }
.priorities-grid .priority-card:nth-child(6) { transition-delay: 0.55s; }

/* =====================================================
   RESPONSIVE LAYOUTS (MOBILE-FIRST)
   ===================================================== */

/* 1. TABLET LAYOUT (od 768px do 1024px) */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-text {
    margin-right: auto;
    margin-left: auto;
  }
  
  .ballot-ticket {
    margin-right: auto;
    margin-left: auto;
  }
  
  .btn-group {
    justify-content: center;
  }

  .priorities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .candidates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .election-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .election-ballot-wrapper {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-contacts {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* 2. MOBIL LAYOUT (do 767px) */
@media (max-width: 767px) {
  :root {
    --header-height: 70px;
    --header-height-sticky: 70px;
  }

  section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  p.lead { font-size: 1.125rem; }

  /* Navigace na mobilu */
  .menu-btn {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    padding: 3rem 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.35rem;
    width: 100%;
    text-align: center;
    display: block;
    padding: 0.75rem 0;
  }
  
  body.menu-open {
    overflow: hidden;
  }

  .hero-logo {
    max-width: 80%;
  }

  .ballot-ticket {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
  }

  .ballot-ticket::before {
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
  }

  .why-quote-box {
    padding: 1.25rem 1.5rem;
  }

  .why-quote {
    font-size: 1.125rem;
  }

  .priorities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .candidates-grid {
    grid-template-columns: 1fr;
  }

  .statement-title {
    font-size: 1.75rem;
  }

  .statement-text {
    font-size: 1.125rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-contacts {
    grid-column: span 1;
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* =====================================================
   UPRAVENÉ SEKCE: PROGRAM, JAK VOLIT, GALERIE
   ===================================================== */

/* 1. Volební program */
.program-section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.statement-block {
  max-width: 900px;
  text-align: center;
  margin: 0 auto 3rem auto;
}

.circular-photo-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 3.5rem auto;
  box-shadow: var(--shadow-md);
  border: 5px solid var(--white);
  background-color: var(--light-blue);
}

.circular-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.circular-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.circular-photo-placeholder .placeholder-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.circular-photo-placeholder .placeholder-subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
}

.program-header-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.program-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.program-intro {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Sbalitelný kontejner programu */
.program-content-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.program-content-wrapper.expanded {
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(14, 48, 87, 0.05);
}

.program-text {
  padding: 3rem;
  max-width: 820px;
  margin: 0 auto;
}

.program-text h3 {
  font-size: 1.375rem;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--light-blue);
  padding-bottom: 0.5rem;
  font-weight: 700;
}

.program-text h3:first-of-type {
  margin-top: 0;
}

.program-text p {
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* 2. Blok Jak volit */
.how-to-vote-block {
  margin-top: 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 4.5rem;
}

.how-to-vote-title {
  font-size: 2.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-align: left;
}

.how-to-vote-intro {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 2.5rem;
  text-align: left;
  line-height: 1.4;
}

.vote-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.vote-info-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  text-align: left;
}

.vote-info-card.highlight-card {
  background-color: rgba(47, 135, 21, 0.04);
  border-color: rgba(47, 135, 21, 0.2);
}

.vote-info-card h4 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
}

.vote-info-card h5 {
  font-size: 1.0625rem;
  color: var(--green);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.vote-info-card h5:first-of-type {
  margin-top: 0;
}

.vote-info-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.vote-info-card p:last-child {
  margin-bottom: 0;
}

.vote-info-card ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.vote-info-card li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Systém křížkování */
.vote-system-block {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 3rem;
  margin-bottom: 3rem;
  text-align: left;
}

.vote-system-main h4,
.vote-invalid-box h4 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.vote-system-main p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.vote-system-main p.lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
}

.vote-options-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.vote-option-item {
  background-color: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--green);
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.vote-option-item strong {
  display: block;
  font-size: 1.0625rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.vote-option-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 0;
}

.vote-warning-text {
  font-size: 1.0625rem;
  color: var(--green) !important;
  margin-top: 1rem;
}

.vote-invalid-box {
  background-color: rgba(196, 44, 44, 0.06);
  border: 1px solid rgba(196, 44, 44, 0.25);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.vote-invalid-box h4 {
  color: #ff6b6b;
}

.vote-invalid-box p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.vote-invalid-box ul {
  margin-left: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.vote-invalid-box li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-size: 0.98rem;
}

/* Sčítání a výsledky */
.vote-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
}

.vote-results-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.vote-results-card h4 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.vote-results-card p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.vote-results-card p:last-child {
  margin-bottom: 0;
}

/* 3. Galerie obce */
.gallery-section {
  background-color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14, 48, 87, 0.05);
}

/* 3 + 2 layout na desktopu */
.gallery-item:nth-child(1),
.gallery-item:nth-child(2),
.gallery-item:nth-child(3) {
  grid-column: span 2;
}

.gallery-item:nth-child(4),
.gallery-item:nth-child(5) {
  grid-column: span 3;
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-photo {
  transform: scale(1.02);
}

.gallery-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E5ECF0 0%, #D4DFE6 100%);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.0625rem;
  text-align: center;
  padding: 1.5rem;
}

/* Responzivní přepsání pro nové sekce */
@media (max-width: 1024px) {
  .circular-photo-wrapper {
    width: 200px;
    height: 200px;
    margin-bottom: 2.5rem;
  }

  .program-title {
    font-size: 2rem;
  }

  .program-text {
    padding: 2rem;
  }

  .vote-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .vote-system-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .vote-options-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .vote-results-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(n) {
    grid-column: span 1;
  }

  .gallery-item:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .program-title {
    font-size: 1.75rem;
  }

  .program-text {
    padding: 1.5rem;
  }

  .program-text h3 {
    font-size: 1.2rem;
  }

  .vote-system-block {
    padding: 1.5rem;
  }

  .vote-invalid-box {
    padding: 1.5rem;
  }

  .how-to-vote-block {
    margin-top: 3.5rem;
    padding-top: 3.5rem;
  }

  .how-to-vote-title {
    font-size: 1.75rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .gallery-item:nth-child(n) {
    grid-column: span 1;
  }
}

/* =====================================================
   PODPORA PRO PREFERS-REDUCED-MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-logo {
    animation: none !important;
  }
}
