.proportion-block {
  display: flex;
  width: 100%;
  padding: 60px 112px;
  flex-direction: column;
  background-color: #fff;
  box-sizing: border-box;
  gap: 24px;
}

.proportion-bar {
  display: flex;
  width: 100%;
  height: 260px;
  border-radius: 0px;
  overflow: hidden;
}

.color-segment {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  width: var(--proportion-percentage);
}

.primary {
  background-color: #8000ff;
}

.secondary {
  background-color: #2d014d;
}

.accent {
  background-color: #00ebc7;
  color: #000000;
}

.segment-label {
  display: block;
}

.proportion-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proportion-text .title {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
}

.proportion-text .paragraph {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  line-height: 24px;
  max-width: 600px;
}

.proportion-text:has(.title[style*="display: none"]):has(
    .paragraph[style*="display: none"]
  ) {
  display: none;
}

@container (max-width: 1440px) {
  .proportion-block {
    padding: 60px 32px;
  }
}

@container (max-width: 1024px) {
  .proportion-block {
    padding: 60px 32px;
  }

  .segment-label {
    display: none;
  }
}

@container (max-width: 540px) {
  .proportion-block {
    padding: 60px 16px;
  }

  .proportion-bar {
    flex-direction: column;
    height: 450px;
  }

  .color-segment {
    width: 100% !important;
    height: var(--proportion-percentage);
  }
}
