.section-tabs {
  padding-bottom: 80px;
}

.section-tabs__ {
  padding-bottom: 240px;
}

.section-tabs__title {
  padding-bottom: 32px;
}

.section-tabs__text {
  padding-bottom: 64px;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.tab-all {
  display: flex;
  gap: 16px;
}

.tab {
  position: relative;
  width: 16.66666%;
}

.tablinks svg {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-46%, -45%);
  width: 13px;
  height: auto;
  z-index: 10;
}

.tablinks svg path {
  stroke: #91e22f;
  transition: stroke 0.3s ease-in-out;
}

.tablinks:hover svg path,
.tablinks.active svg path {
  stroke: #fff;
}

.tablinks::before {
  content: "";
  position: absolute;
  z-index: 10;
  bottom: 0;
  right: 50%;
  width: 32px;
  height: 32px;
  background-color: #f0faff;
  border: 2px solid #f0faff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(50%, 50%);
  transition: border 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.tablinks:hover::before,
.tablinks.active::before {
  background-color: #91e22f;
  border: 2px solid #91e22f;
  z-index: 10;
}

.tab .tablinks {
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 40px 0;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  background-color: #f0faff;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
  position: relative;
  z-index: 10;
}

.tab .tablinks:hover {
  background-color: #28a2f0;
  color: #ffffff;
}

.tab .tablinks.active {
  background-color: #28a2f0;
  color: #ffffff;
}

.tab:first-child .tabcontent {
  left: 0;
  transform: translate(0%, 0%);
}

.tab:last-child .tabcontent {
  right: 0;
  transform: translate(0%, 0%);
  left: unset;
}
.tab:last-child .tabcontent {
  text-align: end;
}

.tabcontent {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  max-width: 450px;
  /* height: auto; */
  min-width: 450px;
  transform: translateX(-50%);
  -webkit-animation: fadeEffect 1s;
  animation: fadeEffect 1s;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 2px solid #28a2f0;
}

.tabcontent.active {
  display: block;
  position: absolute;
}

/* Fade in tabs */
@-webkit-keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media only screen and (max-width: 1200px) {
  .tabcontent {
    max-width: 500px;
    min-width: 500px;
  }
}

@media only screen and (max-width: 1100px) {
  .tab-all {
    gap: 32px;
  }

  .section-tabs__ {
    padding-bottom: 0;
  }

  .tab-all {
    flex-direction: column;
  }

  .tab .tablinks {
    padding: 20px 0;
  }

  .tab {
    width: 100%;
  }

  .tabcontent {
    display: block;
    max-width: 100%;
    min-width: 100%;
    transform: translateX(0%);
    position: static;
    height: auto;
    opacity: 0;
    margin-top: 0;
    border-top: 0;
    padding: 25px 10px;
  }

  .tabcontent.active {
    height: 100%;
    position: static;
    opacity: 1;
  }

  .tab:last-child .tabcontent {
    text-align: left;
  }
}
