.cc-slider {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  height: 520px;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #07131d;
  isolation: isolate;
}

.cc-slider::after,
.cc-slider::before {
  content: "";
  position: absolute;
  transform: rotate(15deg);
  pointer-events: none;
  z-index: 1;
  animation: ccMoveLine ease-in-out infinite;
}

.cc-slider::after {
  top: -20%;
  left: 30%;
  width: 120px;
  height: 140%;
  background: linear-gradient(180deg, rgba(0, 39, 81, .15), rgba(0, 39, 81, .35), rgba(0, 39, 81, .15));
  filter: blur(25px);
  opacity: .6;
  animation-duration: 12s;
}

.cc-slider::before {
  top: -30%;
  left: 60%;
  width: 80px;
  height: 160%;
  background: linear-gradient(180deg, rgba(0, 39, 81, .1), rgba(0, 39, 81, .25), transparent);
  filter: blur(20px);
  opacity: .5;
  animation-duration: 14s;
}

@keyframes ccMoveLine {
  0% { transform: rotate(15deg) translateY(-40px); }
  50% { transform: rotate(15deg) translateY(40px); }
  100% { transform: rotate(15deg) translateY(-40px); }
}

.cc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.22, 1, .36, 1);
}

.cc-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  transform: scale(1);
}

.cc-slide a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.cc-media {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.015);
  will-change: transform;
}

.cc-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) blur(5px) saturate(.85);
  transition: filter 1.5s ease;
}

.cc-slide.active .cc-media {
  animation: ccKenBurnsIn 20s ease-out both;
}

.cc-slide.active img {
  filter: grayscale(0) blur(0) saturate(1.05);
}

.cc-slide:nth-child(3n + 1).active .cc-media {
  animation-name: ccKenBurnsIn;
}

.cc-slide:nth-child(3n + 2).active .cc-media {
  animation-name: ccKenBurnsInRight;
}

.cc-slide:nth-child(3n).active .cc-media {
  animation-name: ccKenBurnsInTop;
}

.cc-slider .cc-slide a:hover img,
.cc-slider .cc-slide a:focus img {
  transform: none !important;
}

@keyframes ccKenBurnsIn {
  0% {
    transform: scale(1.015) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.075) translate3d(-.7%, -.5%, 0);
  }
}

@keyframes ccKenBurnsInRight {
  0% {
    transform: scale(1.015) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.07) translate3d(.8%, -.35%, 0);
  }
}

@keyframes ccKenBurnsInTop {
  0% {
    transform: scale(1.015) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.072) translate3d(-.35%, .75%, 0);
  }
}

.cc-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 17, .18), rgba(5, 11, 17, .72)),
    linear-gradient(90deg, rgba(3, 22, 39, .78), rgba(3, 22, 39, .38) 42%, rgba(3, 22, 39, .08) 75%);
}

.cc-content {
  position: absolute;
  top: 50%;
  left: 6%;
  width: 460px;
  max-width: 90%;
  padding: 28px 30px 30px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(8, 19, 29, .68), rgba(8, 19, 29, .42)),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px) saturate(1.2);
  transform: translate3d(-14px, 36px, 0);
  opacity: 0;
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
  z-index: 2;
}

.cc-slide.active .cc-content {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}

.cc-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background: linear-gradient(90deg, #002751, #00C08B);
  z-index: 3;
}

.cc-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 192, 139, .45);
  border-radius: 4px;
  background: rgba(0, 39, 81, .52);
  color: #b8fff0;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateY(16px);
  opacity: 0;
  transition: .6s;
}

.cc-title {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 750;
  color: #f6fbff;
  margin-bottom: 12px;
  transform: translateY(20px);
  opacity: 0;
  transition: .6s;
}

.cc-text {
  font-size: 13px;
  color: rgba(255, 255, 255, .88);
  line-height: 1.55;
  transform: translateY(20px);
  opacity: 0;
  transition: .6s;
}

.cc-text p {
  margin: 0 0 8px;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.cc-text p:last-child {
  margin-bottom: 0;
}

.cc-slide.active .cc-label {
  transform: translateY(0);
  opacity: 1;
  transition-delay: .1s;
}

.cc-slide.active .cc-title {
  transform: translateY(0);
  opacity: 1;
  transition-delay: .18s;
}

.cc-slide.active .cc-text {
  transform: translateY(0);
  opacity: 1;
  transition-delay: .35s;
}

.cc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(5, 13, 20, .45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  cursor: pointer;
  z-index: 4;
  font-size: 22px;
  line-height: 44px;
  padding: 0;
  backdrop-filter: blur(10px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.cc-arrow:hover,
.cc-arrow:focus {
  background: rgba(0, 192, 139, .88);
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
  transform: translateY(-50%) scale(1.04);
}

.cc-prev { left: 24px; }
.cc-next { right: 24px; }

.cc-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 5;
}

.cc-dot {
  position: relative;
  width: 42px;
  height: 3px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .38);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  opacity: .78;
  transition: opacity .25s ease, background .25s ease;
}

.cc-dot.active {
  width: 42px;
  background: #00C08B;
  opacity: 1;
  box-shadow: none;
}

.cc-slider-empty {
  padding: 16px;
  border: 1px solid #ddd;
  background: #fff8e5;
  color: #4a3b00;
}

@media (max-width: 768px) {
  .cc-slider { height: 520px; }
  .cc-content {
    top: auto;
    left: 18px;
    right: 18px;
    bottom: 58px;
    width: auto;
    max-width: none;
    padding: 20px 20px 22px;
  }
  .cc-slide.active .cc-content {
    transform: translate3d(0, 0, 0);
  }
  .cc-title { font-size: 21px; line-height: 1.08; }
  .cc-label { font-size: 9px; }
  .cc-text { font-size: 12.5px; }
  .cc-arrow { display: none; }
  .cc-dots { bottom: 24px; width: calc(100% - 36px); justify-content: center; }
  .cc-dot { width: 30px; }
  .cc-dot.active { width: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-slider::after,
  .cc-slider::before,
  .cc-slide.active .cc-media {
    animation: none;
  }

  .cc-slide.active .cc-media {
    transform: scale(1.03);
  }
}
