/*@import 'swiper/scss';
@import 'swiper/scss/effect-cube';*/
:root {
  --stories-slider-z-shadows: 999;
  --stories-slider-z-pagination: 50;
  --stories-slider-z-navigation: 200;
  --stories-slider-z-user: 300;
  --stories-slider-z-actions: 300;
  --stories-slider-z-content: 100;
  --stories-slider-slide-bg-color: #000;
}

* {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
#stories-app {
  height: 100%;
  margin-top:50px;
}
.stories-app {
  overflow: auto;
  height: 100%;
}

.block-stories {
  display: flex;
  align-items: flex-start;

  overflow: auto;
  scrollbar-width: none;
  justify-content: center;
  gap:30px;
}
@media (max-width: 1024px) {
  .block-stories {
    justify-content: flex-start;
  }
}
.block-stories::-webkit-scrollbar {
  display: none;
  opacity: 0;
}
.block-stories-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
  flex:0;
}
.block-stories-item > div {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: .3s ease;
}
.block-stories-item .img {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #F5F5F5;
  background-position: center;
  background-repeat: no-repeat;
  border: 6px solid #FFFFFF;
  transition: .3s ease;
  background-size: contain!important;
}
.block-stories-item .img:after {
  content: '';
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-image: linear-gradient(125deg, #FF2DF2, #2D74FF);
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  transition: .3s ease;
}
.block-stories-item:hover > div {
  /* width: 90px; */
  /* height: 90px; */
  /* margin-bottom: 5px; */
  /* margin-top: 5px; */
  transform: scale(.9);
}
.block-stories-item:hover p {
  color: #282828;
}
.block-stories-item p {
  font-weight: 500;
  font-size: 14px;
  color: #9C9C9C;
  margin-bottom: 0;
  margin-top: 8px;
  text-align: center;
}
.block-stories-item.view .img:after {
  background-image: linear-gradient(125deg, #F5F5F5, #F5F5F5);
}
.stories-slider {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  transform: scale(0);
  transform: translate3d(0, 0, 0) scale(0.5);
  opacity: 0;
  background: rgba(0, 0, 0, 0.75);
}
@media (min-width: 415px), (min-height: 897px) {
  .stories-slider {
    background: rgba(0,0,0,0.7);
  }
}
.stories-slider > .swiper {
  z-index: 2;
  /*max-width: 414px;*/
  height: 100%;
  max-height: 869px;
  aspect-ratio: 489 / 869;
  padding: 10px 0;
}
@media (max-width: 568px) {
  .stories-slider > .swiper {
    /*top: 24px;*/
    padding: 0 10px;
  }
}
.stories-slider:not(.stories-slider-in) {
  pointer-events: none;
}
.stories-slider:not(.stories-slider-in) * {
  pointer-events: none !important;
}
.stories-slider-in {
  animation: stories-slider-in 400ms forwards;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}
.stories-slider-out {
  pointer-events: none;
  animation: stories-slider-out 400ms forwards !important;
}
@keyframes stories-slider-in {
  0% {
    transform: translate3d(0, 0, 0) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate3d(0, 0, 0) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}
@keyframes stories-slider-out {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate3d(0, 0, 0) scale(0.5);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(0.5);
    opacity: 0;
  }
}
.bottom-block-bg.active{
  z-index:9999
}
.stories-slider .swiper-slide{
  max-width: 489px;
  max-width: fit-content;
  height: 100%;
  aspect-ratio: 489 / 869;
}
.stories-slider .swiper-slide.swiper-slide-active {

}
.stories-slider {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stories-slider > .swiper > .swiper-wrapper > .swiper-slide:not(.swiper-slide-next, .swiper-slide-prev, .swiper-slide-active) {

}
.stories-slider > .swiper > .swiper-wrapper > .swiper-slide-next + .swiper-slide {

}
.stories-slider .storis-swiper-block{
  transition:transform 0.3s ease;
}
.storis-swiper-block:not(.swiper-slide-active) .stories-slider-button{
  pointer-events: none;
}
.stories-slider .storis-swiper-block:not(.swiper-slide-active){
  transform: translate3d(0px, 0px, 0px) rotateX(0deg) rotateY(0deg) scale(0.779866);
  filter: brightness(0.5);
}
.stories-slider .swiper {
  height: 100%;
  width: 100%;
}
@media (max-width: 568px) {
  .stories-slider .swiper {
    height: auto;
  }
}
.stories-slider .swiper .swiper .swiper-slide {
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--stories-slider-slide-bg-color);
}
.stories-slider .swiper .swiper-slide-shadow-left,
.stories-slider .swiper .swiper-slide-shadow-right {
  z-index: var(--stories-slider-z-shadows) !important;
}
.stories-slider .swiper .swiper-slide-shadow-left {
  background-image: linear-gradient(to left, rgb(0, 0, 0), rgba(0, 0, 0, 0.5));
}
.stories-slider .swiper .swiper-slide-shadow-right {
  background-image: linear-gradient(to right, rgb(0, 0, 0), rgba(0, 0, 0, 0.5));
}
.stories-slider.stories-slider-perspective .swiper .swiper,
.stories-slider.stories-slider-perspective .swiper-slide-shadow-left,
.stories-slider.stories-slider-perspective .swiper-slide-shadow-right {
  transform: translate3d(0, 0, calc(-1 * var(--swiper-cube-translate-z)));
  transform-origin: 0% 0% calc(-1 * var(--swiper-cube-translate-z));
}

.stories-slider-button {
  position: absolute;
  top: 0;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
}
.stories-slider-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition-duration: 200ms;
}
.stories-slider-button:active::before {
  opacity: 0.25;
}
.stories-slider-button-prev {
  left: 0;
  width: 30%;
}

.stories-slider-button-next {
  right: 0;
  width: 70%;
}


.stories-slider-pagination {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  display: flex;
  justify-content: space-between;
  z-index: var(--stories-slider-z-pagination);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}
.stories-slider-pagination-bullet {
  width: 100%;
  flex-shrink: 10;
  border-radius: 999px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.35);
}
.stories-slider-pagination-bullet span {
  position: absolute;
  background: #fff;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  transform: translateX(-100%);
  transition-timing-function: linear;
}
.stories-slider-pagination-bullet-viewed span {
  transform: translateX(0%);
  transition-duration: 0ms !important;
}
.stories-slider-pagination-bullet + .stories-slider-pagination-bullet {
  margin-left: 2px;
}


