#lili {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: unset;
  display: block;
}

/* ---- ZÁKLADNÍ PROMĚNNÉ (opravena chyba uvnitř :root) ---- */
:root {
  --page-w: 1512px;
  --bg: #1e1e1e;
  --panel: #111016;
  --panel-2: #1a1722;
  --white: #f5f5f7;
  --muted: #b7b1c7;
  --ink: #0b0b0b;
  --primary: #a94bd8;
  --primary-strong: #8f35c6;
  --accent: #5fe0ff;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-glow: 0 0 40px rgba(169, 75, 216, 0.35),
    0 0 120px rgba(95, 224, 255, 0.12) inset;
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.45);
  --content: #090909;
  --nav-bg: rgba(0, 0, 0, 0.85);
  --nav-border: rgba(255, 255, 255, 0.5);
  --nav-radius: 999px;
}

/* .nav nesmí být uvnitř :root */
.nav {
  max-width: var(--page-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
}

/* ---- RESET + ZÁKLAD ---- */
*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Istok Web", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--white);
  text-decoration: none;
}

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

#nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}

.nav a {
  margin-left: 27px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 600;
  color: #f5f5f7;
}

.nav a:hover {
  border-color: #fff;
  background-color: #7621a2;
}

.content {
  max-width: 1512px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--content);
}

.lili {
  position: absolute;
  width: 300px;
}

.center {
  margin: 0 auto;
  /* Auto mezery po stranách → centrování */
}

/* ---- HEADER ---- */
.headerPrinces {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.headerPrinces img {
  display: block;
  width: 100%;
  height: auto;
}

.headerPrinces-text {
  position: absolute;
  top: 40%;
  left: 45%;
  transform: translate(-40%, -50%);
  color: #fff;
  font-size: 2rem;
  /*font-family: 'Great Vibes', cursive;*/
  text-align: center;
  pointer-events: auto;
  /* umožní interakci s CTA buttonem */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 4;
}

#headerPrinces-text2 {
  color: black;
  font-size: 55px;
  margin-top: -26px;
  margin-left: 58px;

  font-weight: 400;
  font-style: Regular;

  text-align: center;
}

/* Center the .container and .lili image */
.center-lili {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.lili.center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* tlačítka/CTA + CAROUSEL držíme v samostatné vrstvě nad obrázkem */
.header-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6vw;
  /* posun nad spodní okraj obrázku */
  display: flex;
  flex-direction: column;
  gap: 60px;
  /* větší mezera mezi CTA a carousel */
  padding: 0 30px;
  z-index: 3;
  /* nejvýš */
  pointer-events: auto;
  padding: 0px 180px;
  /* interaktivní */
}

/* CTA */
.cta {
  margin-left: 54px;
  margin-top: 30px;
  /* odsazení od nápisu "víla jara" */
  height: 40px;
  width: 193px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 64px 14px 20px;
  background: #7b1fa2;
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font: 300 15px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

.cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cta__icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 22px;
  pointer-events: none;
}

.cta__icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 22px;
  height: 1px;
  background: #fff;
  transform: translateY(-50%);
}

.cta__icon::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  background: #fff;
  transform: translateY(-50%);
  border-radius: 1px;
}

.cta__chev {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  box-sizing: border-box;
  border-radius: 0.5px;
}

.cta:hover .cta__icon {
  transform: translateY(-50%) translateX(2px);
}

/* ---- CAROUSEL ---- */
:root {
  --gap: 20px;
  --radius: 28px;
  --glass-bg: rgba(18, 32, 48, 0.42);
  --glass-brd: rgba(255, 255, 255, 0.2);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.8);
}

.xc-carousel {
  background: transparent;
  overflow: visible;
  padding: 0px 0;
  position: relative;
  margin-top: 0px;
  /* posun o dalších 100px dolů (40px + 100px) */
}

.xc-track {
  top: 80px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gap) * 2)) / 3);
  gap: var(--gap);
  overflow: visible;
  scroll-snap-type: none;
  padding-inline: var(--gap);
  position: relative;
  min-height: 380px;
}

.xc-track::-webkit-scrollbar {
  display: none;
}

/* Magický efekt pro karty */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 340px;
  max-width: 300px;
  opacity: 1;
  transform: scale(1) rotateY(0deg);
  filter: blur(0px) brightness(1);
}

.card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(169, 75, 216, 0.3);
  filter: brightness(1.1);
}

.card:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(169, 75, 216, 0.1) 0%,
    transparent 50%,
    rgba(95, 224, 255, 0.1) 100%
  );
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 1;
}

