@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Work+Sans:wght@400;600;700&display=swap&subset=latin-ext");

:root {
  --primary-color: #243c61;
  --secondary-color: #a43337;
  --tertiary-color: #c9deff;
  --background-color: #ebebeb;
  --background-color-linear: transparent
    linear-gradient(90deg, #ebebeb 0%, #e0e0e0 100%) 0% 0% no-repeat padding-box;
}

* {
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--background-color-linear);
}

main {
  padding-top: 80px;
  background: var(--background-color-linear);
}

.container-fluid {
  padding: 0 80px;
}

.center {
  text-align: center;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
}

h1.line:before,
h2.line:before,
h3.line:before,
h4.line:before,
h5.line:before {
  content: "";
  width: 80px;
  height: 2px;
  background-color: var(--secondary-color);
  display: block;
}

h1.line:before,
h2.line:before {
  margin-bottom: 30px;
}

h3.line:before {
  margin-bottom: 25px;
}

h4.line:before,
h5.line:before {
  margin-bottom: 20px;
}

h1.line-60:before,
h2.line-60:before,
h3.line-60:before,
h4.line-60:before,
h5.line-60:before {
  width: 60px;
}

h1.line-center,
h2.line-center,
h3.line-center,
h4.line-center,
h5.line-center {
  text-align: center;
}

h1.line-center:before,
h2.line-center:before,
h3.line-center:before,
h4.line-center:before,
h5.line-center:before {
  margin: auto;
}

h1.line-center:before,
h2.line-center:before {
  margin-bottom: 30px;
}

h3.line-center:before {
  margin-bottom: 25px;
}

h4.line-center:before,
h5.line-center:before {
  margin-bottom: 20px;
}

.nadpis-h1 {
  padding-top: 40px;
}
.banner.subpage .breadcrumbs {
  text-align: center !important;
  margin-bottom: 0 !important;
}
.breadcrumbs {
  font-size: 0.8em;
  color: var(--tertiary-color);
  margin-top: 25px;
  margin-bottom: -44px;
  text-align: right;
}

.breadcrumbs > a {
  color: var(--tertiary-color);
}

.breadcrumbs > a:hover {
  text-decoration: none;
}

.breadcrumbs > i {
  padding: 0 5px 0 5px;
}

a,
button {
  transition: all 0.3s;
  -moz-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
}

body {
  overflow-x: hidden;
}

.bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: all 0.8s;
  -moz-transition: all 0.8s;
  -webkit-transition: all 0.8s;
  -o-transition: all 0.8s;
}

.btn-my {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 0;
  background-color: transparent;
  text-align: center;
  position: relative;
  z-index: 1;
  transform: skewX(-12deg);
  transition: background-color 0.4s ease-out, color 0.4s ease-out;
}

.btn-my > * {
  display: inline-block;
  transform: skewX(12deg);
}

.btn-my:hover {
  text-decoration: none !important;
}

.btn-my.lh-60 {
  line-height: 60px;
}

.btn-my.lh-50 {
  line-height: 50px;
}

.btn-my.lh-40 {
  line-height: 40px;
}

.btn-my.w-160 {
  width: 160px;
}

.btn-my.w-270 {
  width: 270px;
}

.btn-my.w-240 {
  width: 240px;
}

.btn-my-blue {
  background-color: var(--primary-color);
  color: #ffffff;
  
}

.btn-my-blue:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
}

.btn-my-light {
  background-color: white;
  color: var(--primary-color);
}

.btn-my-light:hover {
  background-color: var(--secondary-color);
  color: white;
}

.btn-my-dark {
  color: #ffffff;
  background-color: #000000;
}

.btn-my-dark:hover {
  background-color: #333333;
  color: #ffffff;
}

.error label {
  color: red !important;
}

.error input[type="text"],
.error input[type="email"],
.error textarea {
  border: 1px solid red !important;
}

.nav-item.poptavka .count {
  color: white;
  display: inline-block;
  background-color: #002f4c;
  border-radius: 50%;
  width: 30px;
  line-height: 30px;
  text-align: center;
  color: white;
  font-weight: bold;
  margin-left: 10px;
}

