/* =========================================================
   BAREVNÁ PALETA (JEDNO MÍSTO PRO CELÝ WEB)
   ========================================================= */

:root {
  /* pozadí */
  --color-bg: #F4F4F2;
  --color-bg-alt: #FFFFFF;

  /* text */
  --color-text-primary: #1F2937;
  --color-text-secondary: #4B5563;
  --color-text-muted: #6B7280;

  /* border */
  --color-border: #E5E7EB;

  /* akcent */
  --color-accent: #1F3A5F;
  --color-accent-hover: #162C46;

  /* layout */
  --hero-content-width: 1000px;
}


/* =========================================================
   ZÁKLADNÍ NASTAVENÍ STRÁNKY
   ========================================================= */

html {
  background: var(--color-accent);
}

body {
  margin: 0;
  padding: 0;

  min-height: 100vh;
  display: flex;
  flex-direction: column;

  font-family: 'Merriweather', serif;
  font-size: 18px;
  line-height: 1.65;

  color: var(--color-text-primary);
  background: var(--color-bg);
}

main {
  max-width: 1000px;
  margin: 3rem auto;
  background: none;
  flex: 1;
}

.container {
  padding: 4rem 2rem;
}

/* =========================================================
   VÝCHOZÍ SEKCE (BÍLÉ BOXY)
   ========================================================= */

section {
  margin: 0;
  background: var(--color-bg-alt);
  border-radius: 16px;
  padding: 4rem 3rem;
  margin-bottom: 3rem;
}

/* sekce BEZ bílého boxu */
#aktuality,
#cta-btn,
#kdo-jsme,
#program {
  background: none;
  padding: 0;
  border-radius: 0;
}


/* =========================================================
   TYPOGRAFIE
   ========================================================= */

h1, h2, h3 {
  color: var(--color-text-primary);
}

h1 {
  font-size: 2.2rem;
}

p {
  margin-top: 0.75rem;
}


/* =========================================================
   HEADER + HERO
   ========================================================= */

.site-header,
.site-header a {
  color: #ffffff;
}

.hero-header {
  height: 350px;
  background: var(--color-accent);
  position: relative;
  padding-top: 1rem;
  color: white;
  z-index: 1;
  border-radius: 0;
}

.header-inner {
  max-width: var(--hero-content-width);
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

.logo a:hover {
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 2rem;
}

.site-header nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: currentColor;
  position: relative;
  white-space: nowrap;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.2s ease;
}

.site-header nav a:hover::after {
  width: 100%;
}


/* ================= STICKY HEADER ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition:
    border-radius 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header a {
  color: #fff;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  border-radius: 0;
  z-index: -1;
  transition:
    inset 0.25s ease,
    border-radius 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.is-scrolled::before {
  inset: 7px 50px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  padding: 1.5rem 0;
}

.site-header.is-scroll-up::before {
  inset: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-header::before {
  transition: border-radius 0.25s ease, inset 0.25s ease;
}


/* =========================================================
   HERO OBSAH + OBRÁZEK
   ========================================================= */

.hero-content {
  max-width: var(--hero-content-width);
  margin: 5.5rem auto 0;
}

.hero-content h1 {
  text-align: center;
  color: #ffffff;
  font-size: 3.8rem;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero-social {
  text-align: left;
  margin-top: 2rem;
}

.hero-image {
  max-width: 1000px;
  margin: -120px auto 0;
  padding: 0;
  background: none;
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  border-radius: 24px;
  display: block;
}


/* =========================================================
   OVERLAP SECTION (pages without hero image)
   ========================================================= */

.overlap-section {
  position: relative;
  z-index: 2;
  padding: 0;
  background: none;
}

.page-kontakt .overlap-section {
  margin-top: -120px;
}

.page-index .overlap-section {
  margin-top: 0;
}


/* =========================================================
   VIZE
   ========================================================= */

#vize {
  padding: 0;
  margin: 0 auto 4rem;
}

.vize-box {
  max-width: var(--hero-content-width);
  margin: 0 auto;
  background: var(--color-bg-alt);
  border-radius: 20px;
  padding: 2.5rem;
}

.vize-text {
  padding: 2.25rem 2.5rem;
}

.vize-text h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.vize-text p {
  margin-bottom: 1rem;
  line-height: 1.55;
}

.vize-text p:last-of-type {
  margin-bottom: 0;
}

.vize-sign {
  margin-top: 1.25rem;
  margin-bottom: 0;
}


/* =========================================================
   AKTUALITY
   ========================================================= */