.card.active {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(169, 75, 216, 0.3),
    0 0 30px rgba(95, 224, 255, 0.2);
  position: relative;
}

.card.active::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(169, 75, 216, 0.5) 0%,
    rgba(95, 224, 255, 0.5) 25%,
    rgba(255, 223, 127, 0.5) 50%,
    rgba(169, 75, 216, 0.5) 75%,
    rgba(95, 224, 255, 0.5) 100%
  );
  border-radius: calc(var(--radius) + 2px);
  animation: activeGlow 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes activeGlow {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }
}

/* Magické efekty pro přechody */
.card.fade-out {
  opacity: 0;
  transform: scale(0.8) rotateY(90deg);
  filter: blur(5px) brightness(0.3);
}

.card.fade-in {
  opacity: 0;
  transform: scale(1.2) rotateY(-90deg);
  filter: blur(5px) brightness(1.5);
}

.card.sparkle {
  animation: sparkleEffect 0.8s ease-in-out;
  position: relative;
}

.card.sparkle::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(
    45deg,
    rgba(169, 75, 216, 0.4) 0%,
    rgba(95, 224, 255, 0.4) 25%,
    rgba(255, 223, 127, 0.4) 50%,
    rgba(169, 75, 216, 0.4) 75%,
    rgba(95, 224, 255, 0.4) 100%
  );
  border-radius: calc(var(--radius) + 5px);
  animation: shimmer 0.8s ease-in-out;
  z-index: -1;
}

.card.sparkle::after {
  content: "✨";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  animation: sparkleRotate 0.8s ease-in-out;
  z-index: 10;
}

@keyframes sparkleEffect {
  0% {
    opacity: 0;
    transform: scale(0.8) rotateY(-180deg);
    filter: blur(10px) brightness(2) saturate(2);
    box-shadow: 0 0 30px rgba(169, 75, 216, 0.8),
      0 0 60px rgba(95, 224, 255, 0.6), 0 0 100px rgba(255, 223, 127, 0.4);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05) rotateY(0deg);
    filter: blur(2px) brightness(1.3) saturate(1.5);
    box-shadow: 0 0 20px rgba(169, 75, 216, 0.6),
      0 0 40px rgba(95, 224, 255, 0.4), 0 0 60px rgba(255, 223, 127, 0.3);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    filter: blur(0px) brightness(1) saturate(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

@keyframes shimmer {
  0% {
    opacity: 0;
    transform: rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: rotate(180deg);
  }

  100% {
    opacity: 0;
    transform: rotate(360deg);
  }
}

@keyframes sparkleRotate {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0);
  }

  50% {
    opacity: 1;
    transform: rotate(180deg) scale(1.5);
  }

  100% {
    opacity: 0;
    transform: rotate(360deg) scale(0);
  }
}

/* Magické částice efekt */
.magic-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(
    circle,
    rgba(169, 75, 216, 1) 0%,
    rgba(95, 224, 255, 0.8) 100%
  );
  border-radius: 50%;
  animation: floatParticle 1.5s ease-out forwards;
}

@keyframes floatParticle {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0);
  }

  50% {
    opacity: 0.8;
    transform: translateY(-100px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-200px) scale(0);
  }
}

/* Animované hvězdičky */
.magic-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.star {
  position: absolute;
  color: rgba(255, 223, 127, 0.9);
  font-size: 12px;
  animation: twinkle 2s ease-in-out infinite;
}

.star:nth-child(even) {
  animation-delay: 0.5s;
  color: rgba(169, 75, 216, 0.8);
}

.star:nth-child(3n) {
  animation-delay: 1s;
  color: rgba(95, 224, 255, 0.7);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

/* Kouzelný prach efekt */
.fairy-dust {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

.dust-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: dustFloat 3s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

@keyframes dustFloat {
  0% {
    opacity: 0;
    transform: translateY(20px) translateX(0);
  }

  25% {
    opacity: 1;
    transform: translateY(-20px) translateX(10px);
  }

  50% {
    opacity: 0.7;
    transform: translateY(-60px) translateX(-5px);
  }

  75% {
    opacity: 0.4;
    transform: translateY(-100px) translateX(15px);
  }

  100% {
    opacity: 0;
    transform: translateY(-150px) translateX(-10px);
  }
}

/* Magické svítící cesty */

/* Kouzelné orby */
.magic-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 7;
}

.orb {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(169, 75, 216, 0.4) 100%
  );
  animation: orbFloat 5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(169, 75, 216, 0.6);
}

.orb:nth-child(2n) {
  animation-delay: 1s;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(95, 224, 255, 0.4) 100%
  );
  box-shadow: 0 0 10px rgba(95, 224, 255, 0.6);
}

