/* ---------- Barvy a písma ---------- */
:root {
  --navy: #1f4e79;
  --sky: #2e7db2;
  --mist: #e8eff5;
  --paper: #f7f9fb;
  --background: #f7f9fb;
  --foreground: #1e2f4a;
  --card: #ffffff;
  --primary: #1f4e79;
  --primary-foreground: #f7f9fb;
  --secondary: #e8eff5;
  --secondary-foreground: #1f4e79;
  --muted-foreground: #5b6b82;
  --accent: #2e7db2;
  --border: #dbe4ec;
  --radius: 1rem;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a strong{
  text-decoration: underline;
}

a strong:hover{
  text-decoration: none;
}


h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0;
}

ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-intro {
  max-width: 42rem;
}

.section-intro h2 {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .section-intro h2 {
    font-size: 2.25rem;
  }
}

.section-intro .muted {
  margin-top: 1rem;
  line-height: 1.65;
}

.muted {
  color: var(--muted-foreground);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-light {
  color: rgba(247, 249, 251, 0.7);
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-weight: 500;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--mist);
}

.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 249, 251, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.brand-text {
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(30, 47, 74, 0.8);
}

.main-nav a:not(.btn):hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

/* ---------- Hero + carousel ---------- */
.hero-media {
  position: relative;
  height: 62vh;
  min-height: 420px;
  width: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(31, 78, 121, 0.85) 0%,
    rgba(31, 78, 121, 0.25) 50%,
    transparent 100%
  );
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(4px);
}

.hero-title {
  margin-top: 1.25rem;
  max-width: 48rem;
  font-size: 2.25rem;
  line-height: 1.15;
  color: #fff;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
}

.hero-lead {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px) {
  .hero-lead { font-size: 1.125rem; }
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.carousel-dots {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  height: 0.5rem;
  width: 0.5rem;
  border: 0;
  padding: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s, background-color 0.2s;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.dot.is-active {
  width: 1.5rem;
  background: #fff;
}

/* ---------- Galerie ---------- */
.gallery {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.gallery-grid {
  display: grid;
  gap: 1.25rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery figure {
  margin: 0;
}

.gallery img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- Program ---------- */
.program-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .program-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.card-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.tag {
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.25rem 0.75rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.card h3 {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  line-height: 1.375;
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ---------- Kandidáti ---------- */
.candidates {
  border-top: 1px solid var(--border);
  background: var(--card);
}

.candidates-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.arrow {display: none;}

@media (min-width: 768px) {
  .candidates-grid { grid-template-columns: repeat(4, 1fr); }
  .arrow {position: absolute;top: 10px;right: 5px; display: inline-block}
}


.candidate h3{
  text-align: center;
}

.candidate .modal-click:hover h3{
  text-decoration: underline;
}
.candidate .modal-click:hover p{
  text-decoration: underline;
}

.candidate p{
  font-size: 0.875rem;
  text-align: center;
}

.candidate h4{
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
}

.hidden{
  display: none;	
}

.candidate-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}

.candidate:hover .candidate-photo {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.candidate-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.candidate:hover .candidate-photo img {
  transform: scale(1.05);
}

.candidate-num {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 9999px;
  background: rgba(31, 78, 121, 0.9);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
}

.candidate h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  position: relative;
}
}

/* ---------- Výzva ---------- */
.cta {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Volební banner ve stylu tahu štětce */
.vote-brush {
  position: relative;
  margin: 0 auto;
  max-width: 36rem;
  padding: 2.5rem 2rem;
  background-color: #152c47;
  border-radius: 47% 53% 51% 49% / 22% 24% 26% 23%;
  text-align: center;
  transform: rotate(-1.5deg);
  box-shadow: 0 12px 32px -12px rgba(21, 44, 71, 0.55);
}

@media (min-width: 640px) {
  .vote-brush {
    padding: 3rem 3.5rem;
  }
}

.vote-brush::before,
.vote-brush::after {
  content: "";
  position: absolute;
  inset: 4px;
  background-color: inherit;
  border-radius: 50% 45% 52% 46% / 18% 28% 20% 25%;
  z-index: -1;
}

.vote-brush::after {
  inset: -6px;
  border-radius: 44% 56% 49% 51% / 28% 19% 24% 21%;
  opacity: 0.55;
  transform: rotate(1.2deg);
}

.vote-brush-top {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px) {
  .vote-brush-top { font-size: 0.875rem; }
}

.vote-brush-date {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 640px) {
  .vote-brush-date { font-size: 1.875rem; }
}

.vote-brush-script {
  margin-top: 0.75rem;
  font-family: "Kalam", "Segoe Script", cursive;
  font-size: 1.875rem;
  color: #fff;
}

@media (min-width: 640px) {
  .vote-brush-script { font-size: 2.25rem; }
}

.cta .vote-brush + h2 {
  margin-top: 2.5rem;
}

.cta-inner {
  text-align: center;
}

.cta h2 {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 1.875rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .cta h2 { font-size: 2.25rem; }
}

.cta p:not(.eyebrow) {
  margin: 1rem auto 0;
  max-width: 36rem;
  line-height: 1.65;
  color: rgba(247, 249, 251, 0.8);
}

/* ---------- Návod ---------- */
.guide {
  border-top: 1px solid var(--border);
  background: var(--card);
}

.guide-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

.guide-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.guide-card h3 {
  font-size: 1.25rem;
}

.guide-card ul,
.guide-card ol {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted-foreground);
}

.guide-card ul li + li {
  margin-top: 0.5rem;
}

.guide-card strong {
  color: var(--foreground);
}

.guide-card-wide {
  grid-column: 1 / -1;
}

.guide-steps {
  list-style: decimal;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .guide-steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Otázky občanů ---------- */
.questions {
  border-top: 1px solid var(--border);
  background: var(--card);
}

.questions-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .questions-grid { grid-template-columns: 1fr 1fr; }
}

.questions-form h3,
.questions-list h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--foreground);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 125, 178, 0.2);
}

.form-error {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #b42318;
  min-height: 1.25em;
}

.form-hint {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.form-success {
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.questions-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.questions-list li {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.questions-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.question-text {
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.question-answer {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ---------- Patička ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.font-medium {
        font-weight: bold;
    }
.mt-2 {
    margin-top: .5rem;
}	


.arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  padding: 3px;
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.modal-overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  
}

/* Show the modal */
.modal-overlay.show {
  display: flex;
  z-index: 50;
}

/* The modal box */
.modal-box {
  background: white;
  width: 90%;
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  padding-top: 40px;
  border-radius: 10px;
  position: relative;
  overflow-y: auto;
}

/* Close button */
.modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
}

.modal-click{
  cursor: pointer
}

.modal-box .candidate-photo{
	max-width: 315px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
	  .modal-box .candidate-photo{
		max-width: 250px;
	}
}

#pripravujeme {
	background: var(--card);
}