.cm45-ca,
.cm45-ca * {
  box-sizing: border-box;
}

.cm45-ca {
  position: relative;
  width: 100%;
  min-height: var(--cm45-height-desktop, 540px);
  overflow: hidden;
  background: linear-gradient(180deg, #f2f5f0 0%, #ffffff 50%, #eef4ec 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.cm45-ca__viewport {
  position: relative;
  min-height: inherit;
}

.cm45-ca__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--cm45-transition-speed, 800ms) ease;
}

.cm45-ca__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cm45-ca__slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: var(--cm45-image-fit, contain);
  object-position: center;
  background: #f5f7f2;
}

.cm45-ca__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.42));
}

.cm45-ca__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: 720px;
  color: #fff;
}

.cm45-ca__subtitle {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cm45-ca__title {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.05;
}

.cm45-ca__description {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
}

.cm45-ca__description p {
  margin: 0 0 12px;
}

.cm45-ca__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #2f6b2f;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.cm45-ca__button:hover,
.cm45-ca__button:focus {
  background: #285a28;
  color: #fff;
}

.cm45-ca__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #1e3320;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transform: translateY(-50%);
}

.cm45-ca__arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.cm45-ca__arrow-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.cm45-ca__arrow--prev {
  left: 16px;
}

.cm45-ca__arrow--next {
  right: 16px;
}

.cm45-ca__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.cm45-ca__dot {
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 107, 47, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cm45-ca__dot.is-active {
  background: #2f6b2f;
  transform: scale(1.15);
}

.cm45-ca-empty {
  padding: 20px;
  border: 1px dashed #c7d2c8;
  background: #f8faf8;
}

@media (max-width: 980px) {
  .cm45-ca {
    min-height: var(--cm45-height-tablet, 420px);
  }

  .cm45-ca__title {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .cm45-ca {
    min-height: var(--cm45-height-mobile, 320px);
  }

  .cm45-ca__slide {
    padding: 12px;
  }

  .cm45-ca__caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .cm45-ca__title {
    font-size: 24px;
  }

  .cm45-ca__description {
    font-size: 14px;
  }

  .cm45-ca__arrow {
    width: 40px;
    height: 40px;
  }

  .cm45-ca__dots {
    bottom: 12px;
    gap: 8px;
    padding: 7px 10px;
  }
}
