.plan-module,
.plan-module *,
.plan-module *::before,
.plan-module *::after {
  box-sizing: border-box;
}

.plan-module {
  --content-width: 100%;
  --side-padding: 16px;
  --swiper-offset: 16px;
  --gap: 24px;
  --radius: 16px;
  --text-color: #2c2c2c;
  --green-surface: #dcebe1;
  --neutral-surface: #f9f9f9;
  --warm-surface: #fff5ec;
  --control-color: #2f6852;

  width: 100%;
  padding: 40px 16px;
  color: var(--text-color);
  background: #fff;
  overflow: hidden;
}

.plan-module__container {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
}

.plan-module__title {
  margin: 0;
  text-align: center;
  padding-bottom: 0rem;
}

.plan-module__swiper {
  width: 100%;
  max-width: 328px;
  margin-left: calc(-1 * var(--swiper-offset));
  padding-left: var(--swiper-offset);
  overflow: visible;
  box-sizing: border-box;
}

.plan-module__swiper .swiper-wrapper {
  align-items: stretch;
}

.plan-module__swiper .swiper-slide {
  width: 90%;
  height: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.plan-module__swiper .swiper-slide > .plan-card {
  flex: 1 1 auto;
  height: 100%;
}

.plan-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--gap);
  padding: 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--neutral-surface);
  box-shadow: none;
  overflow: hidden;
}


.plan-card--freedom {
  background: var(--warm-surface);
}

.plan-card--energy {
  background: var(--green-surface);
}

.plan-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card__title {
  margin: 0;
  text-align: left;
  padding-bottom: 0rem;
}

.plan-card__description {
  margin: 0;
  text-align: left;
}

.plan-card .plan-card__description {
  min-height: 66px;
}

.plan-card--freedom .plan-card__description {
  min-height: 44px;
}

.plan-card--energy .plan-card__description {
  min-height: 66px;
}

.plan-card__image {
  display: block;
  flex: 0 0 180px;
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
}

.carousel-group {
  --carousel-bg: #ffffff;
  --carousel-border: #c8d9d0;
  --carousel-icon: #2f6852;
  --carousel-hover-bg: #fffaf6;
  --carousel-hover-icon: #00402a;
  --carousel-dot-border: #2f6852;
  --carousel-dot-hover: #00402a;
  --carousel-dot-selected: #007f33;
  --carousel-disabled: #bfbfbf;
  --carousel-pressed-ring: #5bd38c;
  --carousel-focus: #007acb;

  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  height: 32px;
  padding: 0;
  margin: 0 auto;
  border: 0;
  background: transparent;
  overflow: visible;
}

.carousel-group,
.carousel-group * {
  box-sizing: border-box;
}

.carousel-group :where(.carousel-control, .carousel-dot) {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.carousel-group .carousel-control {
  width: 32px;
  height: 32px;
  border-radius: 100px;
  color: var(--carousel-icon);
  background: var(--carousel-bg);
  box-shadow: inset 0 0 0 1px var(--carousel-border);
  overflow: visible;
}

.carousel-group .carousel-control::after,
.carousel-group .carousel-control::before {
  display: none;
}

.carousel-control svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  pointer-events: none;
}

.carousel-group .carousel-control:where(:not(:disabled):hover) {
  color: var(--carousel-hover-icon);
  background: var(--carousel-hover-bg);
}

.carousel-group .carousel-control:where(:not(:disabled):active) {
  color: var(--carousel-hover-icon);
  background: var(--carousel-hover-bg);
  box-shadow:
    inset 0 0 0 1px var(--carousel-border),
    0 0 0 1px var(--carousel-pressed-ring);
}

.carousel-group .carousel-control:where(:not(:disabled):focus-visible) {
  color: var(--carousel-icon);
  background: var(--carousel-bg);
  outline: 3px solid var(--carousel-focus);
  outline-offset: 2px;
}

.carousel-group .carousel-control:disabled,
.carousel-group .carousel-control.swiper-button-disabled {
  color: var(--carousel-disabled);
  background: var(--carousel-bg);
  box-shadow: inset 0 0 0 1px var(--carousel-disabled);
  opacity: 1;
  cursor: default;
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  height: 32px;
  padding: 4px;
  border: 0;
  border-radius: 100px;
  background: var(--carousel-bg);
  box-shadow: inset 0 0 0 1px var(--carousel-border);
  overflow: visible;
}

.carousel-dots .swiper-pagination-bullet {
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
  margin: 0 !important;
  cursor: pointer;
  outline: none;
  box-shadow: none !important;
}

.carousel-dots .swiper-pagination-bullet::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border: 1px solid var(--carousel-dot-border);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

.carousel-dots .swiper-pagination-bullet::after {
  display: none !important;
}

.carousel-dots .swiper-pagination-bullet:where(:not(.swiper-pagination-bullet-active):hover)::before {
  border-color: var(--carousel-dot-hover);
}

.carousel-dots .swiper-pagination-bullet-active::before {
  width: 10px;
  height: 10px;
  border: 0;
  background: var(--carousel-dot-selected);
}

@media (min-width: 576px) {
  .plan-module {
    padding: 40px 42px;
  }

  .plan-module__swiper {
    width: 100%;
    max-width: 492px;
    overflow: visible !important;

  }
  .plan-module__swiper .swiper-slide {
    width: 304px;
  }
}

@media (min-width: 768px) {
  .plan-module {
    padding: 40px 48px;
  }

  .plan-module__swiper {
    width: 100%;
    max-width: 672px;
    overflow: visible !important;
  }
  
  .plan-module__swiper .swiper-slide {
    width: 304px;
  }
}

@media (min-width: 992px) {
   .carousel-group {
    display: none;
  }

  .plan-module {
    padding: 40px 82px;
    overflow: visible;
  }

  .plan-module__swiper {
    width: 100%;
    max-width: 828px;
  }

  .plan-module__swiper .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--gap);
    transform: none !important;
  }

  .plan-module__swiper .swiper-slide {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .plan-module__swiper .swiper-slide > .plan-card {
    flex: 1 1 auto;
    height: 100%;
  }

  .plan-card .plan-card__description {
    min-height: 88px;
  }

  .plan-card--freedom .plan-card__description {
    min-height: 66px;
  }

  .plan-card--energy .plan-card__description {
    min-height: 88px;
  }
}

/* 1200 px */
@media (min-width: 1200px) {
  .plan-module {
    padding: 40px 102px;
    overflow: visible;
  }

  .plan-module__swiper {
    width: 100%;
    max-width: 996px;
  }
  
  .plan-card .plan-card__description {
    min-height: 66px;
  }

  .plan-card--freedom .plan-card__description {
    min-height: 44px;
  }

  .plan-card--energy .plan-card__description {
    min-height: 66px;
  }
}

/* 1920 px */
@media (min-width: 1920px) {
   .plan-module {
    padding: 40px 324px;
    overflow: visible;
  }

  .plan-module__swiper {
    width: 100%;
    max-width: 1272px;
  }

  .plan-card .plan-card__description {
    min-height: 44px;
  }
}
