:root {
  --green: #00834a;
  --ink: #333;
  --max: 1100px;
  --pale-green: #e9f7e8;
  --pale-cream: #f7fbef;
  --light-green: #d7efdd;
}

/* Page content */
.section-narrow {
  width: min(var(--max), calc(100% - 44px));
  margin: auto;
}

.intro {
  padding: 0 0 30px;
  text-align: center;
}

.intro-copy p {
  margin: 0 0 5px;
  font-size: 2rem;
  line-height: 2;
}

/* Shared headings */
.modification h2 {
  margin: 0 0 42px;
  color: var(--green);
  font-size: 19px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.features > h2,
.equipment > h2,
.process > h2 {
  position: relative;
  padding-bottom: 17px;
  margin-bottom: 68px;
  font-size: 3.6rem;
  font-weight: 700;
  text-decoration: none;
}

.features > h2::after,
.equipment > h2::after,
.process > h2::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  margin: auto;
  background: var(--green);
  content: "";
}

.modification h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Features */
.features {
  padding: 70px 0 90px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-grid article {
  position: relative;
  min-width: 0;
  text-align: center;
}

.feature-grid article:not(:last-child)::after {
  position: absolute;
  top: 8px;
  right: -14px;
  bottom: 8px;
  width: 1px;
  background: #d7e5dc;
  content: "";
}

.feature-icon {
  width: 30%;
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 10px;
  object-fit: contain;
}

.feature-grid article:first-child .feature-icon {
  transform: scale(0.8333);
}

.feature-grid h3 {
  min-height: 6.2rem;
  margin: 0 0 40px;
  color: var(--green);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
}

.feature-grid h3 span,
.feature-grid h3 strong {
  display: block;
}

.feature-grid h3 strong {
  font-size: 4rem;
  line-height: 1;
}

.feature-grid p {
  width: 80%;
  margin: 0 auto;
  text-align: left;
  font-size: 2rem;
  line-height: 2;
}

/* Equipment */
.equipment {
  padding: 0 0 110px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 30px;
}

.equipment-grid .img-description {
  margin: 0 0 28px;
}

.equipment-grid figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
}

/* Materials */
.materials {
  padding: 0 0 50px;
  text-align: center;
}

.materials-panel {
  position: relative;
  width: 100%;
  padding: 40px 22px;
  margin: auto;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--pale-green), var(--pale-cream) 52%, var(--light-green));
  font-size: 2rem;
  line-height: 2;
}

.materials-panel > * {
  position: relative;
}

