/* == SLIDER == */
/* .pt-slider {
  padding-top: clamp(120px, 15vh, 160px); 
  padding-bottom: clamp(20px, 3vh, 40px);
  background: #fff;
} */

.pt-slider {
  padding-top: clamp(70px, 8vw, 110px) ; /* Dříve 120px, 15vh, 160px */
  padding-bottom: clamp(20px, 3vh, 40px);
  background: #fff;
}

.carousel, .carousel-inner {
  width: 100%;
  max-width: 100vw;
}

#slider .container {
  max-width: 90%;
  padding: 0 15px;
  margin-top: clamp(20px, 3vh, 40px);
}

/* Carousel wrapper s dynamickou výškou */
.carousel-inner {
  height: clamp(400px, 60vh, 600px);
  min-height: 400px;
}

.carousel-item {
  height: 100%;
  margin-top: clamp(-0.5rem, -1vh, -1rem);
}

.carousel-item .row {
  height: 100%;
  margin: 0;
  display: flex;
  align-items: stretch;
}

/* Obal obrázku/videa s responzivním paddingem */
.split-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  height: 100%;
  border-radius: clamp(4px, 1vw, 8px);
  overflow: hidden;
  padding: clamp(10px, 2vw, 25px) clamp(8px, 2vw, 20px) clamp(10px, 2vw, 25px) 0;
}

/* Obrázek i video - zmenšené velikosti */
.split-img img,
.split-img video {
  max-width: clamp(75%, 3vw + 75%, 85%);
  max-height: clamp(70%, 8vh + 65%, 85%);
  width: auto;
  height: auto;
  object-fit: contain;
  border: none !important;
  box-shadow: none !important;
  border-radius: clamp(4px, 1vw, 8px) !important;
  background: #fff;
  display: block;
}

.split-img video {
  max-width: clamp(70%, 3vw + 70%, 80%);
  max-height: clamp(250px, 40vh, 400px);
}

/* Textová část s responzivním paddingem */
.split-text {
  background: #fff;
  color: #13224d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 4vw, 40px) clamp(15px, 2vw, 20px) clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px);
  height: 100%;
  text-align: left;
}

/* == SLIDER NADPISY == */
.slider-title h3,
.slider-title h2,
h3.slider-title,
h2.slider-title {
  font-weight: 800 !important;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  font-family: 'IBM Plex Sans', 'IBM Plex Mono', 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h2.slider-title,
.slider-title h2 {
  text-transform: uppercase;
  font-size: clamp(18px, 4vw, 35px); /* Zmenšeno z 20px na 18px */
}

h3.slider-title,
.slider-title h3 {
  font-size: clamp(14px, 3vw, 22px); /* Zmenšeno z 16px na 14px */
}

/* Gradient pro hlavní nadpis */
.slider-title span,
.slider-title .gradient1 {
  font-family: 'IBM Plex Sans', 'IBM Plex Mono', 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.5em;
  color: transparent;
  background: linear-gradient(90deg, #13224d 0%, #2563eb 40%, #00c6fb 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slider-title .gradient2 {
  background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
}

/* == SLIDER TEXT == */
.split-text p {
  font-size: clamp(0.95rem, 2.5vw, 1.35rem);
  line-height: clamp(1.5, 0.2vw + 1.5, 1.7);
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  flex-grow: 1;
}

/* == SLIDER INDIKÁTORY == */
.carousel-indicators {
  position: static;
  margin-bottom: 0;
  margin-top: clamp(15px, 3vw, 30px);
  justify-content: center;
}

.carousel-indicators [data-bs-target] {
  background-color: #092068;
  width: clamp(32px, 5vw, 48px);
  height: clamp(3px, 0.5vw, 5px);
  border-radius: 3px;
  opacity: 0.5;
  margin: 0 clamp(3px, 1vw, 6px);
  transition: opacity 0.2s, background 0.2s;
  border: none;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #092068;
}

/* == SLIDER TLAČÍTKA == */
.split-text .btn,
.split-text .slider-btn {
  width: auto !important;
  min-width: 0 !important;
  display: inline-block !important;
  white-space: nowrap !important;
  align-self: flex-start !important;
  margin-top: clamp(12px, 2vw, 16px);
  overflow: visible !important;
  text-align: left;
  background: #00dbe6 !important;
  color: #fff !important;
  border: none !important;
  font-family: 'IBM Plex Sans', 'IBM Plex Mono', 'Montserrat', Arial, sans-serif;
  transition: box-shadow 0.18s, background 0.18s;
  font-weight: 400 !important;
  flex-shrink: 0;
  font-size: clamp(0.85rem, 2vw, 1rem);
  padding: clamp(8px, 1.5vw, 12px) clamp(16px, 3vw, 24px);
  border-radius: clamp(4px, 0.5vw, 6px);
}

.split-text .btn:hover,
.split-text .slider-btn:hover,
.split-text .btn:focus,
.split-text .slider-btn:focus {
  background: #ffb347 !important;
  color: #fff !important;
  box-shadow: 0 6px 20px 0 rgba(255, 157, 58, 0.28), 0 2px 8px 0 rgba(0,0,0,0.18);
  text-decoration: none;
}

/* Zachovat cyan barvu i po kliknutí */
.split-text .btn:visited,
.split-text .slider-btn:visited {
  background: #00dbe6 !important;
  color: #fff !important;
}

/* Ovládací tlačítka - responzivní pozicionování */
.carousel-control-prev,
.carousel-control-next {
  height: 100%;
  top: 0;
  width: clamp(30px, 5vw, 50px);
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* == RESPONZIVNÍ ÚPRAVY == */

/* 4K displeje (2560px+) */
@media (min-width: 2560px) {
/*   .pt-slider {
      padding-top: clamp(70px, 8vw, 110px) ; /* Dříve 120px, 15vh, 160px 
  padding-bottom: clamp(20px, 3vh, 40px);
  background: #fff;

  } */
  
  #slider .container {
    max-width: 50%;
    margin-top: clamp(30px, 4vh, 60px);
  }
}

/* Velmi velké desktopy (1920px - 2559px) - FHD */
@media (max-width: 2559px) and (min-width: 1920px) {
  .pt-slider {
    padding-top: clamp(80px, 10vh, 120px);
  }
  
  #slider .container {
    max-width: 55%;
    margin-top: clamp(20px, 3vh, 40px);
  }
  
  .carousel-inner {
    height: clamp(500px, 55vh, 650px);
  }
}

/* Velké desktopy (1400px - 1919px) */
@media (max-width: 1919px) and (min-width: 1400px) {
body.topp {
	margin-top:2rem;
}	
  .pt-slider {
    padding-top: clamp(140px, 16vh, 200px);
  }
  
  #slider .container {
    max-width: 55%;
    margin-top: clamp(35px, 4vh, 60px);
  }
  
  .carousel-inner {
    height: 650px;
  }
  
  .split-text p {
    font-size: 1.4rem;
  }
}