.banner.subpage {
  color: #fff;
  background-size: cover;
  min-height: 250px;
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin-right: auto;
  margin-left: auto;
  background-color: var(--primary-color);
  /* background-image: url("/template/img/sekce-3/slide1.png"); */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-bottom: 0;
  position: relative;
}
.banner.subpage::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  background: transparent linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 100%) 0% 0%
    no-repeat padding-box;
}
.banner.subpage h1 {
  color: #fff;
  font-weight: 600;
  font-size: 36px;
  text-transform: uppercase;
}

.banner.subpage .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90vw;
}

/* SLIDER */
.slider .container-fluid {
  padding: 0 60px;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    var(--primary-color) 50%
  );
}
.slider .row {
  margin-right: 0;
  margin-left: 0;
}
.slider .col-lg-4 {
  padding: 0;
}
.slider .col-lg-4:not(:first-child) {
  margin-left: 0px; /* mezera mezi dlaždicemi */
}
.slider-item {
  aspect-ratio: 30/43;
  width: 100%;
  position: relative;
  overflow: hidden;
  clip-path: polygon(30px 0, 100% 0, calc(100% - 30px) 100%, 0% 100%);
  padding: 30px 100px;
}

.slider-item h2 {
  font-size: 36px;
  line-height: 55px;
  padding: 0 30px;
  background-color: #ca222a; /* nahrazeno za $red-s */
  color: #ffffff; /* nahrazeno za $white */
  margin-bottom: 35px;
  display: inline-block;
}

.slider-item p {
  font-size: 18px;
  color: #ffffff; /* nahrazeno za $white */
  line-height: 35px;
  margin: auto;
  margin-bottom: 25px;
  max-width: 350px;
}

.slider-item .bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1);
  transform-origin: center center;
  transition: transform .8s ease;   /* využije již existující transition */
  will-change: transform;
}

.slider-item .content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transition: all 0.3s;
  -moz-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
}

.slider-item .overlay {
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* Oprava: v Sass bylo justify-items, u Flexboxu se správně používá justify-content */
  transition: all 0.3s;
  -moz-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
}

.slider-item .overlay:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(202, 34, 42, 0.7);
}

.slider-item .overlay-box {
  text-align: center;
  width: 100%;
  position: relative;
}

.slider-item .carousel-caption {
  top: 50%;
  bottom: auto;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  opacity: 0.9;
}

/* Hover efekty */
.slider .slider-item:hover .bg,
.slider .slider-item:focus-within .bg {
  transform: scale(1.08);    /* upravte intenzitu 1.05–1.15 dle vkusu */
}

.slider-item:hover .content {
  opacity: 0;
}

.slider-item:hover .overlay {
  left: 0;
}

/* Nastavení galerie */
.sekce-galerie .container-fluid {
  padding: 10px;
}

.sekce-galerie .galerie-item {
  display: block;
  padding: 10px;
}

.sekce-galerie .galerie-item a {
  display: block;
  overflow: hidden;
  line-height: 0;
  border-radius: 2px;
}

.sekce-galerie .galerie-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 23/15;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.sekce-galerie .galerie-item a:hover img {
  transform: scale(1.2);
}



.sekce-galerie .container-fluid .row:first-child {
  padding: 0;
}

@media (min-width: 1500px) {
  .container {
    max-width: 1400px;
  }
}

@media (max-width: 1400px) {
  main {
    padding-top: 55px;
  }
  .slider .container-fluid .row .carousel-caption span {
    font-size: 18px;
  }
}

@media (max-width: 991px) {
  .container-fluid {
    padding: 0 20px;
  }

  .container {
    /*padding: 0 20px;*/
    padding-left: 20px;
    padding-right: 20px;
  }

  .breadcrumbs {
    text-align: center;
  }

  .slider .container-fluid {
    padding: 0;
    background: var(--primary-color);
  }

  .slider .col-lg-4 {
    width: 100%;
  }

  .slider-item {
    aspect-ratio: 16 / 9;
    clip-path: none;
    padding: 20px;
  }

  .slider-item .bg {
    padding: 0 0 20px 0;
    background-clip: content-box;
  }
  .slider .col-lg-4:last-child .slider-item .bg {
    padding-bottom: 0; /* Vynuluje spodní padding, nahoře zůstane 10px */
  }
 
}
 @media (max-width: 650px) {
  .slider-item .bg {
    padding: 0 0 15px 0;
    background-clip: content-box;
  }
 }

 @media (max-width: 457px) {
  .slider-item .bg {
    padding: 0 0 10px 0;
    background-clip: content-box;
  }
 }