.advantages {
  min-height: 70vh;
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 120px;
  background: #ffffff;
  background-repeat: no-repeat;
  background-size: cover;
}

.advantages h2 {
  font-size: 3rem;
  text-align: center;
  margin: 0px auto;
  white-space: nowrap;
  z-index: 2;
  font-family: "Proxima Nova", sans-serif !important;
  font-optical-sizing: auto !important;
  font-weight: 800 !important;
  font-style: normal !important;
}

.advantages-particle {
  position: absolute;
  top: 30%;
  left: 5%;
}

.advantages__row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  justify-content: center;
  margin: 0 2px;
  box-sizing: border-box;
  position: relative;
}

.advantages__wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 240px;
}

.advantages__row-item:first-child {
  background-color: #363cb8;
  color: #ffffff;
}

.advantages__row-item img {
  height: 50px;
  width: 50px;
}

.advantages__row-item {
  text-align: center;
  color: #000000;
  display: flex;
  background-color: #dfeafc;
  flex-direction: column;
  padding: 8px;
  gap: 16px;
  height: 226px;
  overflow: hidden;
  width: 100%;
  max-width: 256px;
  border-radius: 16px;
  font-size: 1rem;
  font-family: "Montserrat", sans-serif !important;
  font-optical-sizing: auto !important;
  font-weight: 400 !important;
  font-style: normal !important;
  transition: transform 0.5s ease, opacity 0.5s ease;
  position: relative;
}

.advantages__row-item:hover {
  transform: translateY(-15%);
  height: 270px;
  z-index: 1;
  transition: all 0.3s ease;
}

.advantages__row-item:hover .advantages__row-button {
  display: block;
  margin-top: 30px;
  transition: all 0.5s ease;
  scale: 0.9;
}

.advantages__row-item:hover img {
  scale: 1.2;
  margin-left: 10px;
  transition: all 1s ease;
}

@media (max-width: 1024px) {
  .advantages h2 {
    font-size: 2.5rem;
  }
  .advantages__wrapper {
    padding: 0px 16px;
    box-sizing: border-box;
    max-width: 100vw;
    height: fit-content;
    max-height: fit-content;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .advantages__row {
    width: fit-content;
  }
  .advantages__row-item {
    min-width: 256px;
    min-height: 312px;
    box-sizing: border-box;
  }
  .advantages-particle {
    top: 20%;
  }
}

@media (min-width: 1024px) {
  .advantages__row-button {
    display: none;
  }
}

@media (max-width: 768px) {
  .advantages h2 {
    font-size: 2.5rem;
    white-space: wrap;
  }
}

@media (max-width: 468px) {
  .advantages h2 {
    font-size: 1.6rem;
  }
}