/* Střední desktopy (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
body.topp {
	margin-top:2rem;
}	
  .pt-slider {
    padding-top: clamp(130px, 15vh, 180px);
  }
  
  #slider .container {
    max-width: 65%;
    margin-top: clamp(30px, 4vh, 50px);
  }
}

/* Problematické rozlišení 1024x600 - specifické řešení */
@media (max-width: 1199px) and (min-width: 1024px) and (max-height: 700px) {
  .pt-slider {
    padding-top: clamp(200px, 30vh, 250px) !important;
  }
  
  #slider .container {
    max-width: 85%;
    margin-top: clamp(20px, 3vh, 30px) !important;
  }
  
  .carousel-inner {
    height: clamp(300px, 40vh, 380px) !important;
  }
  
  .split-img {
    height: 100%;
    padding: clamp(8px, 1.5vw, 15px);
  }
  
  .split-img img,
  .split-img video {
    max-width: clamp(70%, 2vw + 70%, 80%);
    max-height: clamp(60%, 5vh + 60%, 75%);
  }
}

/* Menší desktopy (992px - 1199px) - kromě specifického 1024x600 */
@media (max-width: 1199px) and (min-width: 992px) and (min-height: 701px) {
  .pt-slider {
    padding-top: clamp(160px, 18vh, 220px);
  }
  
  #slider .container {
    max-width: 80%;
    margin-top: clamp(25px, 3vh, 40px);
  }
  
  .carousel-inner {
    height: clamp(450px, 55vh, 550px);
  }
}

/* Tablety landscape (768px - 991px) */
@media (max-width: 991px) {
body.topp {
	margin-top:2rem;
}	
  #slider .container {
    max-width: 90%;
    margin-top: clamp(35px, 7vh, 70px);
  }
  
  .pt-slider {
    padding-top: clamp(190px, 23vh, 250px);
  }
  
  .carousel-inner {
    height: auto;
    min-height: clamp(400px, 60vh, 500px);
  }
  
  .split-img {
    height: clamp(250px, 40vh, 350px);
    padding: clamp(15px, 3vw, 20px);
  }
  
  .split-text {
    padding: clamp(15px, 3vw, 20px);
    min-height: clamp(150px, 25vh, 200px);
  }
  
  .split-text p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
  }
  
  /* Nadpisy pro tablety landscape */
  h2.slider-title,
  .slider-title h2 {
    font-size: clamp(16px, 3.5vw, 32px) !important;
  }
  
  h3.slider-title,
  .slider-title h3 {
    font-size: clamp(13px, 2.8vw, 20px) !important;
  }
}