.aktuality-title {
  text-align: center;
  margin: 0 0 0.5rem;
}

.aktuality {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.aktuality-card {
  background: var(--color-bg-alt);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aktuality-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.aktuality-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.aktuality-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aktuality-content {
  padding: 1rem;
}

.aktuality-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.aktuality-more {
  text-align: center;
  margin-top: 2rem;
}


/* =========================================================
   CTA
   ========================================================= */

#cta-btn {
  text-align: center;
  margin: 3rem 0;
}

.cta-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.cta-btn:hover {
  background: #c29400;
}

.cta-btn:active {
  transform: translateY(1px);
}


/* ================= BUTTON - OUTLINE ================= */

.btn-outline {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  background: transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}


/* =========================================================
   KDO JSME
   ========================================================= */

.lide-title {
  text-align: center;
  margin: 0 0 0.25rem;
}

.lide-wrapper {
  margin-top: 0.5rem;
}

.lide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.lide-card {
  background: var(--color-bg-alt);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.lide-card > a {
  color: inherit;
  text-decoration: none;
}

.lide-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.lide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lide-content {
  padding: 1rem;
}

.lide-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.lide-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.team-carousel {
  position: relative;
}

.team-viewport {
  overflow: hidden;
  width: 100%;
}

.team-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.35s ease;
}

.team-track .lide-card {
  flex: 0 0 calc((100% - 6rem) / 4);
}

.team-carousel {
  position: relative;
}

.team-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 48px;
  height: 48px;

  border: none;
  border-radius: 50%;

  background: #21446f;
  color: #fff;

  font-size: 1.6rem;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-arrow-prev {
  left: -24px;
}

.team-arrow-next {
  right: -24px;
}

.team-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.team-arrow-icon {
  width: 26px;
  height: 26px;
  display: block;
  color: white;
}

.team-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* =========================================================
   PROFIL OVERLAY (MODAL)
   ========================================================= */

.person-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.person-overlay.open {
  display: flex;
}

.person-modal {
  background: #ffffff;
  max-width: 480px;
  width: 90%;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
}

.person-modal img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.person-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}


/* ================= FEEDBACK ================= */

.feedback-box {
  max-width: var(--hero-content-width);
  min-height: 420px;
  margin: 0 auto;
  background: var(--color-bg-alt);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}

.feedback-text {
  order: 2;
  padding: 2.25rem 2.5rem;
}

.feedback-image {
  order: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  height: 100%;
}

.feedback-text h2 {
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feedback-text p {
  margin-bottom: 1.5rem;
  max-width: 520px;
  line-height: 1.55;
}

.feedback-btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.feedback-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.feedback-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.feedback-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ================= PROGRAM – KARTY ================= */

.program-grid {
  transition: transform 0.35s ease;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.program-carousel {
  position: relative;
}

.program-viewport {
  width: 100%;
}

.program-arrow {
  display: none;
}

.program-card,
.program-image {
  min-width: 0;
}

.program-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.program-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.program-title {
  text-align: center;
  margin-bottom: 2rem;
}

.program-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.program-card-top {
  background: var(--color-accent);
  color: #ffffff;
  padding: 1.25rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.program-card-top h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #ffffff;
}

.program-card-bottom {
  padding: 1.25rem;
}

.program-card-bottom p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.program-icon {
  width: 32px;
  height: 32px;
  color: white;
  margin-bottom: 0.75rem;
}

.program-card-top .program-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin: 0 0 10px 0;
}

.program-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.program-card-top svg.program-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  flex: none !important;
  margin: 0 0 10px 0;
}



/* =========================================================
   KONTAKT
   ========================================================= */

.contact-form {
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-row.single {
  grid-template-columns: 1fr;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
}

.contact-btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.contact-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.newsletter {
  position: relative;
  background-image: url("/img/newsletter-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;
  padding: 6rem 0;
}

.newsletter h2,
.newsletter p {
  color: #ffffff;
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 58, 95, 0.75);
  z-index: 0;
}

.newsletter .container {
  position: relative;
  z-index: 1;
}

.newsletter form {
  max-width: 400px;
  margin: 2rem auto;
  display: flex;
  gap: 1rem;
}

.newsletter input {
  flex: 1;
  padding: 1rem;
  border-radius: 6px;
  border: none;
}

.newsletter button {
  background: #ffffff;
  color: var(--color-accent);
  padding: 1rem 2rem;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.newsletter button:hover {
  opacity: 0.9;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  margin-top: 5rem;
  padding: 2.5rem 1.5rem;
  background: var(--color-accent);
  color: #ffffff;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer a:hover {
  text-decoration: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .vize-box,
  .feedback-box,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .vize-image,
  .feedback-image {
    height: 220px;
  }

  .vize-text,
  .feedback-text {
    padding: 2rem;
  }

.program-grid {
    grid-template-columns: 1fr;
  }

.program-image {
  aspect-ratio: 4 / 4;
}

.program-icon {
  width: 32px;
  height: 32px;
  color: white;
  margin-bottom: 0.75rem;
}

.program-card-top .program-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin: 0 0 10px 0;
}

.program-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.program-card-top svg.program-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  flex: none !important;
  margin: 0 0 10px 0;
}

  .program-card,
  .program-card:nth-child(4),
  .program-card:nth-child(5) {
    grid-column: 1 / -1;
  }

}

