.section[data-section-template="Block - Category slider"] {
  overflow: hidden;
}

.block_category_slider {
  margin-top: 20px;
  padding: 80px 100px 100px 100px;
  overflow: visible;
}

.block_category_slider .category-card a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  height: 400px;
  background: var(--white);
  border-radius: 40px 0 40px 0;
  overflow: hidden;
  border: 3px solid var(--dark);
  overflow: visible!important;
  background: repeating-linear-gradient(-50deg, var(--white) 0 8px, #f5f5f5 2px 10px);
}

.block_category_slider .category-card a:hover {
  text-decoration: none;
}

.block_category_slider .category-card a img {
  transform: scale(1);
  transition: transform 0.3s ease-in-out;
}

.block_category_slider .category-card a:hover img {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

.block_category_slider .category-card a:hover .btn-el {
  background: var(--yellow);
  color: var(--black);
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.block_category_slider .splide__list {
  gap: 20px;
  width: auto !important;
  /*transition: cursor 0.3s ease;*/
  margin-right: 100px!important;
}

.block_category_slider .splide__list:hover {
  /*cursor: url('/files/icon_hover_slider.svg') 16 16, auto;
  transition: cursor 0.3s ease;*/
}

.block_category_slider .category-card-img {
  background: var(--white);
  height: 100%; width: 100%;
  display: flex;
  align-items: center;
  border-top-left-radius: 40px;
  justify-content: center;
}

.block_category_slider .category-card-img:not(.img-overflow-top) {
  overflow: hidden;
  position: relative;
}

.block_category_slider .splide__track {
  overflow: visible;
}

.block_category_slider .category-card-img.img-overflow-top img {
  position: absolute;
  top: -75px; 
  bottom: -75px;
  height: calc(100% + 150px);
  overflow: visible;
}
.block_category_slider .category-card-img:not(.img-overflow-top) img {
  bottom: 0;
  object-position: bottom;
}

.block_category_slider .category-card-img img {
  width: auto; height: 100%;
  z-index: 1;
  position: absolute;
  top: 0;
}
.block_category_slider .category-card-content {
  position: relative;
  width: 100%;
  padding: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.block_category_slider .category-card-title {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 900;
  color: var(--primary);
  text-shadow:
    2px 2px 0 var(--black),
   -2px 2px 0 var(--black),
    2px -2px 0 var(--black),
   -2px -2px 0 var(--black),
    2px 0px 0 var(--black),
   -2px 0px 0 var(--black),
    0px 2px 0 var(--black),
    0px -2px 0 var(--black);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.block_category_slider .btn-el.btn-dark {
  border-radius: 10px;
  padding: 8px 24px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 8px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.block_category_slider .splide__arrow {
  background: var(--primary);
  border-radius: var(--border-radius) 0 var(--border-radius) 0;
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.block_category_slider .splide__arrow--prev {
  left: 25px;
}
.block_category_slider .splide__arrow--next {
  right: 25px;
}

@media screen and (max-width: 768px) {
  .block_category_slider {
    padding-left: 80px;
  }
  .block_category_slider .splide__arrow--next {
    right: 10px;
  }
  .block_category_slider .splide__arrow {
    width: 40px;
    height: 40px;
  }
  .block_category_slider .splide__track {
    padding-right: 0!important;
  }

  .block_category_slider .splide__list {
    width: 100% !important;
  }
}