/* Tablety portrait a menší (576px - 767px) */
@media (max-width: 767px) {
body.topp {
	margin-top:2rem;
}	
  .pt-slider {
    padding-top: clamp(180px, 22vh, 240px);
    padding-bottom: clamp(15px, 3vh, 25px);
  }
  
  #slider .container {
    margin-top: clamp(30px, 6vh, 60px);
  }
  
  #slider .container {
    max-width: 95%;
    padding: 0 10px;
  }
  
  .carousel-inner {
    height: auto;
    min-height: clamp(350px, 80vh, 600px);
  }
  
  .carousel-item {
    margin-top: 0;
  }
  
  .carousel-item .row {
    flex-direction: column;
  }
  
  .split-img {
    height: clamp(200px, 35vh, 300px);
    margin-bottom: clamp(10px, 2vh, 20px);
    padding: clamp(10px, 2vw, 15px);
  }
  
  .split-text {
    height: auto;
    min-height: clamp(120px, 20vh, 180px);
    padding: clamp(15px, 3vw, 20px);
  }
  
  .split-text p {
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.6;
  }
  
  /* Nadpisy pro tablety portrait */
  h2.slider-title,
  .slider-title h2 {
    font-size: clamp(14px, 4vw, 24px) !important;
    margin-bottom: clamp(0.4rem, 1.5vw, 0.8rem) !important;
  }
  
  h3.slider-title,
  .slider-title h3 {
    font-size: clamp(12px, 3.2vw, 18px) !important;
    margin-bottom: clamp(0.3rem, 1.2vw, 0.6rem) !important;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: clamp(25px, 8vw, 40px);
  }
  
  .carousel-indicators {
    margin-top: clamp(10px, 2vh, 20px);
  }
}

/* Malé mobily (do 575px) */
@media (max-width: 575px) {
	body.topp {
	margin-top:2rem;
}
  .pt-slider {
    padding-top: clamp(160px, 20vh, 200px);
    padding-bottom: clamp(10px, 2vh, 15px);
  }
  
  #slider .container {
    margin-top: clamp(20px, 4vh, 40px);
  }
  
  #slider .container {
    max-width: 100%;
    padding: 0 5px;
  }
  
  .carousel-inner {
    min-height: clamp(300px, 70vh, 500px);
  }
  
  .split-img {
    height: clamp(150px, 30vh, 220px);
    padding: clamp(8px, 2vw, 10px);
    margin-bottom: clamp(8px, 1.5vh, 15px);
  }
  
  .split-text {
    min-height: clamp(100px, 18vh, 160px);
    padding: clamp(10px, 2.5vw, 15px);
  }
  
  .split-text p {
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    line-height: 1.5;
    margin-bottom: clamp(0.4rem, 1.5vw, 0.8rem);
  }
  
  /* Nadpisy pro malé mobily */
  h2.slider-title,
  .slider-title h2 {
    font-size: clamp(12px, 4.5vw, 20px) !important;
    margin-bottom: clamp(0.3rem, 1.2vw, 0.6rem) !important;
    line-height: 1.2 !important;
  }
  
  h3.slider-title,
  .slider-title h3 {
    font-size: clamp(11px, 3.8vw, 16px) !important;
    margin-bottom: clamp(0.25rem, 1vw, 0.5rem) !important;
    line-height: 1.2 !important;
  }
  
  .split-text .btn,
  .split-text .slider-btn {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    padding: clamp(6px, 2vw, 10px) clamp(12px, 4vw, 18px);
    margin-top: clamp(8px, 2vh, 12px);
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: clamp(20px, 10vw, 35px);
  }
  
  .carousel-indicators [data-bs-target] {
    width: clamp(24px, 8vw, 32px);
    height: clamp(2px, 1vw, 3px);
    margin: 0 clamp(2px, 1.5vw, 4px);
  }
}

/* Extra malé mobily (do 375px) */
@media (max-width: 375px) {
  .carousel-inner {
    min-height: clamp(280px, 65vh, 400px);
  }
  
  .split-img {
    height: clamp(120px, 25vh, 180px);
  }
  
  .split-text {
    min-height: clamp(80px, 15vh, 120px);
  }
  
  .split-text p {
    font-size: clamp(0.8rem, 4vw, 0.9rem);
  }
  
  /* Nadpisy pro extra malé mobily */
  h2.slider-title,
  .slider-title h2 {
    font-size: clamp(10px, 5vw, 18px) !important;
    margin-bottom: clamp(0.2rem, 1vw, 0.4rem) !important;
    line-height: 1.1 !important;
  }
  
  h3.slider-title,
  .slider-title h3 {
    font-size: clamp(9px, 4.2vw, 14px) !important;
    margin-bottom: clamp(0.2rem, 0.8vw, 0.3rem) !important;
    line-height: 1.1 !important;
  }
}

/* === ÚPRAVY PRO MENŠÍ ROZLIŠENÍ === */

/* Tablety a menší */
@media (max-width: 767px) {
  /* 1. Obrázky větší */
  .split-img img {
    max-width: 100% !important;
    max-height: 100% !important;
  }

  /* 2. Centrovat obsah */
  .carousel-item .row {
    justify-content: center;     /* horizontální centrování */
    align-items: center;         /* vertikální centrování */
    text-align: center;          /* text na střed */
  }

  .split-text {
    align-items: center;
    text-align: center;
  }

  .split-text .btn {
    align-self: center !important; /* tlačítko na střed */
  }

  .carousel-indicators {
    justify-content: center; /* už máte, ale přidáváme pro jistotu */
  }
}

/* == KONEC SLIDER == */