
.diagram-section {
  padding: 64px 20px 150px;
  overflow: hidden;
}

.diagram-section__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.diagram__header {
  background-image: url("../images/diagram/underline_gray_mobile.svg");
  background-repeat: no-repeat;
  background-position-y: calc(100% - 16px);
  background-position-x: center;
  padding-bottom: 20px;
  z-index: 2;
}

.diagram__header .h2 {
  text-align: center;
}

.diagram__btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-top: 52px;
}

.diagram__btn {
  border: none;
  background-color: transparent;
  transition: background-color 0.3s linear;
  border-radius: 4px;
  padding: 8px;
}

.diagram__btn:active {
  outline: none;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.diagram__btn:hover {
  background-color: var(--prosem-light-blue-color);
}

.diagram__btn.next img {
  transform: rotate(180deg);
}

.prosem-diagram__gradient {
  margin: 40px 0 0 0px;
  width: 280px;
  height: 280px;
  border-radius: 140px;
  background: conic-gradient(
    from 180deg at 50% 50%,
    var(--prosem-primary-color) 0deg,
    var(--prosem-primary-color) 65deg,
    var(--prosem-brand-blue-color) 95deg,
    var(--prosem-brand-blue-color) 185deg,
    var(--prosem-brand-red-color) 215deg,
    var(--prosem-brand-red-color) 305deg,
    var(--prosem-primary-color) 335deg
  );
  background-position: center;
  position: relative;
}

.prosem-diagram__gradient::before {
  content: "";
  width: 500px;
  height: 500px;
  border: 2px dashed #cfcfcf;
  position: absolute;
  left: -110px;
  top: -110px;
  border-radius: 250px;
  box-sizing: border-box;
  opacity: 0.5;
  pointer-events: none;
}

.prosem-diagram__inner-circle {
  width: 264px;
  height: 264px;
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--prosem-light-color);
  border-radius: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prosem-diagram__small-circle {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  border: 8px solid var(--prosem-primary-color);
  position: absolute;
  color: var(--prosem-dark-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: 700;
  background-color: var(--prosem-light-color);
}

.prosem-diagram__small-circle#prosemDiagram__product {
  border-color: var(--prosem-brand-blue-color);
  top: -17px;
  left: 34px;
}

.prosem-diagram__small-circle#prosemDiagram__sales {
  border-color: var(--prosem-brand-red-color);
  top: calc(50% - 40px);
  right: -34px;
}

.prosem-diagram__small-circle#prosemDiagram__marketing {
  border-color: var(--prosem-primary-color);
  bottom: -17px;
  left: 34px;
}

.prosem-diagram__inner-content {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
  display: none;
  justify-content: center;
  align-items: center;
  color: var(--prosem-dark-color);
  flex-direction: column;
  transition: all 1s linear;
  transform:translateY(-50px);
  opacity: 0;
}

.prosem-diagram__inner-content.visible__inner-circle {
  opacity: 1;
  transform:translateY(0px);
}

.prosem-diagram__inner-content .circle__title {
  padding: 0 8px 24px;
  background-repeat: no-repeat;
  background-position-y: 25px;
  background-size: contain;
  background-position-x: left;
}

.prosem-diagram__inner-content#prosemDiagram__productContent
  .circle__title {
  background-image: url("../images/diagram/underline_blue_gray.svg");
}

.prosem-diagram__inner-content#prosemDiagram__salesContent
  .circle__title {
  background-image: url("../images/diagram/underline_red.svg");
}

.prosem-diagram__inner-content#prosemDiagram__marketingContent
  .circle__title {
  background-image: url("../images/diagram/underline_primary.svg");
}

.prosem-diagram__inner-content .circle__text {
  font-size: 14px;
  font-weight: 400;
  color: var(--prosem-dark-gray-color);
  max-width: 200px;
}

.prosem-diagram__product-active #prosemDiagram__productContent,
.prosem-diagram__sales-active #prosemDiagram__salesContent,
.prosem-diagram__marketing-active #prosemDiagram__marketingContent {
  display: flex;
}

@media screen and (max-width: 860px) {
  .diagram__header .h2 {
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
  }
}

@media screen and (max-width: 1200px) {
  .prosem-diagram__product-active #prosemDiagram__product {
    background-color: var(--prosem-brand-blue-color);
    color: var(--prosem-light-color);
  }

  .prosem-diagram__sales-active #prosemDiagram__sales {
    background-color: var(--prosem-brand-red-color);
    color: var(--prosem-light-color);
  }

  .prosem-diagram__marketing-active #prosemDiagram__marketing {
    background-color: var(--prosem-primary-color);
  }
}

@media screen and (min-width: 860px) {
  .diagram-section {
    padding: 240px 120px;
  }

  .diagram__header {
    background-image: url("../images/diagram/underline_gray.svg");
    background-position-y: 120px;
    background-position-x: right;
  }

  .prosem-diagram__gradient {
    margin: 40px 0 0 0px;
    width: 360px;
    height: 360px;
    border-radius: 180px;
  }

  .prosem-diagram__gradient::before {
    width: 620px;
    height: 620px;
    left: -130px;
    top: -130px;
    border-radius: 310px;
  }

  .prosem-diagram__inner-circle {
    width: 340px;
    height: 340px;
    top: 10px;
    left: 10px;
    border-radius: 170px;
  }

  .prosem-diagram__small-circle {
    width: 110px;
    height: 110px;
    border-radius: 55px;
    border-width: 20px;
  }

  .prosem-diagram__inner-content .circle__title {
    background-position-y: 40px;
  }
}

@media screen and (min-width: 1200px) {
   .diagram-section {
    padding: 240px 200px 120px;
  }

  .diagram-section__inner {
    padding-top: 80px;
  }

  .diagram__btn-wrapper {
    display: none;
  }

  .diagram__header .h2 {
    text-align: right;
  }

  .prosem-diagram__gradient {
    margin: 260px 0 400px -40px;
  }

  .prosem-diagram__gradient::before {
    width: 820px;
    height: 820px;
    left: -230px;
    top: -230px;
    border-radius: 410px;
  }

  .prosem-diagram__inner-circle {
    background-color: var(--prosem-neutral-color);
  }

  .prosem-diagram__inner-circle::after {
    content: "";
    background-image: url("../images/diagram/arrows.svg");
    width: 80%;
    height: 80%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  .prosem-diagram__inner-content {
    display: flex;
    background-color: var(--prosem-light-color);
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 160px;
  }

  .prosem-diagram__inner-content#prosemDiagram__productContent {
    top: -220px;
    left: -360px;
  }

  .prosem-diagram__inner-content#prosemDiagram__salesContent {
    left: 440px;
  }

  .prosem-diagram__inner-content#prosemDiagram__marketingContent {
    left: -360;
    top: 300px;
  }

  .prosem-diagram__inner-content .circle__title {
    padding-bottom: 32px;
  }

  .prosem-diagram__inner-content .circle__text {
    font-size: 16px;
  }
}

@media screen and (min-width: 1400px) {
  .diagram__header {
    position: absolute;
    top: 0;
    right: 0;
  }

    .prosem-diagram__gradient {
      margin: 260px 0 400px -40px;
    }
}