body{
  overflow-x: hidden;
}

.block2{
  position: absolute;
  top: 100%;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 768px){
  .block2{
    top: 20%;
  }
}


.title2{
    position: absolute;
    top: 2%;
    left: 1%;
    font-family: 't2';
    font-size: 45px;
    color: #8B4513;
    text-shadow: 
    -1px -1px 0 #000, 
     1px -1px 0 #000, 
    -1px  1px 0 #000, 
     1px  1px 0 #000; 
    letter-spacing: 3px;
    box-shadow: 10px 10px 50px 10px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    z-index: 5;
    padding-left: 1%;
    padding-right: 1%;
  }

  @media screen and (max-width: 768px){
    .title2{
      font-size: 16px;
      text-shadow: none;
      top: 20%;
    }
  }

.title2.animate{
  animation-name: animt2;
  animation-duration: 3s;
}

@keyframes animt2{
    0%{
      left: 100%;
      opacity: 0;
    }
  
    100%{
      left: 1%;
      opacity: 1;
    }
}

/* слайдер */
.carousel {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
/*   background-image: url(../img/1.jpg);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover; */

  line-height: 1.3;
  margin: 20px 0;
}
.carousel-item {
  --width: clamp(150px, 30vw, 300px);
  --height: clamp(200px, 40vw, 400px);
  --x: calc(var(--active) * 80% * var(--items));
  --y: calc(var(--active) * 20% * var(--items));
  --rot: calc(var(--active) * 120deg);
  --opacity: calc(var(--zIndex) / var(--items) * 5 - 1);
  overflow: visible;
  position: absolute;
  cursor: pointer;
  z-index: var(--zIndex);
  width: var(--width);
  height: var(--height);
  margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5);
  border-radius: 10px;
  top: 50%;
  left: 50%;
  user-select: none;
  transform-origin: 0% 100%;
  box-shadow: 0 10px 50px 10px rgba(0, 0, 0, 0.5);
  pointer-events: all;
  transform: translate(var(--x), var(--y)) rotate(var(--rot));
  transition: transform 0.8s cubic-bezier(0, 0.02, 0, 1);
}
.carousel-item .carousel-box {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1);
  opacity: var(--opacity);
  font-family: 'Roboto', sans-serif;
}
.carousel-item .carousel-box:before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.5));
}
.carousel-item .carousel-title {
  position: absolute;
  z-index: 1;
  color: #fff;
  bottom: 18px;
  left: 20px;
  transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1);
  font-size: clamp(16px, 3vw, 14px);
  text-shadow: 0 0 12px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.7); 
  background-color: rgba(0, 0, 0, 0.5);
}



.carousel-item .num {
  position: absolute;
  z-index: 1;
  color: #13598b;
  background-color: rgba(255, 255, 255, 0.7);
  top: 10px;
  left: 20px;
  transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1);
  font-size: clamp(14px, 10vw, 24px);
  font-weight: bold;
  box-shadow: 10px 10px 50px 10px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding-left: 3%;
  padding-right: 3%;
}

@media screen and (max-width: 768px){
  .carousel-item .num{
    font-size: 16px;
  }
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.tblock{
  position: absolute;
  bottom: -3%;
  z-index: 12;
  font-size: 20px;
  font-weight: bold;
  left: -30px;
  color: #13598b;
  background-color: rgba(255, 255, 255, 0.7);
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 10px 10px 50px 10px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  text-decoration: none;
  padding-left: 3%;
  padding-right: 3%;
}

@media screen and (max-width: 768px){
  .tblock{
    font-size: 16px;
  }
}

/* конец слайдер */