.projects {
  background: #fff;
  padding: 38px 0;
}

.projects .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.projects .section-title h2 {
  margin: 0;
  color: #20252a;
  font-size: clamp(26px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.projects .section-title h2::after {
  content: "";
  display: inline-block;
  width: 64px;
  height: 4px;
  margin-left: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f0cd4c 0 78%, #60ac64 78%);
  vertical-align: .18em;
}

.projects .projects-all {
  flex: none;
  padding: 10px 14px;
  border: 1px solid #d5dade;
  border-radius: 4px;
  background: #fff;
  color: #293238;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 190ms ease, color 190ms ease;
}

.projects .projects-all span {
  display: inline-block;
  margin-left: 8px;
  color: #4d9f55;
  font-size: 18px;
  line-height: 1;
  transform: rotate(-45deg);
  transition: transform 190ms ease;
}

.projects .projectgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.projects .project {
  display: grid;
  grid-template-columns: 43% minmax(0, 57%);
  height: auto;
  min-width: 0;
  min-height: 158px;
  overflow: hidden;
  border: 1px solid #e1e4e6;
  border-radius: 6px;
  background: #fff;
  transition: border-color 190ms ease, box-shadow 190ms ease, transform 190ms ease;
}

.projects .project--no-image {
  grid-template-columns: minmax(0, 1fr);
}

.projects .project-image {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
}

.projects .projectbody {
  display: flex;
  min-width: 0;
  padding: 17px;
  flex-direction: column;
  align-items: flex-start;
}

.projects .projectbody h3 {
  margin: 0;
  color: #20252a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.projects .projectbody p {
  margin: 9px 0 0;
  color: #62696e;
  font-size: 12px;
  line-height: 1.5;
}

.projects .project-link {
  margin-top: auto;
  padding-top: 10px;
  color: #4d9f55;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.projects a:focus-visible {
  outline: 3px solid rgba(96, 172, 100, .35);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .projects .projects-all:hover {
    border-color: #66b86d;
    color: #172027;
  }

  .projects .projects-all:hover span {
    transform: translate(2px, -2px) rotate(-45deg);
  }

  .projects .project:hover {
    border-color: #bdc5c8;
    box-shadow: 0 4px 12px rgba(32, 42, 47, .06);
    transform: translateY(-1px);
  }

  .projects .project-link:hover {
    color: #347f3b;
  }
}

@media (max-width: 1099px) {
  .projects {
    padding: 32px 0;
  }

  .projects .projectgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects .project {
    grid-template-columns: minmax(220px, 43%) minmax(0, 57%);
  }

  .projects .project--no-image {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .projects {
    padding: 28px 0;
  }

  .projects .section-title {
    display: block;
    margin-bottom: 18px;
  }

  .projects .section-title h2 {
    font-size: 20px;
  }

  .projects .section-title h2::after {
    width: 42px;
    height: 3px;
    margin-left: 8px;
  }

  .projects .projects-all {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
  }

  .projects .project,
  .projects .project--no-image {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .projects .project-image {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .projects .projectbody {
    padding: 16px;
  }
}
