/* Слайдер главной (module: slider). Каждый слайд = обычный .hero из hero.css, здесь только лента, управление и h2 слайдов.
   Без JS виден первый слайд, управление скрыто (поведение в js/slider.js). */
.slider {
  position: relative;
  overflow: hidden;
}
.slides {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 0.7, 0.2, 1);
  will-change: transform;
}
.slider .slide {
  flex: 0 0 100%;
  min-width: 0;
  padding-bottom: 190px;
}
.slider:not(.js) .slide:not(:first-child) {
  display: none;
}
.slider .hero .wrap.noart {
  grid-template-columns: 1fr;
}
/* h2 слайдов 2 и 3 выглядят как h1 героя */
.hero h2.h1 {
  font-size: 50px;
  line-height: 1.05;
  max-width: 560px;
  font-weight: 800;
  margin: 18px 0 22px;
}
.hero h2.h1 em {
  font-style: normal;
  color: var(--red);
}

/* управление: стрелки по краям точек, по центру над подбором по росту */
.s-ctl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 124px;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
}
.slider.js .s-ctl {
  display: flex;
}
.s-ctl > * {
  pointer-events: auto;
}
.s-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.s-arrow svg {
  width: 20px;
  height: 20px;
}
.s-arrow:hover {
  background: var(--ink);
  color: #fff;
}
.s-arrow:focus-visible,
.s-dots button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.s-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.s-dots button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.s-dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #b9bdb7;
  transition: width 0.25s, background 0.25s;
}
.s-dots button[aria-current="true"]::before {
  width: 28px;
  background: var(--red);
}
@media (prefers-reduced-motion: reduce) {
  .slides,
  .s-dots button::before {
    transition: none;
  }
}
@media (max-width: 760px) {
  .slider .slide {
    padding-bottom: 168px;
  }
  .hero h2.h1 {
    font-size: 31px;
    margin: 12px 0 14px;
  }
  .s-ctl {
    bottom: 118px;
    gap: 10px;
  }
  .s-arrow {
    width: 40px;
    height: 40px;
  }
}
/* один слайд = обычный герой без управления */
.slider.single .slide {
  padding-bottom: 150px;
}
@media (max-width: 760px) {
  .slider.single .slide {
    padding-bottom: 118px;
  }
}
