.avc-cflow-section {
  width: 100%;
  background: var(--avc-bg, #fff);
  padding: var(--avc-pt, 60px) 0 var(--avc-pb, 35px);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.avc-cflow-section * {
  box-sizing: border-box;
}

.avc-cflow-inner {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  position: relative;
}

.avc-cflow-stage {
  width: 100%;
  height: calc(var(--avc-card-h, 500px) * var(--avc-active-scale, 1.13) + 58px);
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
  overflow: visible;
  outline: none;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.avc-cflow-slide {
  width: var(--avc-card-w, 300px);
  height: var(--avc-card-h, 500px);
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  opacity: 0;
  transform-origin: center center;
  transform-style: preserve-3d;
  transition:
    transform var(--avc-speed, 650ms) cubic-bezier(.16, 1, .3, 1),
    opacity var(--avc-speed, 650ms) cubic-bezier(.16, 1, .3, 1),
    filter var(--avc-speed, 650ms) cubic-bezier(.16, 1, .3, 1);
  will-change: transform, opacity;
}

.avc-cflow-card-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.avc-cflow-stage.is-dragging {
  cursor: grabbing;
}

.avc-cflow-stage.is-dragging .avc-cflow-slide {
  transition: none !important;
}

.avc-cflow-card {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--avc-radius, 18px);
  background: #f4f6f7;
  box-shadow: 0 18px 38px rgba(0, 0, 0, var(--avc-shadow-alpha, .16));
  transform: translateZ(0);
  user-select: none;
  -webkit-user-select: none;
}

.avc-cflow-card picture,
.avc-cflow-card img,
.avc-cflow-card video {
  width: 100%;
  height: 100%;
  display: block;
}

.avc-cflow-card img,
.avc-cflow-card video {
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.avc-cflow-slide.is-active .avc-cflow-card {
  box-shadow: 0 26px 50px rgba(0, 0, 0, calc(var(--avc-shadow-alpha, .16) + .04));
}

.avc-cflow-slide:not(.is-active) {
  filter: saturate(.96);
}

.avc-cflow-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 38px 18px 18px;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  pointer-events: none;
}

.avc-cflow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 36px;
  margin-top: 4px;
}

.avc-cflow-arrow {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--avc-accent, #11747e);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  line-height: 1;
  padding: 0;
  transition: transform .2s ease, opacity .2s ease;
}

.avc-cflow-arrow:hover,
.avc-cflow-arrow:focus-visible {
  transform: translateY(-1px);
  opacity: .82;
  outline: none;
}

.avc-cflow-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 24px;
}

.avc-cflow-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--avc-accent, #11747e) 42%, #ffffff);
  opacity: .65;
  padding: 0;
  cursor: pointer;
  transition: width .2s ease, height .2s ease, opacity .2s ease, background .2s ease, border .2s ease;
}

.avc-cflow-dot.is-active {
  width: 13px;
  height: 13px;
  background: transparent;
  border: 2px solid var(--avc-accent, #11747e);
  opacity: 1;
}

.avc-cflow-empty {
  padding: 16px;
  border-radius: 10px;
  background: #fff8e5;
  color: #5d4500;
  border: 1px solid #f1d48a;
}

@media (max-width: 767px) {
  .avc-cflow-section {
    padding-top: calc(var(--avc-pt, 60px) * .58);
    padding-bottom: calc(var(--avc-pb, 35px) * .75);
  }

  .avc-cflow-stage {
    height: calc(var(--avc-mobile-h, 375px) * var(--avc-active-scale, 1.13) + 45px);
  }

  .avc-cflow-slide {
    width: var(--avc-mobile-w, 220px);
    height: var(--avc-mobile-h, 375px);
  }

  .avc-cflow-caption {
    font-size: 13px;
    padding: 34px 15px 15px;
  }

  .avc-cflow-controls {
    gap: 14px;
  }

  .avc-cflow-arrow {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avc-cflow-slide,
  .avc-cflow-arrow,
  .avc-cflow-dot {
    transition: none !important;
  }
}
