.safety {
  display: flex;
  flex-direction: column;
  padding: 48px 0 58px;
  background: #f7f7f7;
  width: 100%;
  overflow: hidden;
}

.safety__title {
  order: 1;
  color: #242728;
  font-size: 40px;
  line-height: 100%;
  font-weight: 600;
  text-align: center;
}

.safety__tabs-wrapper {
  order: 2;
  margin: 48px auto;
  display: flex;
  justify-content: center;
  width: fit-content;
  border-radius: 48px;
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.safety__active-background {
  left: 0;
  position: absolute;
  height: 100%;
  width: 100%;
  background: #242728;
  border-radius: 48px;
  z-index: 0;
  box-shadow: inset 0 0 0 1px #242728, 0 0 0 1px #242728;
}

.safety__tab-item {
  position: relative;
  transition: all 0.3s ease;
  transform: translate(0);
  cursor: pointer;
  z-index: 1;
  line-height: 48px;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
}

.safety__tab-item--active {
  border-radius: 48px;
}

.safety__tab-item--active .safety__tab-describe {
  color: #fff;
}

.safety__tab-describe {
  display: block;
  color: #242728;
  letter-spacing: 1.2px;
  line-height: 16px;
  font-size: 12px;
  font-weight: 700;
  padding: 16px 32px;
}

.safety__swiper-container {
  order: 3;
  width: 100%;
  position: relative;
}

.safety__swiper-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}

.safety__slide {
  width: 100%;
}

.safety__figure {
  position: relative;
  border-radius: 32px;
  margin: 0;
}

.safety__image {
  display: block;
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: 32px;
}

.safety__mask {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.78) 100%);
}

.safety__desc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  max-width: 900px;
  margin-inline: auto;
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  color: #fff;
  padding: 0 48px 30px;
}

.safety__control-wrap {
  display: none;
}

.safety__disclaimer {
  order: 4;
  margin: 16px auto 0;
  max-width: 900px;
  padding: 0 48px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  color: #6b6f72;
}

@media (max-width: 767px) {
  .safety {
    padding: 64px 0 58px;
    overflow-x: hidden;
  }

  .safety__title {
    order: 1;
    margin-bottom: 48px;
  }

  .safety__swiper-container {
    order: 2;
  }

  .safety__tabs-wrapper {
    order: 3;
    margin: 24px 0 56px;
    width: 100%;
    padding: 0 16px 8px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .safety__tab-item {
    height: 64px;
    line-height: 64px;
  }

  .safety__tab-describe {
    padding: 12px 24px;
    line-height: 20px;
  }

  .safety__image {
    height: auto;
    aspect-ratio: 1;
    border-radius: 24px;
  }

  .safety__figure {
    border-radius: 24px;
  }

  .safety__mask {
    border-radius: 24px;
  }

  .safety__desc {
    position: static;
    margin-top: 32px;
    padding: 0;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    color: #000;
    text-align: left;
  }

  .safety__disclaimer {
    padding: 0 16px;
  }

  .safety__control-wrap {
    display: flex;
    position: absolute;
    bottom: -166px;
    left: 50%;
    transform: translateX(-50%);
    height: 56px;
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.15);
    justify-content: space-between;
    align-items: center;
    padding: 1px 4px;
    width: 184px;
    z-index: 2;
  }

  .safety__control-wrap--fixed {
    position: fixed;
    bottom: 88px;
  }

  .safety__arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    backdrop-filter: blur(20px);
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    padding: 0;
    opacity: 0.4;
  }

  .safety__pagination {
    display: flex;
    gap: 8px;
    padding: 0 16px;
  }

  .safety__pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background: rgb(92, 96, 106);
    display: block;
  }

  .safety__pagination-bullet--active {
    background: rgb(245, 247, 250);
    width: 16px;
  }
}
