/* ===========================
   Otevřená Police – stylesheet
   Barvy a typografie dle volebního letáku / tabla SNK 2026
   (Open Sans, navy #162842, teal #3f9fb3, green #57a14e,
    orange #f5802b, yellow #fab41d, podklad #ececea)
   =========================== */

:root {
  --navy: #162842;
  --navy-deep: #0f1e33;
  --teal: #3f9fb3;
  --green: #57a14e;
  --orange: #f5802b;
  --yellow: #fab41d;
  --ink: #231f20;
  --gray-600: #5c6570;
  --gray-300: #cfcfca;
  --gray-200: #dcdcd8;
  --paper: #ececea;
  --white: #ffffff;

  --font: 'Open Sans', 'Segoe UI', sans-serif;

  --radius: 6px;
  --header-h: 62px;
  --shadow: 0 10px 30px rgba(22, 40, 66, 0.08);
  --shadow-strong: 0 20px 45px rgba(22, 40, 66, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.eyebrow--light { color: var(--yellow); }

.section-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-lead {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 860px;
  line-height: 1.7;
  margin-bottom: 40px;
}

@media (max-width: 767px) {
  .candidates > .container,
  .program > .container {
    text-align: center;
  }
  .candidates .section-lead,
  .program .section-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .social-cta__inner {
    align-items: center;
    text-align: center;
  }
  .social-cta__title {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__ring {
  width: 74px;
  height: 74px;
  animation: loader-spin 1.1s linear infinite;
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}

/* ===== HEADER – tmavě modrá lišta dle letáku ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: var(--navy);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  padding: 12px 0;
}
.header.is-scrolled {
  padding: 8px 0;
  box-shadow: 0 6px 24px rgba(15, 30, 51, 0.35);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header__brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.header__logo {
  height: 46px;
  width: auto;
  transition: height 0.3s ease;
}
.header__divider {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.header__snk {
  height: 34px;
  width: auto;
  transition: height 0.3s ease;
}
.header.is-scrolled .header__logo { height: 40px; }
.header.is-scrolled .header__snk { height: 30px; }
/* Na mobilu se vedle loga ukáže jen kompaktní značka SNK (bez trojřádkového
   opisu, který by byl stejně nečitelný) – viz <picture> v hlavičce. */
@media (max-width: 759px) {
  .header { padding: 10px 0; }
  .header.is-scrolled { padding: 8px 0; }
  .header__brand { gap: 12px; }
  .header__logo, .header.is-scrolled .header__logo { height: 34px; }
  .header__snk, .header.is-scrolled .header__snk { height: 22px; }
  .header__divider { height: 26px; }
}
@media (max-width: 380px) {
  .header__brand { gap: 9px; }
  .header__logo, .header.is-scrolled .header__logo { height: 30px; }
  .header__snk, .header.is-scrolled .header__snk { height: 19px; }
  .header__divider { height: 22px; }
}

.nav { display: none; gap: 4px; align-items: center; }
.nav__link {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__link:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.burger {
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  z-index: 600;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .burger { display: none; }
  :root { --header-h: 74px; }
}

.nav--mobile-open {
  display: flex !important;
  position: fixed;
  inset: 0;
  background: var(--navy);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  z-index: 550;
}
.nav--mobile-open .nav__link { font-size: 22px; color: var(--white); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  /* poster slouží jako pozadí – zobrazí se okamžitě a zůstane i tehdy,
     když se video vůbec nenačte (pomalé připojení, úsporný režim) */
  background: var(--navy-deep) url('../assets/hero-poster.jpg') center/cover no-repeat;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero__video.is-ready { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,30,51,0.8) 0%, rgba(15,30,51,0.62) 45%, rgba(15,30,51,0.92) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__ring {
  width: 74px;
  height: 74px;
  margin-bottom: 26px;
  animation: fade-drop 0.9s ease both;
}
.hero__title {
  font-size: clamp(34px, 8.2vw, 78px);
  font-weight: 800;
  line-height: 1.04;
  animation: fade-drop 0.9s ease 0.1s both;
}
.hero__subtitle {
  margin-top: 14px;
  font-size: clamp(19px, 3.4vw, 30px);
  font-weight: 700;
  color: var(--green);
  animation: fade-drop 0.9s ease 0.2s both;
}
.hero__meta {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  animation: fade-drop 0.9s ease 0.3s both;
}
@keyframes fade-drop {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-dot 1.6s ease infinite;
}
@keyframes scroll-dot {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__ring, .hero__title, .hero__subtitle, .hero__meta { animation: none; }
  .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== MOTO ===== */
.moto {
  background: var(--white);
  padding: clamp(70px, 9vw, 110px) 0;
}
.moto__quote {
  margin: 0 auto;
  max-width: 860px;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(18px, 2.3vw, 25px);
  font-weight: 600;
  line-height: 1.6;
  color: #000;
}
.moto__quote p + p { margin-top: clamp(20px, 2.6vw, 28px); }

/* ===== KANDIDÁTKA ===== */
.candidates { padding: 84px 0; background: var(--paper); }
.candidates .section-title { margin-bottom: 38px; }
.candidates__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 18px;
}
@media (min-width: 600px) {
  .candidates__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 820px) {
  .candidates__grid { grid-template-columns: repeat(4, 1fr); gap: 30px 20px; }
}
/* Na širokém displeji stejné rozvržení jako na letáku: 5 – 6 – 6.
   Mřížka o 12 sloupcích, každý kandidát zabírá 2; první řada
   (5 karet = 10 sloupců) se posune o jeden sloupec, aby byla vystředěná. */
@media (min-width: 1060px) {
  .candidates__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 34px 22px;
  }
  .candidates__grid .candidate-card { grid-column: span 2; }
  .candidates__grid .candidate-card:first-child { grid-column: 2 / span 2; }
}
.candidate-card {
  margin: 0;
  text-align: center;
  transition: transform 0.25s ease;
}
.candidate-card:hover { transform: translateY(-4px); }
.candidate-card__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--gray-300);
  overflow: hidden;
  /* rámeček fotek dle letáku: nahoře tyrkysová, vpravo zelená,
     dole žlutá, vlevo oranžová */
  border-style: solid;
  border-width: 7px 6px 8px 6px;
  border-color: var(--teal) var(--green) var(--yellow) var(--orange);
}
@media (min-width: 900px) {
  .candidate-card__photo { border-width: 9px 8px 10px 8px; }
}
.candidate-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.candidate-card__photo img.is-loaded { opacity: 1; }
.candidate-card:hover .candidate-card__photo img { transform: scale(1.03); }
.candidate-card__body { padding: 12px 4px 0; }
.candidate-card__name {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.candidate-card__role {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gray-600);
}

/* ===== SOCIAL CTA ===== */
.social-cta { background: var(--navy); padding: 56px 0; }
.social-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 800px) {
  .social-cta__inner { flex-direction: row; align-items: center; }
}
.social-cta__title {
  color: var(--white);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  max-width: 520px;
}
.social-cta__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
@media (min-width: 800px) {
  .social-cta__links { width: auto; justify-content: flex-end; }
}
.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.social-link:hover { transform: translateY(-3px); border-color: transparent; }
.social-link--fb:hover { background: #1877F2; }
.social-link--ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link--mail:hover { background: var(--teal); }
.social-link--mail .social-link__text span { word-break: break-all; }
.social-link__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-link__icon svg { width: 22px; height: 22px; }
.social-link__text { display: flex; flex-direction: column; line-height: 1.3; }
.social-link__text strong { font-size: 15px; font-weight: 700; }
.social-link__text span { font-size: 12.5px; color: rgba(255,255,255,0.7); }

/* ===== VOLEBNÍ PROGRAM – rozbalovací kategorie ===== */
.program { padding: 84px 0; background: var(--white); }
.program-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.program-topic {
  background: var(--paper);
  border-left: 5px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
}
.program-topic:nth-child(4n+2) { border-left-color: var(--green); }
.program-topic:nth-child(4n+3) { border-left-color: var(--orange); }
.program-topic:nth-child(4n+4) { border-left-color: var(--yellow); }
.program-topic__heading { margin: 0; }
.program-topic__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  text-align: left;
  color: var(--navy);
  transition: background 0.2s ease;
}
.program-topic__toggle:hover { background: rgba(22, 40, 66, 0.045); }
.program-topic__title {
  font-size: clamp(18px, 2.6vw, 23px);
  font-weight: 800;
  line-height: 1.3;
}
.program-topic__icon {
  position: relative;
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  transition: transform 0.3s ease, background 0.2s ease;
}
.program-topic__icon::before,
.program-topic__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 2.5px;
  background: var(--white);
  transform: translate(-50%, -50%);
  border-radius: 2px;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.program-topic__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.program-topic.is-open .program-topic__icon { transform: rotate(180deg); }
.program-topic.is-open .program-topic__icon::after { opacity: 0; }

.program-topic__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.program-topic__panel[hidden] { display: none; }
.program-topic__content { padding: 0 22px 24px; }
.program-topic__subtitle {
  font-weight: 700;
  font-size: 17px;
  color: var(--green);
  margin-bottom: 16px;
  line-height: 1.4;
}
.program-topic__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.program-topic__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}
.program-topic__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
}
.program-topic__text {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}
.program-topic__list + .program-topic__text { margin-top: 18px; }
/* ===== FOOTER ===== */
.footer { background: var(--navy-deep); padding: 48px 0; }
.footer__inner {
  display: grid;
  gap: 30px;
  align-items: start;
}
@media (min-width: 800px) {
  .footer__inner { grid-template-columns: 0.95fr 1.35fr 0.9fr; gap: 44px; align-items: center; }
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer__logo { height: 54px; width: auto; }
.footer__snk {
  height: 34px;
  width: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.2);
  box-sizing: content-box;
}
.footer__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.footer__contact p,
.footer__meta p {
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  line-height: 1.8;
}
.footer__link {
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer__link:hover { color: var(--white); border-color: var(--teal); }
.footer__url { color: var(--teal) !important; font-weight: 700; }

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.footer-social:hover { transform: translateY(-2px); border-color: transparent; }
.footer-social[href*="facebook"]:hover { background: #1877F2; }
.footer-social[href*="instagram"]:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-social__icon svg { width: 19px; height: 19px; }
.footer-social__text { display: flex; flex-direction: column; line-height: 1.3; }
.footer-social__text strong { font-size: 14px; font-weight: 700; color: var(--white); }
.footer-social__text span { font-size: 12px; color: rgba(255,255,255,0.72); }
.footer__copy { margin-top: 6px; color: rgba(255,255,255,0.4) !important; font-size: 13px !important; }
.footer__disclosure { margin-top: 10px; color: rgba(255,255,255,0.4) !important; font-size: 12px !important; line-height: 1.6 !important; }

/* ===== MOBIL – utažené odsazení, aby se nescrollovalo zbytečně dlouho ===== */
@media (max-width: 600px) {
  .container { padding: 0 18px; }

  .hero__content { padding-top: calc(var(--header-h) + 24px); padding-bottom: 70px; }
  .hero__ring { width: 60px; height: 60px; margin-bottom: 20px; }

  .moto { padding: 56px 0; }
  .candidates { padding: 56px 0; }
  .candidates .section-title { margin-bottom: 26px; }
  .candidates__grid { gap: 22px 14px; }
  .candidate-card__name { font-size: 12.5px; }
  .candidate-card__role { font-size: 12px; }

  .social-cta { padding: 44px 0; }
  .social-cta__links { gap: 10px; }
  .social-link { flex: 1 1 100%; padding: 12px 18px 12px 12px; }

  .program { padding: 56px 0; }
  .section-lead { font-size: 15px; margin-bottom: 28px; }
  .program-topic__toggle { padding: 16px; gap: 12px; }
  .program-topic__content { padding: 0 16px 20px; }
  .program-topic__list li { font-size: 15px; }
  .program-topic__text { font-size: 15px; }

  .footer { padding: 40px 0; }
  .footer__inner { gap: 26px; }
  .footer-social { flex: 1 1 100%; }
}
