.ms-project-filters {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto auto;
  gap: 16px;
  align-items: end;
  background: #f0f6e8;
  border: 1px solid #dce5dc;
  padding: 24px;
  border-radius: 24px;
  margin-bottom: 24px;
}
.ms-project-filters label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 0.78rem;
}
.ms-project-filters input,
.ms-project-filters select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #a5bba9;
  padding: 10px;
  border-radius: 9px;
  background: #fff;
  color: #181612;
}
.ms-project-filters > a {
  padding: 10px;
}
.ms-project-count {
  font-size: 0.85rem;
  margin-bottom: 26px;
}
.ms-project-card {
  display: flex;
  flex-direction: column;
}
.ms-project-card > a > img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  display: block;
}
.ms-project-card > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ms-project-card h3 {
  margin: 18px 0 14px;
}
.ms-project-card p {
  margin-bottom: 26px;
}
.ms-project-link {
  margin-top: auto;
  color: #075733;
  font-weight: 700;
  font-size: 0.87rem;
  display: flex;
  justify-content: space-between;
}
.ms-project-status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 20px;
  background: #e4f2d7;
  color: #24452c;
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.status-completed {
  background: #fff0cd;
}
.status-proposed,
.status-planned {
  background: #f0eaf8;
  color: #534070;
}
.ms-project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: start;
}
.ms-project-main {
  min-width: 0;
}
.ms-project-cover {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  border-radius: 28px;
  margin-bottom: 40px;
}
.ms-project-section {
  margin-top: 48px;
}
.ms-project-section h2 {
  font-size: 2rem;
}
.ms-project-section ul {
  padding-left: 22px;
}
.ms-project-section li {
  margin: 10px 0;
}
.ms-project-aside {
  position: sticky;
  top: 130px;
  padding: 28px;
  background: #e9f3dd;
  border: 1px solid #cadbbc;
  border-radius: 24px;
}
.ms-project-aside h2 {
  font-size: 1.5rem;
}
.ms-project-aside p {
  font-size: 0.91rem;
}
.ms-project-aside .ms-button {
  width: 100%;
  margin-top: 14px;
  font-size: 0.84rem;
}
.ms-project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ms-project-gallery figure {
  margin: 0;
}
.ms-project-gallery img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 16px;
}
.ms-project-gallery figcaption {
  font-size: 0.76rem;
}
.ms-project-partners {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
.ms-project-partners img {
  width: 130px;
  height: 80px;
  object-fit: contain;
}
.ms-project-wide {
  grid-template-columns: 1fr;
}
.ms-project-wide .ms-project-aside {
  position: static;
}
.ms-project-main .ms-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ms-project-pagination {
  margin-top: 35px;
}
@media (max-width: 1050px) {
  .ms-project-filters {
    grid-template-columns: 1fr 1fr;
  }
  .ms-project-layout {
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}
@media (max-width: 780px) {
  .ms-project-layout {
    grid-template-columns: 1fr;
  }
  .ms-project-aside {
    position: static;
  }
  .ms-project-main .ms-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 550px) {
  .ms-project-filters,
  .ms-project-gallery {
    grid-template-columns: 1fr;
  }
}
