.works-partners {
  margin-top: 70px;
  padding: 32px 24px;
  background: #f8f8fc;
  text-align: center;
}

.works-partners__title {
  margin: 0;
  color: #290774;
  font-size: 2rem;
  font-weight: bold;
}

.works-partners__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: #555;
  font-size: 1.4rem;
  line-height: 1.8;
}

.works-partners__list > li {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.m__works {
  overflow: hidden;
}

.works-filter {
  margin-bottom: 34px;
}

.works-filter--category {
  margin-top: -30px;
}

.works-filter--role {
  margin-bottom: 50px;
}

.works-year-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
  margin: -8px 0 34px;
  padding: 4px 0 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.works-year-links__item {
  flex: 0 0 auto;
  color: #5358ea;
  font-size: 1.3rem;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.works-year-links__item:hover,
.works-year-links__item.is-active {
  color: #290774;
  font-weight: bold;
  text-decoration-thickness: 2px;
}

.works-filter__label {
  margin-bottom: 12px;
  color: #290774;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
}

.works-category-tabs,
.works-role-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.works-category-tabs__item {
  min-width: 140px;
  padding: 10px 24px;
  border: 1px solid #290774;
  color: #290774;
  background: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}

.works-category-tabs__item:hover,
.works-category-tabs__item.is-active {
  color: #fff;
  background: #290774;
}

.works-role-tabs__item {
  padding: 7px 18px;
  border: 1px solid #5358ea;
  border-radius: 999px;
  color: #5358ea;
  background: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}

.works-role-tabs__item:hover,
.works-role-tabs__item.is-active {
  color: #fff;
  background: #5358ea;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 24px;
}

.work-card {
  min-width: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(41, 7, 116, .1);
}

.work-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.work-card__visual {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eceaf3;
}

.work-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.work-card__link:hover .work-card__image {
  transform: scale(1.04);
}

.work-card__visual.is-no-image {
  display: grid;
  place-items: center;
  position: relative;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, #290774 0%, #5358ea 55%, #76b2ff 100%);
}

.work-card__visual.is-no-image::before {
  content: "WORKS";
  position: absolute;
  right: -5px;
  bottom: -12px;
  color: rgba(255, 255, 255, .13);
  font-size: 5rem;
  font-weight: bold;
  letter-spacing: .05em;
}

.work-card__fallback-title {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
}

.work-card__body {
  padding: 18px 18px 20px;
}

.work-card__title {
  margin: 0;
  color: #290774;
  font-size: 1.7rem;
  font-weight: bold;
  line-height: 1.5;
}

.work-card__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.work-card__roles li {
  padding: 4px 10px;
  border: 1px solid #5358ea;
  border-radius: 999px;
  color: #5358ea;
  font-size: 1.1rem;
  line-height: 1.2;
}

.work-card__meta {
  margin-top: 12px;
  color: #555;
  font-size: 1.2rem;
  line-height: 1.6;
}

.work-card__copyright {
  margin-top: 8px;
  color: #777;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.works-empty {
  padding: 60px 20px;
  background: #fff;
  font-size: 1.6rem;
  text-align: center;
}

.works-contact {
  margin-top: 90px;
  padding: 48px 30px;
  background: linear-gradient(135deg, rgba(141, 246, 185, .22), rgba(118, 178, 255, .22), rgba(153, 118, 255, .22));
  text-align: center;
}

.works-contact__title {
  color: #290774;
  font-size: 2.6rem;
  font-weight: bold;
}

.works-contact__text {
  margin-top: 12px;
  font-size: 1.5rem;
}

.works-contact__button {
  display: inline-block;
  margin-top: 28px;
  padding: 15px 44px;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(to right, #5358ea, #9976ff);
  box-shadow: 4px 4px 0 rgba(110, 122, 255, .35);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}

.works-contact__button:hover {
  opacity: .85;
  transform: translateY(-2px);
}

@media only screen and (max-width: 999px) {
  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 736px) {
  .works-partners {
    margin-top: 45px;
    padding: 26px 18px;
  }

  .works-partners__title {
    font-size: 1.8rem;
  }

  .works-partners__list {
    gap: 12px;
    font-size: 1.3rem;
  }

  .m__works .m__top__side-text {
    font-size: 5rem;
  }

  .works-filter--category {
    margin-top: -10px;
  }

  .works-filter {
    margin-bottom: 24px;
  }

  .works-filter--role {
    margin-bottom: 35px;
  }

  .works-year-links {
    justify-content: flex-start;
    gap: 18px;
    margin: -4px 0 24px;
    padding-bottom: 8px;
  }

  .works-year-links__item {
    font-size: 1.1rem;
  }

  .works-filter__label {
    margin-bottom: 9px;
    font-size: 1.1rem;
  }

  .works-category-tabs,
  .works-role-tabs {
    gap: 8px;
  }

  .works-category-tabs__item {
    min-width: 110px;
    padding: 8px 15px;
    font-size: 1.2rem;
  }

  .works-role-tabs__item {
    padding: 6px 12px;
    font-size: 1.05rem;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .work-card__visual.is-no-image {
    padding: 15px;
  }

  .work-card__visual.is-no-image::before {
    font-size: 3rem;
  }

  .work-card__fallback-title {
    font-size: 1.4rem;
  }

  .work-card__body {
    padding: 12px 10px 14px;
  }

  .work-card__title {
    font-size: 1.3rem;
  }

  .work-card__roles {
    gap: 4px;
    margin-top: 8px;
  }

  .work-card__roles li {
    padding: 3px 7px;
    font-size: 1rem;
  }

  .work-card__meta {
    margin-top: 8px;
    font-size: 1.05rem;
  }

  .work-card__copyright {
    font-size: .9rem;
  }

  .works-contact {
    margin-top: 55px;
    padding: 32px 18px;
  }

  .works-contact__title {
    font-size: 1.8rem;
  }

  .works-contact__text {
    font-size: 1.3rem;
  }

  .works-contact__button {
    margin-top: 20px;
    padding: 13px 28px;
    font-size: 1.3rem;
  }

  .m__header__menu-inner {
    overflow-y: auto;
  }
}