@media (max-width: 768px) {
  .aktuality,
  .lide {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  #program .program-arrow {
    opacity: 0.5;
  }
}

}


/* =========================================================
   PAGE: KONTAKT – MAIN OVERLAP FIX
   ========================================================= */

.page-kontakt main {
  margin-top: 0;
}


/* =========================================================
   MENU – AKTIVNÍ POLOŽKA
   ========================================================= */

.site-header nav a.is-active {
  font-weight: 700;
}

.site-header nav a.is-active::after {
  width: 100%;
}


/* =========================================================
   SCROLL OFFSET PRO ANCHORY (hlavní menu)
   ========================================================= */

#vize,
#feedback,
#aktuality,
#kdo-jsme,
#program {
  scroll-margin-top: 110px;
}


/* ==================================================
   MEDAILONEK KANDIDÁTA
   ================================================== */

.candidate-profile {
  max-width: 1200px;
  margin: 0 auto 4rem auto;

  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-areas:
    "photo info"
    "photo card";
  gap: 2rem;

  background: transparent;
  position: relative;
  z-index: 5;
}

/* FOTO */

.candidate-photo {
  grid-area: photo;
  margin-top: -400px;

  position: relative;
  z-index: 6;
}

.candidate-photo img {
  width: 100%;
  display: block;
  border-radius: 20px;
}

/* INFO NAD KARTOU */

.candidate-info {
  grid-area: info;
  margin-top: -350px;

  position: relative;
  z-index: 6;
}

.candidate-info h1 {
  margin-top: 25px;
  font-size: 2rem;
  line-height: 1.1;
  color: #fff;
}

.candidate-role {
  margin-top: 25px;
  font-size: 0.9rem;
  color: #fff;

}

/* TEXTOVÁ KARTA */

.candidate-card {
  grid-area: card;
  margin-top: -220px;
  font-size: 0.9rem;

  background: #fff;
  border-radius: 20px;
  padding: 3rem;

  position: relative;
  z-index: 6;
}

.candidate-card h2 {
  margin-top: 0;
}

/* MOBIL */

@media (max-width: 900px) {

  .page-kontakt .hero-header {
    height: 660px;
  }

  .candidate-profile {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "info"
      "card";

    gap: 1rem;
    padding: 0 1.5rem;
    margin-top: -440px;
  }

  .candidate-photo {
    grid-area: photo;
    justify-self: center;
    width: 320px;
    max-width: 86vw;
    margin-top: 0;
    z-index: 10;
  }

  .candidate-photo img {
    width: 100%;
    height: auto;
    display: block;
  }

  .candidate-info {
    grid-area: info;
    text-align: center;
    margin-top: 0;
    z-index: 10;
  }

  .candidate-info h1 {
    margin: 0;
    font-size: 2.1rem;
    line-height: 1.1;
    color: #fff;
  }

  .candidate-role {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: #fff;
  }

  .candidate-card {
    grid-area: card;
    margin-top: 2rem;
    padding: 2rem;
  }
}