.materials h2 {
  max-width: 820px;
  margin-bottom: 28px;
  margin-right: auto;
  margin-left: auto;
  color: #222;
  font-size: 2.6rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.materials-groups {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: auto;
  text-align: left;
}

.materials-group {
  width: 100%;
}

.materials-group + .materials-group {
  margin-top: 36px;
}

.materials-group h3 {
  color: var(--green);
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 700;
}

.materials-group ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.materials-group li {
  position: relative;
  padding-left: 14px;
  font-size: 1.7rem;
  line-height: 1.8;
}

.materials-item-glass {
  white-space: nowrap;
}

.materials-group-primary ul {
  gap: 8px 20px;
}

.materials-group-primary li {
  display: flex;
  align-items: center;
  justify-self: start;
  width: 7.2em;
  justify-content: flex-start;
  padding: 5px 8px;
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: #fff;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.materials-group-primary li::before {
  display: none;
}

.materials-group li::before {
  position: absolute;
  top: .78em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.materials-count {
  max-width: 820px;
  margin: 16px auto 0;
  text-align: right;
  font-size: 1.7rem;
}

/* Process */
.process {
  padding: 15px 0 110px;
  text-align: center;
}

.process-groups {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: min(780px, 100%);
  margin: 0 auto;
  counter-reset: process-step;
  text-align: left;
}

.process-steps {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-steps-middle {
  padding: 0 18px;
  border: 2px solid #d7e5dc;
  border-radius: 12px;
}

.process-steps::before {
  display: none;
}

.process-steps li {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: 52px minmax(0, 1fr) 88px;
  gap: 18px 28px;
  min-height: 87px;
  padding: 16px 18px;
  margin-bottom: 0;
  border: 2px solid #d7e5dc;
  border-radius: 12px;
  background: #fff;
  counter-increment: process-step;
}

.process-groups > .process-steps:nth-child(1)::after,
.process-groups > .process-steps:nth-child(2)::after {
  position: absolute;
  bottom: -58px;
  left: 50%;
  color: var(--green);
  content: "▼";
  font-size: 3.3rem;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
}

.process-steps-middle li {
  padding: 16px 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.process-steps-middle li + li {
  border-top: 1px solid #d7e5dc;
}

.process-groups > .process-steps:nth-child(3) li {
  border-width: 4px;
}

.process-steps li::before {
  position: relative;
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  content: counter(process-step, decimal-leading-zero);
  font-size: 2.6rem;
  font-weight: 700;
}

.process-steps li:not(:last-child)::after {
  display: none;
}

.process-steps li > div {
  padding: 1px 0 0;
}

.process-steps h3 {
  color: var(--green);
  font-size: 2.6rem;
  font-weight: 700;
}

.process-steps p {
  margin: 5px 0 0;
  font-size: 1.8rem;
  line-height: 1.7;
}

.process-icon {
  align-self: center;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  object-fit: contain;
}

/* Related links */
.related {
  padding: 0 0 90px;
  text-align: center;
}

.related h2 {
  color: #222;
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-grid a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 135px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 55px 0 20px;
  border: 1px solid var(--green);
  border-radius: 100px 0 100px 100px;
  color: #222;
  font-size: 3.2rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.related-grid .related-en {
  color: var(--green);
  font-size: 1.2rem;
  line-height: 1.3;
  white-space: nowrap;
}

.related-grid a img {
  position: absolute;
  right: 28px;
  width: 28px;
  height: auto;
  transition: .3s;
}

.related-grid a:hover img {
  right: 18px;
}

/* Responsive */
@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 28px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-grid a {
    font-size: 2.8rem;
  }

  .related-grid .related-en {
    font-size: 1.1rem;
  }

  .feature-grid article::after {
    display: none;
  }

  .materials-group ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-item-glass {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .section-narrow {
    width: calc(100% - 30px);
  }

  .intro-copy p {
    font-size: 1.6rem;
    text-align: left;
  }

  .feature-grid,
  .equipment-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid p {
    font-size: 1.6rem;
    line-height: 2;
  }

  .features {
    padding-top: 50px;
  }

  .materials-panel {
    width: 100%;
    padding: 30px 22px 32px;
  }

  .materials-groups {
    display: flex;
    flex-direction: column;
  }

  .materials-group + .materials-group {
    margin-top: 28px;
  }

  .features > h2,
  .equipment > h2,
  .process > h2 {
    padding-bottom: 13px;
    margin-bottom: 52px;
    font-size: 2.6rem;
  }

  .process-steps li {
    grid-template-columns: 42px minmax(0, 1fr) 58px;
    gap: 12px 14px;
    padding: 12px 10px;
    margin-bottom: 0;
  }

  .process-steps-middle li {
    padding: 12px 0;
    margin-bottom: 0;
  }

  .process-steps-middle li {
    padding: 0;
  }

  .process-steps-middle {
    padding: 0;
  }

  .process-steps-middle li {
    padding-right: 10px;
    padding-left: 10px;
  }

  .process-groups > .process-steps:nth-child(1)::after,
  .process-groups > .process-steps:nth-child(2)::after {
    bottom: -58px;
  }

  .process-icon {
    width: 52px;
    height: 52px;
  }

  .feature-grid h3 strong {
    font-size: 2.6rem;
  }

  .feature-grid h3 {
    min-height: 5.2rem;
    font-size: 2.4rem;
  }

  .feature-icon {
    width: 35%;
  }

  .related-grid a {
    padding-right: 35px;
    padding-left: 10px;
    font-size: 1.7rem;
  }

  .related-grid .related-en {
    font-size: .75rem;
  }
}
