/* Стили для карточки actBox */
#actBox {
  position: absolute;
  background: #161616 !important;
  border: none;
  padding: 0;
  border-radius: 12px;
  width: 340px;
  box-shadow: 0 2px 12px 0 #0008 !important;
  z-index: 10;
  overflow: hidden;
  color: #f1f1f1;
  font-family: Arial, sans-serif;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.12s ease-in-out, transform 0.12s ease-in-out, left 0.12s ease-in-out, top 0.12s ease-in-out;
  display: block;
  max-height: none;
  overflow-y: visible;
}
#actBox.actbox-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto;
}
#actBox.actbox-hiding {
  opacity: 0 !important;
  transform: translateY(10px) !important;
  pointer-events: none;
}
#actBox .actbox-img {
  display: block;
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  background: none;
  opacity: 1 !important;
  filter: none !important;
}
#actBox .actbox-header {
  background: #232323;
  padding: 8px 14px 6px 14px;
  /*border-radius: 0 0 12px 12px;*/
  font-size: 18px;
  font-weight: bold;
  color: #f1f1f1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
#actBox .actbox-title {
  font-size: 18px;
  font-weight: bold;
  color: #f1f1f1;
  margin-bottom: 2px;
}
#actBox .actbox-territory {
  font-size: 13px;
  color: #b8b8b8;
  font-weight: 400;
  /*margin-left: 2px;*/
}
#actBox .actbox-desc {
  padding: 12px 14px 12px 14px;
  font-size: 14px;
  color: #e0e0e0;
  background: none;
  line-height: 1.5;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 8px;
}
#actBox .actbox-desc::-webkit-scrollbar {
  width: 8px;
  background: #232323;
  border-radius: 8px;
}
#actBox .actbox-desc::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 8px;
}
#actBox .actbox-desc::-webkit-scrollbar-thumb:hover {
  background: #666;
}
#actBox .actbox-desc {
  scrollbar-width: thin;
  scrollbar-color: #444 #232323;
}
#actBox .actbox-btn {
  display: block;
  width: 93%;
  margin: 0 auto 16px auto;
  color: #f1f1f1;
  border: none;
  padding: 10px 0 10px 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  /* box-shadow: 0 2px 8px 0 #ff9800 !important; */
  opacity: 1 !important;
  filter: none !important;


  &:hover {
    filter: brightness(0.85) saturate(1.1);
    transform: scale(1.005);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.12);
    opacity: 1 !important;
    
    color: rgba(237, 231, 231);
  }
}

#actBox a,
#actBox a:visited {
  color: rgba(227,221,221,0.82);
}
.actbox-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 220px;
  background: #181818;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}
.actbox-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.actbox-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  border-radius: 12px 12px 0 0;
  background: #222;
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
}
.actbox-slider-img.prev,
.actbox-slider-img.current,
.actbox-slider-img.next {
  min-width: 100%;
  max-width: 100%;
}
/* Убираем старую анимацию дёргания */
.actbox-jump { animation: none !important; }
.actbox-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,18,8,0.85);
  border: none;
  color: #fff;
  width: 36px;
  height: 48px;
  font-size: 22px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.actbox-arrow-btn:hover {
  background: #b85c00;
}
.actbox-arrow-btn.left { left: 8px; }
.actbox-arrow-btn.right { right: 8px; }

.slider {
  position: relative;
}
.slider__container {
  overflow: hidden;
  width: 100%; /* или фиксированная ширина, если нужно */
  border-radius: 12px 12px 0 0;
  background: #181818;
}
.slider__items {
  display: flex;
  transition: transform 0.5s ease;
}
.slider__item {
  flex: 0 0 100%;
  max-width: 100%;
}
.picture {
  width: 100%;
  display: block;
  object-fit: cover;
}
.slider_disable-transition {
  transition: none !important;
}
.slider__item_active {
  z-index: 2;
}

.slider__control {
  position: absolute;
  top: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 50px;
  color: #fff;
  text-align: center;
  background: rgb(0 0 0 / 20%);
  border: none;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 10;
}
.slider__control[data-slide="prev"] { left: 0; }
.slider__control[data-slide="next"] { right: 0; }
.slider__control:hover,
.slider__control:focus {
  color: #fff;
  text-decoration: none;
  background: rgb(0 0 0 / 30%);
  outline: 0;
}
.slider__control::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: transparent no-repeat center center;
  background-size: 100% 100%;
}
.slider__control[data-slide="prev"]::before {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}
.slider__control[data-slide="next"]::before {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}
/* Соотношение сторон 2:1 */
.slider__items, .slider__item, .picture {
  aspect-ratio: 2/1;
}
@supports not (aspect-ratio: 2/1) {
  .slider__items, .slider__item, .picture {
    height: 170px;
    width: 340px;
  }
}