.orb:nth-child(3n) {
  animation-delay: 2s;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 223, 127, 0.4) 100%
  );
  box-shadow: 0 0 10px rgba(255, 223, 127, 0.6);
}

@keyframes orbFloat {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0) translateX(0) scale(0.5);
  }

  25% {
    opacity: 0.8;
    transform: translateY(-30px) translateX(20px) scale(1);
  }

  50% {
    opacity: 0.6;
    transform: translateY(-60px) translateX(-10px) scale(1.2);
  }

  75% {
    opacity: 0.4;
    transform: translateY(-40px) translateX(30px) scale(0.8);
  }
}

/* Magické vlny při přechodu */
.magic-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(169, 75, 216, 0.3) 0%,
    transparent 70%
  );
  animation: waveExpand 1s ease-out forwards;
  pointer-events: none;
  z-index: 6;
}

@keyframes waveExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  100% {
    width: 600px;
    height: 600px;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

/* Magické spirály */
.magic-spirals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.spiral {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid transparent;
  border-top: 2px solid rgba(169, 75, 216, 0.6);
  border-radius: 50%;
  animation: spiralSpin 3s linear infinite;
}

.spiral:nth-child(2n) {
  border-top: 2px solid rgba(95, 224, 255, 0.6);
  animation-direction: reverse;
  animation-delay: 0.5s;
}

@keyframes spiralSpin {
  0% {
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }

  25% {
    opacity: 1;
    transform: rotate(90deg) scale(1);
  }

  75% {
    opacity: 0.5;
    transform: rotate(270deg) scale(1.5);
  }

  100% {
    transform: rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

/* Magické svítící cesty */
.magic-trails {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.trail {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(169, 75, 216, 0.8),
    transparent
  );
  animation: trailMove 2s ease-in-out infinite;
}

@keyframes trailMove {
  0% {
    opacity: 0;
    transform: translateX(-100px) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: translateX(200px) rotate(45deg);
  }

  100% {
    opacity: 0;
    transform: translateX(500px) rotate(45deg);
  }
}

/* Kouzelné rune symboly */
.magic-runes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}

.rune {
  position: absolute;
  font-size: 16px;
  color: rgba(169, 75, 216, 0.7);
  animation: runeAppear 3s ease-in-out infinite;
  font-family: "Istok Web";
}

@keyframes runeAppear {
  0%,
  90% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }

  10%,
  80% {
    opacity: 0.8;
    transform: scale(1) rotate(360deg);
  }
}

/* Carousel Navigation */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 100px;
  margin-bottom: -70px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  scroll-snap-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 340px;
  max-width: 300px;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.card.active {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(169, 75, 216, 0.3);
}

.card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.card__top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(
    to bottom,
    var(--glass-bg) 0%,
    rgb(0 0 0 / 45%) 48%
  );
  backdrop-filter: blur(1px) saturate(1);
  border-bottom: 1px solid var(--glass-brd);
}

.card__icon {
  font-size: 22px;
}

.card__title {
  margin: 0;
  font: 600 20px/1.2 system-ui;
}

.card__bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 80px;
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(
    to top,
    var(--glass-bg) 0%,
    rgba(18, 32, 48, 0) 100%
  );
  backdrop-filter: blur(10px) saturate(1.15);
  border-top: 1px solid var(--glass-brd);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.btn--primary {
  width: 42px;
  height: 42px;
  background: rgba(234, 200, 160, 0.95);
  color: #111;
  font-size: 14px;
  font-weight: bold;
}

.btn--primary:hover {
  background: rgba(234, 200, 160, 1);
  transform: scale(1.08);
}

.card__progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 8px;
}

.card__progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
  border-radius: 999px;
}

.card__time {
  color: var(--muted);
  font-weight: 500;
}