/* =========================================================
   MOBILNÍ MENU
   ========================================================= */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .header-inner {
    position: relative;
    padding: 1rem 1.5rem;
  }

  .vize-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    z-index: 300;
  }

  .site-header .site-nav {
    display: none;
  }

  .site-header .site-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    position: absolute;
    top: 100%;
    right: 1.5rem;

    min-width: 220px;
    padding: 1rem;

    background: var(--color-accent);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);

    z-index: 250;
  }

  .site-header .site-nav a {
    font-size: 0.95rem;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .site-header.is-scrolled::before,
  .site-header.is-scroll-up::before {
    inset: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 900px) {

  .candidate-info h1,
  .candidate-role {
    color: #000;
  }

}

@media (max-width: 768px) {
  .lide {
    grid-template-columns: minmax(0, 320px);
    justify-content: center;
  }
}


/* =========================================================
   INDEX – MOBILNÍ ŠÍŘKA OBSAHU
   ========================================================= */

@media (max-width: 900px) {
  .page-index main,
  .page-index .hero-image {
    width: calc(100% - 2.5rem);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-index .vize-box,
  .page-index .feedback-box,
  .page-index .aktuality,
  .page-index .lide,
  .page-index .program-grid {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 900px) {

  .page-index #vize {
    padding: 0;
  }

  .page-index .vize-box {
    width: 100%;
    box-sizing: border-box;
  }

}

/* =========================================================
   MOBIL – GLOBÁLNÍ OPRAVY
   ========================================================= */

@media (max-width: 768px) {

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index main,
  .page-index .hero-image {
    width: calc(100% - 2rem);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .team-track {
    gap: 1rem;
  }

  .team-track .lide-card {
    flex: 0 0 100%;
  }

  .team-arrow {
    width: 38px;
    height: 38px;
  }

  .team-arrow-icon {
    width: 22px;
    height: 22px;
  }

 .team-carousel {
    position: relative;
    width: 100%;
  }

  .team-viewport {
    width: 86%;
    margin: 0 auto;
    overflow: hidden;
  }

  .team-track {
    gap: 1rem;
  }

  .team-track .lide-card {
    flex: 0 0 100%;
  }

  .team-arrow {
    width: 46px;
    height: 46px;
    z-index: 20;
  }

  .team-arrow-prev {
    left: 3%;
  }

  .team-arrow-next {
    right: 3%;
  }

  .team-arrow-icon {
    width: 24px;
    height: 24px;
  }

  .program-grid {
    grid-template-columns: 1fr;
    width: 84%;
    margin: 0 auto;
  }

  .program-card,
  .program-image {
    width: 100%;
  }

}


  /* ================= VIZE ================= */

  .page-index .vize-box {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .page-index .vize-text {
    padding: 2rem 1.5rem;
    text-align: left;
  }

  .page-index .vize-text h2 {
    font-size: 1.7rem;
    line-height: 1.25;
    margin: 0 0 1.25rem;
  }

  .page-index .vize-text p {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1rem;
  }


  /* ================= FEEDBACK ================= */

  .page-index .feedback-box {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .page-index .feedback-image {
    height: auto;
  }

  .page-index .feedback-image img {
    width: 100%;
    height: auto;
    display: block;
  }

  .page-index .feedback-text {
    padding: 2rem 1.5rem;
  }

  .page-index .feedback-text h2 {
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .page-index .feedback-text p {
    font-size: 1rem;
    line-height: 1.65;
  }


  /* ================= OBECNÉ NADPISY ================= */

  .page-index h2 {
    line-height: 1.25;
  }

}

@media (max-width: 768px) {

  .program-carousel {
    position: relative;
    width: 100%;
  }

  .program-viewport {
    width: 86%;
    margin: 0 auto;
    overflow: hidden;
  }

  .program-grid {
    display: flex;
    gap: 1rem;
    width: 100%;
  }

  .program-grid > .program-card {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* dekorativní fotku na mobilu do carouselu nedáváme */
  .program-grid > .program-image {
    display: none;
  }

  .program-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: var(--color-accent);
    color: white;

    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
  }

  .program-arrow-prev {
    left: 3%;
  }

  .program-arrow-next {
    right: 3%;
  }

  .program-arrow-icon {
    width: 24px;
    height: 24px;
  }
}

/* =========================================================
   PROGRAM CAROUSEL – MOBILE
   ========================================================= */

@media (max-width: 768px) {

  #program .program-carousel {
    position: relative;
    width: 100%;
  }

  #program .program-viewport {
    width: 86%;
    margin: 0 auto;
    overflow: hidden;
  }

  #program .program-grid {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: none !important;

    width: 100% !important;
    max-width: none !important;

    gap: 1rem;
    margin: 0;

    transition: transform 0.35s ease;
  }

  #program .program-grid > .program-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box;
    grid-column: auto !important;
  }

  #program .program-grid > .program-image {
    display: none;
  }

  #program .program-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: var(--color-accent);
    color: white;

    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
  }

  #program .program-arrow-prev {
    left: 3%;
  }

  #program .program-arrow-next {
    right: 3%;
  }

  #program .program-arrow-icon {
    width: 24px;
    height: 24px;
  }
}