<!-- CSS стили (можно вынести в отдельный файл) -->

  /* Базовый сброс — только для виджета */
  .bx-widget-wrapper,
  .bx-widget-wrapper * {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    box-sizing: border-box;
  }

  .bx-widget-wrapper {
    font: 12px/14px Arial, sans-serif;
    color: #333;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    position: relative;
    z-index: 1000;
    position: fixed;
    bottom: 0;
    left: 0;
  }

  /* Слайдер */
  .bx-sw-slider {
    padding: 6px;
    width: 100%;
    max-width: 520px;
  }

  .bx-sw-slider::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(ellipse at center, rgba(129, 216, 208, 0.08) 0%, transparent 70%);
    border-radius: 20px;
    z-index: -1;
    animation: bx-pulseGlow 4s ease-in-out infinite;
  }

  @keyframes bx-pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
  }

  .bx-sw-slider__container {
    filter: drop-shadow(0px 6px 24px rgba(129, 216, 208, 0.2));
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(129, 216, 208, 0.15);
    overflow: hidden;
  }

  .bx-sw-slider__list {
    position: relative;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: #fff;
    min-height: 230px;
    touch-action: pan-y;
  }

  .bx-sw-slider__slide {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    will-change: transform, opacity;
    opacity: 0;
    transform: scale(0.9) translateX(20px);
  }

  .bx-sw-slider__slide:not(:first-child) {
    transform: scale(0.9) translateX(100%);
  }

  .bx-sw-slider__slide.-active {
    opacity: 1;
    transform: scale(1) translateX(0);
    position: relative;
  }

  /* Карточка — всегда горизонтальная (картинка слева, текст справа) */
  .bx-rpw-static {
    width: 100%;
    position: relative;
    display: inline-flex;
    flex-direction: row;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    min-height: 230px;
    background: #fff;
    background: var(--widget-background-color, #fff);
  }

  .bx-rpw-static__image {
    flex: 0 0 150px;
    width: 150px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    min-height: 230px;
    background-color: #eef3f6;
  }

  .bx-rpw-static__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 30%, rgba(129, 216, 208, 0.04));
  }

  .bx-rpw-static__content {
    flex: 1 1 auto;
    padding: 32px 28px 28px 32px;
    position: relative;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    gap: 8px;
  }

  .bx-rpw-static__content-title {
    font-weight: 700;
    line-height: 28px;
    font-size: 17px;
    color: #1a2a3a;
    letter-spacing: -0.2px;
    word-break: break-word;
  }
  .bx-rpw-static__content-title::before {
    content: '✦ ';
    color: #81D8D0;
    font-size: 14px;
    font-weight: 400;
  }

  .bx-rpw-static__content-text {
    opacity: 0.8;
    line-height: 24px;
    font-size: 13px;
    color: #4a5a6a;
    word-break: break-word;
  }

  .bx-rpw-static__content-description {
    opacity: 0.6;
    font-size: 11px;
    line-height: 18px;
    color: #7a8a9a;
    padding-left: 14px;
    border-left: 2.5px solid rgba(129, 216, 208, 0.3);
  }

  .bx-rpw-static__content-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    padding: 10px 32px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #81D8D0, #5ecfc6);
    background-color: #81D8D0;
    color: #1a2a3a;
    border-radius: 20px;
    border: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    align-self: flex-start;
    box-shadow: 0 2px 10px rgba(129, 216, 208, 0.2);
    gap: 8px;
    margin-top: 4px;
  }
  .bx-rpw-static__content-button::after {
    content: '→';
    font-size: 14px;
    transition: transform 0.3s ease;
    display: inline-block;
  }
  .bx-rpw-static__content-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(129, 216, 208, 0.3);
    background: linear-gradient(135deg, #8ddfd7, #4ECDC4);
  }
  .bx-rpw-static__content-button:hover::after {
    transform: translateX(5px);
  }

  .bx-rpw-static__close {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 6px;
    opacity: 0.3;
    color: #2c3e50;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid transparent;
  }
  .bx-rpw-static__close:hover {
    opacity: 1;
    background: rgba(129, 216, 208, 0.08);
    transform: rotate(90deg) scale(1.08);
    color: #81D8D0;
    border-color: rgba(129, 216, 208, 0.12);
  }
  .bx-rpw-static__close svg {
    width: 12px;
    height: 12px;
  }

  /* Бар */
  .bx-sw-slider__bar {
    display: flex;
    background: #f5f8fa;
    border-radius: 0 0 14px 14px;
    height: 48px;
    border-top: 2px solid rgba(129, 216, 208, 0.25);
    padding: 0 4px;
    position: relative;
  }

  .bx-sw-slider__bar-points {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 8px;
    gap: 14px;
  }

  .bx-sw-slider__point {
    width: 10px;
    height: 10px;
    background: #d5dce2;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid transparent;
  }
  .bx-sw-slider__point:hover {
    transform: scale(1.25);
    background: rgba(129, 216, 208, 0.4);
  }
  .bx-sw-slider__point.-active {
    background: #81D8D0;
    transform: scale(1.2);
    box-shadow: 0 0 16px rgba(129, 216, 208, 0.4);
    border-color: rgba(129, 216, 208, 0.2);
  }

  .bx-sw-slider__bar-arrow {
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #81D8D0;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: transparent;
  }
  .bx-sw-slider__bar-arrow:hover {
    color: #4ECDC4;
    background: rgba(129, 216, 208, 0.08);
    transform: scale(1.08);
  }
  .bx-sw-slider__bar-arrow.-right {
    transform: scale(-1);
  }
  .bx-sw-slider__bar-arrow.-right:hover {
    transform: scale(-1.08);
  }
  .bx-sw-slider__bar-arrow.-hide {
    opacity: 0;
    pointer-events: none;
  }
  .bx-sw-slider__bar-arrow svg {
    pointer-events: none;
    width: 22px;
    height: 18px;
  }

	@media (max-width: 768px) {
	.bx-rpw-static__image {
  flex: 0 0 100px;
  width: 100px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  min-height: 230px;
  background-color: #eef3f6;
}

.bx-rpw-static__content {
  flex: 1 1 auto;
  padding: 15px 15px 36px 15px;
  position: relative;
  color: #2c3e50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  gap: 8px;
}

		.bx-widget-wrapper{
			height: 220px;
			padding: 0;
		}

		.bx-sw-slider__container{
			height: 200px;
		}
}
[data-bx-slider],
.bx-sw-slider {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

[data-bx-slider].-visible,
.bx-sw-slider.-visible {
    opacity: 1;
    visibility: visible;
}