/* --- responsivní fallback: na úzkých displejích 1–2 karty --- */
@media (max-width: 768px) {
  .xc-track {
    grid-auto-columns: calc(100% - var(--gap));
  }

  /* Mobile navigation - only for mobile */
  .nav {
    padding: 12px 16px;
    position: relative;
  }

  /* Add mobile menu toggle button */
  .nav::before {
    content: "☰";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
    z-index: 30;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
  }

  .nav:hover::before {
    background: rgba(255, 255, 255, 0.2);
  }

  /* Hide navigation on mobile by default */
  .nav-group {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 25;
    display: none;
  }

  /* Show menu when nav is clicked/active */
  .nav:focus-within .nav-group,
  .nav:active .nav-group,
  .nav.nav--open .nav-group {
    display: flex;
    transform: translateX(0);
  }

  .nav a {
    margin-left: 0;
    padding: 12px 24px;
    font-size: 18px;
    min-width: 200px;
    text-align: center;
    justify-content: center;
  }

  /* Change hamburger to X when menu is open */
  .nav.nav--open::before {
    content: "✕";
    font-size: 20px;
  }

  /* Responsive Carousel - mobile single card */
  .xc-carousel {
    padding: 30px 0 20px;
    margin-top: 0;
    touch-action: pan-x;
    overflow: hidden;
  }

  .xc-track {
    display: flex;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    gap: 20px;
    padding-inline: 20px;
    min-height: 320px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    top: 40px;
    position: relative;
  }

  .xc-track::-webkit-scrollbar {
    display: none;
  }

  .card {
    min-height: 300px;
    width: calc(100vw - 80px);
    max-width: 320px;
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: center;
    margin: 0 auto;
  }

  /* Mobile carousel navigation */
  .carousel-nav {
    margin-top: 40px;
    margin-bottom: 0;
    gap: 20px;
    padding: 0 20px;
    justify-content: center;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
  }

  .carousel-btn:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.95);
  }

  /* Mobile carousel dots */
  .carousel-dots {
    gap: 8px;
  }

  .carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
  }

  .carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(169, 75, 216, 0.5);
  }

  /* Mobile card content adjustments */
  .card__top {
    height: 56px;
    padding: 0 12px;
  }

  .card__icon {
    font-size: 14px;
  }

  .card__title {
    font-size: 16px;
  }

  .card__bottom {
    height: 70px;
    padding: 8px 12px;
    grid-template-columns: auto auto 1fr auto;
  }

  .btn {
    min-width: 28px;
    height: 28px;
    font-size: 12px;
    padding: 4px 8px;
  }

  .btn--primary {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .card__progress {
    height: 4px;
    margin: 0 6px;
  }

  .card__time {
    font-size: 12px;
  }
}

/* Extra malé displeje */
@media (max-width: 480px) {
  .nav {
    padding: 10px 12px;
  }

  .nav::before {
    right: 12px;
    font-size: 22px;
    width: 36px;
    height: 36px;
  }

  .nav a {
    min-width: 180px;
    padding: 10px 20px;
    font-size: 16px;
  }

  .nav-group {
    gap: 24px;
  }

  /* Extra small carousel adjustments */
  .xc-track {
    padding-inline: 16px;
    gap: 16px;
  }

  .card {
    min-height: 280px;
    width: calc(100vw - 60px);
    max-width: 280px;
    min-width: 240px;
  }

  .carousel-nav {
    margin-top: 30px;
    gap: 16px;
    padding: 0 16px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}

/* Tablet responzivita */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav {
    padding: 15px 20px;
  }

  .nav a {
    margin-left: 20px;
    padding: 10px 20px;
    font-size: 15px;
  }

  /* Tablet carousel - show 2 cards */
  .xc-carousel {
    padding: 40px 0 30px;
  }

  .xc-track {
    grid-auto-columns: calc((100% - var(--gap) * 3) / 2);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: 20px;
  }

  .card {
    max-width: none;
    scroll-snap-align: start;
  }

  .carousel-nav {
    margin-top: 50px;
    margin-bottom: -40px;
  }
}

#elipse {
  position: absolute;
  width: 396.03px;
  height: 333.05px;
  left: 654px;
  top: 330px;
  display: block;
  background: #9775a8;
  filter: blur(181.45px);
  transform: rotate(-87.1deg);
}
#elipse-container {
  position: absolute;
}

#story {
  position: relative;
}

/* Clearfix pro #story aby správně obsahal floated elementy */
#story::after {
  content: "";
  display: table;
  clear: both;
}

#c {
  /*position: absolute;*/
  background: #000;
}

.story-left-container {
  width: 50%;
  padding: 100px;
  float: left;
  padding-right: 80px;
}

.story-right-container {
  width: 50%;
  padding: 80px;
  float: left;
}

.text {
  font-family: "Istok Web";
  font-style: normal;
  font-weight: 300;
  font-size: 15px;
  line-height: 26px;
  color: #d1d1d1;
}

.perex {
  font-family: "Istok Web";
  font-style: normal;
  font-weight: 700;
  font-size: 17px;
  line-height: 26px;
  color: #d1d1d1;
}

#aboutStory {
  margin-bottom: 30px;
}

#cycle {
  font-size: 24px;
  font-weight: 600;
  font-family: "Istok Web";
}

p {
  text-indent: 1em;
}

.highlight {
  font-weight: bold;
}

#i2 {
  margin-top: 40px;
}