.stories-slider-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  right: 10px;
  top: 18px;
  height: 32px;
  z-index: var(--stories-slider-z-actions);
  transition-duration: 200ms;
  user-select: none;
  -webkit-user-select: none;
}

.stories-slider-close-button {
  margin-left: 18px;
  width: 22px;
  height: 22px;
  appearance: none;
  border: none;
  outline: none;
  box-shadow: none;
  display: none!important;
  position: relative;
  cursor: pointer;
  padding: 0;
  background: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  user-select: none;
  -webkit-user-select: none;
}
.stories-slider-close-button::before, .stories-slider-close-button::after {
  content: "";
  width: 125%;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.35);
}
.stories-slider-close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.stories-slider-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.stories-slider-close-button:active {
  opacity: 0.55;
}

.stories-slider-content {
  width: 100%;
  height: 100%;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  flex-direction: column;
}
.stories-slider-content .buttons{
  display:flex;
  flex-direction: column;
  gap:20px;
  position:absolute;
  z-index:9999;
  bottom:20px;
  width:100%;
}
.stories-slider-content .buttons a.stories-link{
  text-align: center;
}
.stories-slider-content > img,
.stories-slider-content > picture,
.stories-slider-content > picture img,
.stories-slider-content > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: none;
  outline: none;
  background: none;
  background-color: transparent;
}
.stories-slider-content > img {
  object-fit: cover;
}
.stories-slider-content > video {
  object-fit: contain;
}

.bottom-block__storis {
  position: fixed;
  width: 100%;
  background: #FFFFFF;
  z-index: 999999;
  bottom: -100vh;
  left: 0;
  padding: 20px;
  transition: .3s ease;
}

.bottom-block__storis.active {
  bottom: 0;
}

.bottom-block__storis .link-t {
  font-family: 'Unbounded';
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #282828;
  left: 0;
  right: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bottom-block__storis .link-t svg{
  margin-left: 2px;
}

.bottom-block__storis .grid {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  /*gap: 10px;*/
  /*grid-template-columns: repeat(auto-fill,minmax(19%,1fr));*/
  grid-template-columns: repeat(auto-fill, 270px);
}

@media (max-width: 568px) {
  .bottom-block__storis .grid {
    justify-content: left;
    overflow-x: auto;
  }
  .bottom-block__storis .grid::-webkit-scrollbar {
    display: none;
  }
  .stories-slider .swiper-slide{
    width:100%;
    max-width:100%;
    height:100%;
    margin: auto;
  }
  .stories-slider .swiper-slide .swiper{
    margin:0;
    padding:0;
  }
}

.bottom-block__storis .grid .catalog-item {
  width: 270px;
  margin: 0 5px;
  min-width: 190px;
}

.bottom-block__storis-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.bottom-block__storis-bg.active {
  opacity: 1;
  visibility: visible;
  pointer-events: inherit;
  cursor: pointer;
}

.stories-slider-content .buttons .link-b {
  font-family: 'Unbounded';
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #FFFFFF;
  left: 0;
  right: 0;
  margin: auto;
  transition: .9s ease;
  cursor: pointer;
}
.stories-slider-content .buttons .link-b svg{
  height:24px;
  width:24px;
}

.storis-slide-container .top {
  position: absolute;
  top: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  z-index: 2;
}
.storis-slide-container .top .image {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  margin-right: 5px;
  background: #FFFFFF;
  margin-right: 10px;
}
.storis-slide-container .top .image img {
  padding: 2px;
  object-fit: cover;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
}
.storis-slide-container .top p {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  margin-bottom: 2px;
}
.storis-slide-container .top span {
  color: #FFFFFF;
  opacity: 0.5;
  font-size: 12px;
  line-height: 15px;
}

.stories-slider .swiper-button-prev {
  left: 22%;
}

.stories-slider .swiper-button-next {
  right: 22%;
}

.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
  opacity: 0;
}


.stories-wrapper-close-button {
  width: 22px;
  height: 22px;
  appearance: none;
  border: none;
  outline: none;
  box-shadow: none;
  display: block;
  position: fixed;
  cursor: pointer;
  padding: 0;
  background: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  user-select: none;
  -webkit-user-select: none;
  right:20px;
  top:20px;
  z-index:99999;
}
.stories-wrapper-close-button::before, .stories-wrapper-close-button::after {
  content: "";
  width: 125%;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.35);
}
.stories-wrapper-close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.stories-wrapper-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
@media (max-width: 568px) {
  .block-stories{
    justify-content: flex-start;
  }
}