.work-page {
  letter-spacing: 0;
}

.work-library-head {
  margin-bottom: 28px;
}

.work-library-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 36px);
  line-height: 1.25;
  font-weight: 700;
  color: #111;
}

.work-filters {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

.work-filters-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.work-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  max-width: 420px;
  min-width: 0;
}

.work-search-field {
  position: relative;
  display: block;
}

.work-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #606060;
  pointer-events: none;
}

.work-search-field input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  border: 1px solid #d2d2dd;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  padding: 0 14px 0 42px;
}

.work-search-field input::placeholder {
  color: #8a8a8a;
}

.work-search-field input:focus-visible {
  outline: 3px solid #1f18e2;
  outline-offset: 2px;
}

.work-filters-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.work-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.work-filter-label {
  display: block;
  height: 16px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #606060;
  text-transform: none;
  letter-spacing: 0;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-filter select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-width: 100%;
  border: 1px solid #d2d2dd;
  border-radius: 6px;
  background-color: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  padding: 0 36px 0 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111111' d='M1.41.59L6 5.17 10.59.59 12 2l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-filter select:focus-visible {
  outline: 3px solid #1f18e2;
  outline-offset: 2px;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  min-height: 24px;
}

.work-count {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #606060;
}

.work-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 0 14px;
  border: 0;
  background: transparent;
  color: #606060;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.work-filter-reset.is-active,
.work-filter-reset:hover {
  color: #1f18e2;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 0;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid #e4e4ee;
}

.work-item {
  border-bottom: 1px solid #e4e4ee;
  min-width: 0;
}

.work-item[hidden] {
  display: none !important;
}

.work-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 128px;
  padding: 28px 16px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}

.work-row:hover,
.work-row:focus-visible {
  background: #f8f8fd;
}

.work-row:focus-visible {
  outline: 3px solid #1f18e2;
  outline-offset: 2px;
}

.work-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  color: #111;
}

.work-row:hover .work-title,
.work-row:focus-visible .work-title {
  color: #1f18e2;
}

.work-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-keywords li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f0eff8;
  color: #343434;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.work-empty {
  margin-top: 36px;
  font-size: 16px;
  line-height: 1.7;
  color: #606060;
}

.work-empty button {
  border: 0;
  background: transparent;
  color: #1f18e2;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 1280px) {
  .work-filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .work-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .work-title {
    font-size: 20px;
  }

  .work-row {
    min-height: 0;
    padding: 24px 8px;
  }
}

@media (max-width: 720px) {
  .work-filters-top {
    flex-direction: column;
    align-items: stretch;
  }

  .work-search {
    max-width: none;
  }

  .work-filter-reset {
    padding: 0;
    justify-content: flex-start;
  }

  .work-filters-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-filter-label {
    min-height: 0;
  }

  .work-row {
    padding: 22px 0;
  }
}
