/* mod_csbanners — слайдер баннеров. Размер: 100% ширины и высоты родителя. */
.csb {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}
.csb__viewport,
.csb__track {
  width: 100%;
  height: 100%;
}
.csb__slide {
  width: 100%;
  height: 100%;
}
.csb__link {
  display: block;
  width: 100%;
  height: 100%;
}
.csb__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: var(--csb-fit, cover);
  -webkit-user-drag: none;
}

/* Сдвиг */
.csb--slide .csb__track {
  display: flex;
  transition: transform var(--csb-speed, 600ms) ease;
  will-change: transform;
}
.csb--slide .csb__slide {
  flex: 0 0 100%;
}

/* Плавное появление */
.csb--fade .csb__track {
  position: relative;
}
.csb--fade .csb__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--csb-speed, 600ms) ease, visibility 0s linear var(--csb-speed, 600ms);
}
.csb--fade .csb__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--csb-speed, 600ms) ease, visibility 0s;
  z-index: 1;
}
.csb.is-dragging .csb__track {
  transition: none;
}

/* Стрелки */
.csb__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: var(--csb-accent, #f39200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  opacity: .85;
  transition: opacity .2s, background .2s, color .2s;
}
.csb__arrow:hover,
.csb__arrow:focus-visible {
  opacity: 1;
  background: var(--csb-accent, #f39200);
  color: #fff;
}
.csb__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.csb__arrow--prev { left: 12px; }
.csb__arrow--next { right: 12px; }

/* Точки */
.csb__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.csb__dot {
  pointer-events: auto;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.csb__dot.is-active {
  background: var(--csb-accent, #f39200);
  border-color: var(--csb-accent, #f39200);
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .csb__arrow { width: 34px; height: 34px; margin-top: -17px; }
  .csb__arrow--prev { left: 6px; }
  .csb__arrow--next { right: 6px; }
  .csb__dots { bottom: 8px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .csb--slide .csb__track,
  .csb--fade .csb__slide { transition: none; }
}
