.figma-projects {
  --figma-primary: #163a3a;
  padding: 105px 0 100px;
  background: #fff;
  font-family: "DM Sans", "Inter", sans-serif;
}

.figma-projects__container {
  width: min(100% - 32px, 1600px);
  margin: 0 auto;
}

.figma-projects__heading {
  max-width: 930px;
  margin: 0 auto 45px;
  text-align: center;
}

.figma-projects__heading h2 {
  margin: 0 0 22px;
  color: var(--figma-primary);
  font-size: clamp(34px, 4vw, 55px);
  font-weight: 700;
  line-height: 1.18;
}

.figma-projects__heading p {
  margin: 0;
  color: #252525;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.7;
}

.figma-projects__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 22px;
}

.figma-projects__card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
}

.figma-projects__card--large {
  grid-row: 1 / 3;
  min-height: 442px;
}

.figma-projects__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figma-projects__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 58, 58, 0.05), rgba(22, 58, 58, 0.78));
}

.figma-projects__card div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 22px;
}

.figma-projects__card h3 {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.figma-projects__action {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.figma-projects__action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 15px;
  background: var(--figma-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.figma-projects__action a:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(22, 58, 58, 0.16);
}

.figma-projects__action i {
  margin-left: 12px;
  font-size: 13px;
}

@media (max-width: 991px) {
  .figma-projects {
    padding: 80px 0;
  }

  .figma-projects__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .figma-projects__card--large {
    grid-row: auto;
  }

  .figma-projects__card,
  .figma-projects__card--large {
    min-height: 300px;
  }
}

@media (max-width: 767px) {
  .figma-projects__card,
  .figma-projects__card--large {
    min-height: 250px;
  }
}

@media (max-width: 575px) {
  .figma-projects__container {
    width: min(100% - 24px, 540px);
  }

  .figma-projects__heading h2 {
    font-size: 32px;
  }

  .figma-projects__heading p {
    font-size: 17px;
  }
}
