/* slider component — SCOPED rules only.
   Global reset / body / .container live in ../_preview.css (standalone preview ONLY).
   In a project, base.css owns the global frame — do NOT reintroduce them here. */




.video-wrapper {
  position: relative;
  overflow: hidden;
      margin-left: auto;
    margin-right: auto;

}

.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  object-fit: cover;
  /* object-position: center bottom; */
  object-position: 50% 80%;
}
/* (demo .desktop-only/.mobile-only + .container gutter removed → ../_preview.css) */
/*Slider*/

.slider-container {
    margin-top: 60px;
}
.title {
font-weight: 500;
font-size: 24px;
line-height: 1.1;
letter-spacing: -1px;
text-align: center;
vertical-align: middle;
color: #2C2C2C;
}
.slide-logo {
position: absolute;
top: 10px;
left: 10px;

}
.slides-blocks {
    margin-top: 20px;
    display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 10px;

  /* AUTO, not smooth. CSS-level `scroll-behavior: smooth` is what fights mandatory snap:
     a programmatic scrollBy/scrollTo animates, the snap re-targets mid-animation, and the
     scroller reads back at its old position — the prev/next buttons then look dead. The JS
     passes `behavior: 'smooth'` on each call, so the animation is not lost.
     The historical work-around for that was to switch SNAP off per variant. That kills the
     wrong one of the two: without snap a cursor drag stops wherever it is released and leaves
     a slide half-shown. Measured on nooa-landing 2026-08-02 — with `auto` here, mandatory snap
     and one-slide button steps coexist: a drag released at 1.4 slides settled exactly on
     slide 1, and the button landed on a snap point. */
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slides-blocks.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.slides-wrapper { position: relative; }
.slide-wrapper {
width: 281px;
height: 400px;
border-radius: 20px;
position: relative;
margin-left: 0;
margin-right: 0;

flex: 0 0 auto;
scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
}
.slide-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.slide-image-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  color: #fff;
}
.slide-image-text p {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
}
.slides-blocks::-webkit-scrollbar {
  display: none; /* приховати скрол */
}
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  pointer-events: none;
}
.slides-wrapper.slide-no-arrows .carousel-controls,
.slides-blocks.slide-no-arrows + .carousel-controls {
  display: none;
}

.carousel-btn {
     display: flex;
  align-items: center;
  justify-content: center;
  background: #DED6D8;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.2s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}
.carousel-btn img {
  width: 9px;
  height: 15px;
}
.carousel-btn.prev { left: 30px; }
.carousel-btn.next { right: 30px; }
.carousel-controls .carousel-btn:disabled { display: none; }

.carousel-btn:hover {
  background: #cfc7c9;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 36px;
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: .3s;
}
@media (min-width: 1440px) {  
.slider-container {
    margin-top: 150px;
}
.slide-wrapper {
    /* flex: 1; */
    width: 425px;
    height: 637px;
}
.slide-image-text p {
    font-size: 20px;
}
.slides-blocks {
    margin-top: 50px;
}
.title {
    font-size: 58px;
}




}

