.modules-section {
  padding: 80px 20px;
  background-color: #f9faff;
}

.modules-section--control {
  position: relative;
  background: #ebf0f8;
  overflow: hidden;
}

.modules-header {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 24px;
}

.modules-header__blue {
  color: #045ad7;
}

.modules-container {
  max-width: 1100px;
  margin: 0 auto;
}

.modules-swiper-mobile {
  display: none;
}

.modules-row {
  display: grid;
  margin-bottom: 24px;
}

.modules-row--wide {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.modules-row--narrow {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.module-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  text-align: left;
  border-radius: 10px;
  border: 1px solid #ebf0f8;
  background-color: #ebf0f8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);

  /* word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto; */
}

.module-card--light {
  background-color: #fff;
}

.module-card--wide {
  height: 165px;
}

.module-card--narrow {
  height: 210px;
}

.module-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: #ebf0f8;
  border-radius: 10px;
}

.module-icon-wrapper--light {
  background-color: #fff;
}

.module-card h4 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 23px;
}

.module-card p {
  color: #111;
  font-size: 16px;
  font-weight: 400;
}

.module-icon {
  width: 32px;
  height: 32px;
}

.module-status {
  align-self: flex-start;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 74px;
  height: 32px;
  border-radius: 34px;
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  color: #fff;
}

.module-status.alpha {
  background-color: #ffe081;
  color: #111;
}

.module-status.beta {
  background-color: #3874cb;
}

.module-status.planned {
  background-color: #d9d9d9;
  color: #111;
}

.modules-info {
  margin-top: 80px;
  padding: 0 16px;
  text-align: center;
}

.modules-info__title {
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 400;
  line-height: 23px;
  color: #111;
}

.modules-info__box {
  max-width: 600px;
  padding: 16px 24px;
  margin: 0 auto 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  border: 1px solid #3874cb;
  border-radius: 12px;
  color: #111;
  background-color: #fff;
}

.modules-info__blue-text {
  color: #3874cb;
  font-weight: 600;
}

.modules-info__btn {
  padding: 12px 32px;
  margin-bottom: 16px;
  background: #045ad7;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.modules-info__note {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #111;
}

.modules-elipse {
  position: absolute;
  top: 0;
  left: 0;
  width: 654px;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.modules-elipse img {
  display: block;
  width: 100%;
  height: 100%;
}

.modules-container--control {
  position: relative;
  z-index: 1;
}

/* modile swipe */
/* Responsive tweaks */
@media (max-width: 996px) {
  .modules-section {
    padding: 40px 20px;
  }

  .modules-row {
    display: none;
  }

  .module-card {
    width: auto;
    height: auto;
    padding: 16px;
  }

  .module-card h3 {
    font-size: 18px;
  }

  .module-card p {
    font-size: 14px;
  }

  /* swiper блок */
  .modules-swiper-mobile {
    display: block;
  }

  .modules-swiper-mobile .swiper-wrapper {
    display: flex;
  }

  .modules-swiper-mobile .swiper-slide {
    flex: 0 0 auto;
    display: flex;
    width: 280px;
    height: 160px;
    margin-right: 16px;
  }

  .modules-swiper-mobile .swiper-pagination {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: fit-content !important;
    height: 26px;
    margin: 16px auto 0;
    padding: 0 12px;
    border-radius: 26px;
    background-color: #ebf0f8;
  }

  .modules-swiper-mobile .second-pagination {
    background: #fff;
  }

  .modules-swiper-mobile .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }

  .first-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 1;
  }

  .second-pagination .swiper-pagination-bullet {
    background: #ebf0f8;
    opacity: 1;
  }

  .modules-swiper-mobile .swiper-pagination-bullet-active {
    background: #007aff;
  }

  .modules-info {
    margin-top: 46px;
  }

  .modules-info__title {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 100%;
  }
}
