/* === OCDbanner — современный стиль === */
:root{
  --ocd-bg: rgba(33,43,54,.34);
  --ocd-bg-strong: rgba(33,43,54,.55);
  --ocd-glass: rgba(33,43,54,.28);
  --ocd-text: #fff;
  --ocd-cta: #E53935;
  --ocd-cta-hover: #d3322f;
  --ocd-shadow: 0 10px 30px rgba(0,0,0,.16);
}

.ocdbanner{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ocd-shadow);
  max-height: 520px;            /* стандарт из OCDbanner */
  isolation: isolate;
}

.ocdbanner .splide__track{
  border-radius: inherit;
}

/* Слайды: картинка во всю ширину, фокус слева-центра, 950×370 как дефолт */
.ocdbanner .slide{
  position: relative;
  height: 370px;                /* стандартный размер баннера SmartOffice */
}
.ocdbanner .slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;            /* стандарт из OCDbanner */
  object-position: left center; /* focus area: left-center */
  display: block;
}

/* Лёгкий затемняющий градиент — чтобы текст читался даже без blur */
.ocdbanner .slide::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 55%);
  pointer-events: none;
}

/* Текстовая зона: «стекло», безопасная левая область */
.ocdbanner .caption{
  position: absolute;
  left: 24px; top: 24px;
  max-width: 850px;             /* «левая safe-zone ≈ 850px» по стандарту */
  padding: 14px 18px;
  color: var(--ocd-text);
  background: var(--ocd-glass);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.ocdbanner .caption h3{
  margin: 0 0 8px;
  line-height: 1.15;
  font-weight: 800;
  font-size: clamp(20px, 3vw, 34px);
  letter-spacing: .2px;
}
.ocdbanner .caption p{
  margin: 0 0 14px;
  font-size: clamp(14px, 1.4vw, 16px);
  opacity: .92;
}

/* Красная CTA-кнопка */
.ocdbanner .btn-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 10px;
  background: var(--ocd-cta);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(229,57,53,.28);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ocdbanner .btn-cta:hover{
  background: var(--ocd-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(229,57,53,.34);
}
.ocdbanner .btn-cta:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Стрелки Splide — минимализм + стекло */
.ocdbanner .splide__arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 46px; width: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--ocd-bg-strong);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  border: none;
  opacity: .95;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
  z-index: 3;
}
.ocdbanner .splide__arrow--prev{ left: 14px; }
.ocdbanner .splide__arrow--next{ right: 14px; }
.ocdbanner .splide__arrow:hover{ transform: translateY(-50%) scale(1.04); opacity: 1; }
.ocdbanner .splide__arrow svg{ height: 1.15em; width: 1.15em; fill: #fff; }

/* Пагинация-точки — аккуратные пилюли */
.ocdbanner .splide__pagination{
  position: absolute; bottom: 12px; left: 24px;
  display: flex; gap: 8px; z-index: 2;
}
.ocdbanner .splide__pagination__page{
  width: 26px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  transition: width .2s ease, background .2s ease;
}
.ocdbanner .splide__pagination__page.is-active{
  width: 42px;
  background: #fff;
}

/* Анимации появления текста на смене слайда */
.ocdbanner .caption{
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.ocdbanner .splide__slide.is-active .caption{
  opacity: 1; transform: translateY(0);
}

/* Адаптивность: не прячем слайдер, а делаем компактнее */
@media (max-width: 1024px){
  .ocdbanner .slide{ height: 320px; }
  .ocdbanner .caption{ left: 18px; top: 18px; padding: 12px 14px; }
}
@media (max-width: 786px){
  .ocdbanner{ border-radius: 10px; }
  .ocdbanner .slide{ height: 260px; }
  .ocdbanner .caption{
    left: 14px; right: 14px; top: auto; bottom: 14px;
    max-width: none;
    background: rgba(20, 24, 28, .38);
  }
  .ocdbanner .splide__arrow{ height: 40px; width: 40px; }
  .ocdbanner .splide__pagination{ left: 14px; bottom: 10px; }
}
@media (max-width: 420px){
  .ocdbanner .slide{ height: 220px; }
  .ocdbanner .caption h3{ font-size: 18px; }
  .ocdbanner .caption p{ font-size: 13px; }
}