#s1 {
  margin-top: -124px;
  margin-bottom: -100px;
}

#s2 {
  margin-top: -148px;
  margin-bottom: -100px;
  float: right;
}

.clear {
  clear: both;
}

.container {
  margin: 0 auto;
  padding: 0px 0px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  background-color: var(--bg);
}

.container--clearfix {
  display: flow-root;
}

.container,
.container--clearfix {
  display: flow-root; /* nejčistší fix */
}

.headerPrinces {
  position: relative;
}

.container--clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.about {
  width: 100%;
}

.hr {
  width: 80%;
  border: 1px solid #7f7f7f;
}

#s1b {
  margin-top: -132px;
  margin-bottom: -100px;
  float: left;
}

#s2b {
  margin-top: -132px;
  margin-bottom: -100px;
  float: right;
}

#box {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid #7f7f7f;
  border-radius: 26px;
  z-index: 1;
}

#content-about {
  padding-top: 95px;
  padding-left: 105px;
  padding-right: 105px;
  background: rgb(0, 0, 0);
}

#imgBox {
  padding: 10px;
  float: left;
}

#imgBox img {
  float: left;
  padding: 10px;
  max-width: 25%;
}

#about-left-container1 {
  float: left;
  width: 50%;
}

#about-right-container1 {
  float: right;
  width: 50%;
}

/* Rodič */
#content-about-content {
  /*  display: flex;*/
  flex-wrap: wrap; /* dovolí zalomení, kdyby bylo potřeba */
  /* gap: 0;                případně zkontroluj, že nepřidáváš mezery */
}

/* Položky */
#about-left-container,
#about-right-container {
  box-sizing: border-box; /* šířka 50% zahrne padding/border */
  /* flex: 0 0 50%;            /* přesně 50 %, nezužuje/nerozšiřuje */
  /*  max-width: 50%;
  /* float: none;           pro jistotu, pokud jsi měl kdysi floaty */
  /* margin: 0;             pozor na velké marginy zvyšující součet přes 100 % */
  /* width: 50%; */
  padding: 20px; /* vnitřní odsazení */
  box-sizing: border-box; /* zahrne padding/border do šířky */
}

#about-right-container {
  /* margin-top: -184px; */
}

/* Obsah uvnitř, aby nepřetékal */
#content-about img,
#content-about video {
  max-width: 25%;
  height: auto;
}

#about-left-container img {
  max-width: 100%;
  height: auto;
}

#content-about {
  padding: 80px 100px;
  background: #000;
  color: var(--white);
}

#box {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;

  border: 1px solid #7f7f7f;
  border-radius: 26px;
  padding: 20px;
}

#s1,
#s1b,
#s2,
#s2b {
  display: block;
}

/* 4 menší obrázky nahoře */
#imgBox {
  grid-column: 1 / span 12;
  /* display: grid; */
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  display: block;
}

#imgBox img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* spodní část: portrét + text */
#content-about-content {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

#about-left-container img {
  width: 100%;
  border-radius: 16px;
}

#about-right-container h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--white);
}

.about__text p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1em;
  font-family: "Istok Web";
}

/* Responzivita */
@media (max-width: 992px) {
  #content-about {
    padding: 40px 20px;
  }
  #content-about-content {
    grid-template-columns: 1fr;
  }
  #about-left-container {
    order: -1; /* portrét nahoře */
  }
  .headerPrinces-text {
    display: none;
  }
  #elipse {
    display: none;
  }

  .story-left-container,
  .story-right-container {
    padding: 5px;
  }

  #s1,
  #s1b,
  #s2,
  #s2b,
  hr,
  #imgBox,
  .story-right-container {
    display: none;
  }
  #about-right-container {
    
     font-size: 50px;
    margin-bottom: 8px;
    margin-top: -22px;
    color: var(--white);
  }

  .story-left-container {
    width: 100%;
  }
}

.author-section {
  display: flex;
  align-items: center;

  padding: 20px;
  padding-top: 0px;
  padding-left: 0;
  max-width: 800px;
  margin: 0 auto;
  font-family: "Istok Web";
  /* margin-top: 131px; */
}

.author-photo {
  flex-shrink: 0;
  /* width: 120px; */
  height: auto;
  border-radius: 8px;
  margin-right: 20px;
}

.author-text h2 {
  font-size: 2rem;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.author-text p {
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
  text-indent: 0%;
}

.author-text strong {
  font-weight: bold;
}

.about-right-container {
  max-width: 100%;
}

#about-right-container > img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

#about-right-container > center {
  font-size: 15px;
  font-family: "Istok Web";
}

html {
  scroll-behavior: smooth;
}
