/**
 * CPO Page Styles
 * Video Modal + Success Stories Slider
 */

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.logos-carousel::before {
    left: 0;
    background: linear-gradient(to right, #f1f3f500 0%, rgba(241, 243, 245, 0) 100%);
}

.logos-carousel::after {
    right: 0;
    background: linear-gradient(to right, #f1f3f500 0%, rgba(241, 243, 245, 0) 100%);
}
.video-modal--open {
  display: flex;
}

.video-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1;
  cursor: pointer;
}

.video-modal__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.video-modal__close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  padding: 0;
  z-index: 3;
}

.video-modal__close:hover {
  transform: scale(1.1);
}

.video-modal__close svg {
  width: 24px;
  height: 24px;
}

.video-modal__content {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background-color: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.video-modal__player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
}

a.btn.btn--filled.btn--lg {
    align-self: flex-start;
}

/* Responsive */
@media (max-width: 768px) {
  .video-modal {
    padding: 10px;
  }

  .video-modal__close {
    top: -40px;
    width: 32px;
    height: 32px;
  }

  .video-modal__close svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   SUCCESS STORIES SLIDER
   ============================================ */

/* Stories Slider */
.success-stories__slider {
  margin-bottom: 40px;
  overflow: hidden;
}

.success-stories__track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

/* Story Card */
.story-card {
  flex-shrink: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  background-color: var(--color-gray-95);
  transition: all var(--transition-fast);
}

/* Active Card (большая) */
.story-card--active {
  flex: 1;
  min-width: 74%;
}

.story-card--active .story-card__image {
  width: 265px;
  height: 100%;
  position: relative;
}

.story-card--active .story-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(58, 58, 58, 0) 0%, rgb(58, 58, 58) 100%);
  pointer-events: none;
}

.story-card--active .story-card__image-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card--active .story-card__image-content {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-card--active .story-card__content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Preview Card (маленька) */
.story-card--preview {
  width: 265px;
  cursor: pointer;
  flex-direction: column;
  position: relative;
  min-height: 400px;
}

.story-card--preview .story-card__image {
  position: absolute;
  inset: 0;
}

.story-card--preview .story-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(58, 58, 58, 0) 0%, rgb(58, 58, 58) 100%);
  pointer-events: none;
}

.story-card--preview .story-card__image-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card--preview .story-card__preview-content {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-card--preview .story-card__arrow {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-green-50);
  background-color: var(--color-gray-95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-20);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}

.story-card--preview:hover .story-card__arrow {
  background: linear-gradient(90deg, rgba(61, 208, 120, 0.2) 0%, rgba(61, 208, 120, 0.2) 100%), var(--color-gray-95);
}

/* Card Elements */
.story-card__badge {
  font-size: var(--h4-size);
  font-weight: var(--font-bold);
  line-height: var(--h4-line-height);
  color: var(--color-green-50);
  margin: 0;
}

.story-card__heading {
  font-size: var(--h4-size);
  font-weight: var(--font-semibold);
  line-height: var(--h4-line-height);
  color: var(--color-white);
  margin: 0;
}

.story-card--active .story-card__heading {
  color: var(--color-white);
}

.story-card__sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-card__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-card__section--result {
  background-color: var(--color-white);
  padding: 20px;
  border-radius: var(--radius-lg);
}

.story-card__section-title {
  font-size: var(--body-size);
  font-weight: var(--font-medium);
  line-height: var(--body-line-height);
  color: var(--color-gray-20);
  margin: 0;
}

.story-card__section--result .story-card__section-title {
  color: var(--color-green-40);
}

.story-card__text {
  font-size: var(--body-size);
  font-weight: var(--font-regular);
  line-height: var(--body-line-height);
  color: var(--color-gray-20);
  margin: 0;
}

/* Dots Navigation */
.success-stories__dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 40px;
}

/* ============================================
   RESPONSIVE - SUCCESS STORIES
   ============================================ */

@media (max-width: 1024px) {
  .story-card--active {
    min-width: 500px;
  }

  .story-card--preview {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .success-stories__track {
    flex-direction: column;
    gap: 20px;
  }

  .story-card--active {
    flex-direction: column;
    min-width: 100%;
  }

  .story-card--active .story-card__image {
    width: 100%;
    height: 200px;
  }

  .story-card--active .story-card__content {
    padding: 20px;
    gap: 16px;
  }

  .story-card--preview {
    width: 100%;
    min-height: 200px;
  }

  .story-card--preview .story-card__image {
    height: 200px;
  }

  .story-card--preview .story-card__preview-content {
    top: 20px;
    left: 20px;
    right: 20px;
  }

  .story-card--active .story-card__image-content {
    top: 20px;
    left: 20px;
    right: 20px;
  }

  .story-card--preview .story-card__arrow {
    bottom: 20px;
    right: 20px;
  }

  .success-stories__dots {
    margin-bottom: 30px;
  }
}
