/* ===== FONTY ===== */
/* Druk Heavy TTF nemá české znaky — používáme ho jen v PNG logu */
/* Všechny nadpisy s češtinou = Space Grotesk Bold */
@font-face {
  font-family: 'SpaceGrotesk';
  src: url('assets/fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

/* ===== PROMĚNNÉ ===== */
:root {
  --pink:   #C4557A;
  --navy:   #1D3461;
  --yellow: #F5C518;
  --white:  #FFFFFF;
  --light:  #F5F3F7;
  --text:   #1A1A2E;
  --muted:  #6B6B7A;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(29,52,97,0.10);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'SpaceGrotesk', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== NAVIGACE ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: var(--white);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(29,52,97,0.12); }

.nav-brand img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--pink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ===== TLAČÍTKA ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196,85,122,0.25); }

.btn-primary {
  background: var(--pink);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr min(46%, 720px);
  min-height: min(calc(100vh - 70px), 860px);
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.hero-text {
  padding: 4rem 3rem 4rem 4rem;
}
.hero-logo {
  height: 90px;
  width: auto;
  margin-bottom: 1.25rem;
}
.hero-cislo {
  height: 64px;
  width: auto;
  margin-bottom: 1.25rem;
}
.hero-text h1 {
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.hero-perex {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative;
  background: var(--light);
  height: 100%;
  min-height: min(calc(100vh - 70px), 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.hero-caption {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  padding: 1rem 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.hero-caption strong {
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--navy);
}
.hero-caption span {
  font-size: 0.85rem;
  color: var(--pink);
  font-weight: 600;
}

/* ===== SKUPINOVÁ FOTKA ===== */
.skupina {
  width: 100%;
  overflow: hidden;
  height: clamp(280px, 50vw, 1000px);
}
.skupina-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

/* Banner pod fotografií */
.skupina-banner {
  background: var(--navy);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.skupina-symbol {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  flex-shrink: 0;
}
.skupina-banner p {
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.1;
  color: var(--white);
  text-transform: uppercase;
}

/* ===== VIDEO (sekce #video + tlačítko v hero) ===== */
.btn-video {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--yellow);
  color: var(--navy);
  border: 2px solid var(--yellow);
}
.btn-video:hover { box-shadow: 0 6px 20px rgba(245,197,24,0.4); }
.btn-play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.4em 0 0.4em 0.68em;
  border-color: transparent transparent transparent var(--navy);
}

.video-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 1920 / 1012;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--navy);
}
.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(29,52,97,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play[hidden] { display: none; }
.video-play-icon {
  width: clamp(64px, 10vw, 96px);
  height: clamp(64px, 10vw, 96px);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  position: relative;
  transition: transform 0.15s;
}
.video-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.9em 0 0.9em 1.5em;
  border-color: transparent transparent transparent var(--white);
  font-size: clamp(14px, 2vw, 20px);
}
.video-play:hover .video-play-icon,
.video-play:focus-visible .video-play-icon { transform: scale(1.08); }

/* ===== SEKCE – obecné ===== */
.section { padding: 5rem 1.5rem; }
.section-light { background: var(--light); }
.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-navy .section-sub { color: rgba(255,255,255,0.7); }

.container { max-width: 1100px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-symbol {
  height: 50px;
  width: auto;
  margin: 0 auto 1rem;
  opacity: 0.25;
}
.section-header h2 {
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--navy);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-navy .section-header h2 { color: var(--white); }
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ===== PROGRAM ===== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
  transition: transform 0.2s;
}
.program-card:hover { transform: translateY(-4px); }
.program-num {
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--navy);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.program-card h3 {
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.program-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}
.program-lead {
  margin-bottom: 0.85rem;
}
.program-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.program-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}
.program-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}
.program-body {
  max-height: 260px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}
.program-body.clamped::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--white));
  transition: opacity 0.2s;
}
.program-body.expanded {
  max-height: 2000px;
}
.program-body.expanded::after {
  opacity: 0;
}

