/* 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;

  /* A HORIZONTAL carousel must not scroll vertically. Declaring only `overflow-x` does not say
     that: CSS computes a `visible` other-axis to `auto` whenever one axis is not visible, so
     every `.slides-blocks` has silently been a VERTICAL scroller too — with the scrollbar hidden
     below, so nothing showed it.
     It matters because a text run's inline CONTENT AREA is taller than its line box whenever
     line-height is under the font's own metric, and that difference is real scrollable overflow.
     Oswald's is ~1.44em against the drawn `--lh-stat: 1.2`, so a stat numeral overhangs by
     ~0.12 x its font-size — and where such a numeral is the LAST thing in a card, the overhang
     lands past the track's bottom edge. Measured on this page, as shipped:
         results  5px at 375 (36px numeral) · 6px at 1520 (48px) — the user could drag the images
         mentors  1px at 1520
         cases    0 — same numerals, but a CTA sits below them and absorbs it
     `hidden`, NOT `clip`, and the difference is not a preference — I tried `clip` here first and
     MEASURED it computing to `hidden` anyway: CSS Overflow 3 says a `clip` axis computes to
     `hidden` when the other axis is neither `clip` nor `visible`, and this one must stay `auto`.
     `overflow-clip-margin` therefore never applies and was removed rather than left as decoration.
     What `hidden` costs: the overhang is now CLIPPED, not merely unscrollable — so it had to be
     shown that no INK lives in the clipped strip. Measured at 1520 (the worst case), per numeral,
     against the real font metrics rather than by eye:
         line box 57.6   content area 71 (ascent 57 + descent 14)   -> half-leading -6.7 each side
         baseline at 50.3 from the line box top
         actual INK descent 5px  ->  ink ends at 55.3, i.e. 2.3px INSIDE the line box
     Everything clipped is empty content area. The margin is thin and it SCALES with font-size, so
     a slider whose last row is text with real descenders (`у`, `р`, `g`) — whose ink descent runs
     ~0.21em, well past this 2.3px — must give that row its own bottom padding instead of relying
     on the accident that numerals sit high. */
  overflow-y: hidden;

  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;
}




}