/* ===== KANDIDÁTI ===== */
.kandidati-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.kandidat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kandidat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(29,52,97,0.15);
}
.kandidat-num-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.kandidat-promo {
  background: linear-gradient(155deg, var(--navy) 0%, #16274a 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  min-height: 100%;
}
.kandidat-promo:hover { transform: none; }
.kandidat-promo-symbol {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  margin-bottom: 0.75rem;
}
.kandidat-promo-num {
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}
.kandidat-promo-text {
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.kandidat-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--light);
}
.kandidat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.kandidat-info {
  padding: 1.25rem;
}
.kandidat-cislo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.25rem;
}
.kandidat-info h3 {
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.kandidat-vek {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.kandidat-bio {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.kandidat-bio.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
/* Kulaté tlačítko se šipkou – sdílené pro rozbalování medailonků i bodů programu */
.chevron-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 0.6rem;
  border-radius: 50%;
  border: 1.5px solid var(--pink);
  background: var(--white);
  color: var(--pink);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}
.chevron-toggle[hidden] { display: none; }
.chevron-toggle:hover { background: rgba(196,85,122,0.08); }
.chevron-toggle svg { transition: transform 0.25s; }
.chevron-toggle.expanded svg { transform: rotate(180deg); }

/* ===== REALIZACE ===== */
.realizace-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}
.realizace-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}
.realizace-media {
  flex: 1 1 420px;
  order: 2;
}
.realizace-text {
  flex: 1 1 380px;
  order: 1;
}
.realizace-photo-btn {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  border: none;
  padding: 0;
  cursor: zoom-in;
  background: var(--light);
  box-shadow: var(--shadow);
}
.realizace-photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.realizace-photo-btn:hover img { transform: scale(1.04); }

.realizace-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.realizace-thumb-btn {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  border: none;
  padding: 0;
  cursor: zoom-in;
  background: var(--light);
}
.realizace-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.realizace-thumb-more span {
  position: absolute;
  inset: 0;
  background: rgba(29,52,97,0.65);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}

.realizace-year {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
}
.realizace-text h3 {
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.realizace-text p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

@media (min-width: 800px) {
  .realizace-item .realizace-media { order: 1; }
  .realizace-item .realizace-text { order: 2; }
  .realizace-item-reverse .realizace-media { order: 2; }
  .realizace-item-reverse .realizace-text { order: 1; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10,16,30,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-arrow[hidden] { display: none; }
.lightbox-arrow:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-count {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  padding: 0 4rem;
}

@media (max-width: 640px) {
  .lightbox-arrow { width: 40px; height: 40px; }
  .lightbox-close { top: 0.75rem; right: 1rem; }
}

/* ===== KONTAKT ===== */
.kontakt-inner { text-align: center; }
.kontakt-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.kontakt-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.kontakt-icon {
  font-size: 2rem;
  color: var(--yellow);
}
.kontakt-item p {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

/* ===== FOOTER ===== */
.footer {
  background: #111827;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.footer-volby {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  margin-top: 0.15rem;
}
.footer-cookies {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  max-width: 480px;
  margin-top: 0.75rem;
}

/* ===== RESPONZIVNÍ ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .hero-text { padding: 3rem 1.5rem 2rem; }
  .hero-photo {
    min-height: unset;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 620px;
  }
  .hero-img-wrap img {
    object-position: center 8%;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.4rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-text h1 { font-size: 2.8rem; }
  .hero-cislo { height: 60px; }

  .skupina { height: 280px; }

  .kandidati-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .kandidat-num-badge { width: 28px; height: 28px; font-size: 0.8rem; }
  .kandidat-info h3 { font-size: 0.9rem; }

  .kontakt-grid { gap: 2rem; }
}

@media (max-width: 400px) {
  .kandidati-grid { grid-template-columns: 1fr; }
}

/* ===== TRANSPARENTNOST (podstránka transparentnost/ + odkaz v patičce) ===== */
.footer-transp {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 0.5rem;
  transition: color 0.15s;
}
.footer-transp:hover { color: var(--white); }

.transp-inner { max-width: 780px; }
.transp .section-header { margin-bottom: 2.5rem; }
.transp .section-sub { max-width: 640px; }

.transp-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}
.transp-block + .transp-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(29,52,97,0.1);
}
.transp-block h3 {
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.transp-block p + p { margin-top: 0.6rem; }
.transp-block a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.transp-block a:hover { color: var(--navy); }

.transp-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.9rem;
}
.transp-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(29,52,97,0.1);
  vertical-align: top;
}
.transp-table td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-left: 1rem;
  font-weight: 600;
}
.transp-table tfoot td {
  border-bottom: none;
  border-top: 2px solid var(--navy);
  font-weight: 800;
  color: var(--navy);
}
.transp-note { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 640px) {
  .transp-card { padding: 1.5rem 1.25rem; }
  .transp-table td:last-child { white-space: normal; }
}
